Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001554/0.001558, allocations: 186.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.896/1.896, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001142/0.001142, allocations: 97.97 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003812/0.0003814, allocations: 8 kB / 327 MB, free: 232 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3191, allocations: 47.56 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1259/0.4451, allocations: 81.16 MB / 455.7 MB, free: 15.63 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002928/0.4454, allocations: 79.95 kB / 455.8 MB, free: 15.55 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05747/0.5029, allocations: 12.12 MB / 467.9 MB, free: 3.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.503, allocations: 0 / 467.9 MB, free: 3.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.76e-05/0.503, allocations: 16 kB / 467.9 MB, free: 3.355 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.004121/0.5071, allocations: 1.127 MB / 469 MB, free: 2.164 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.5072, allocations: 8.031 kB / 469 MB, free: 2.156 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003499/0.5076, allocations: 87.06 kB / 469.1 MB, free: 2.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001443/0.509, allocations: 0.5015 MB / 469.6 MB, free: 1.523 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.774e-05/0.5091, allocations: 41.31 kB / 469.7 MB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001823/0.5093, allocations: 64 kB / 469.7 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002386/0.5117, allocations: 0.6467 MB / 470.4 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.2e-05/0.5118, allocations: 7.922 kB / 470.4 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/0.5119, allocations: 28 kB / 470.4 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.448e-05/0.5119, allocations: 19.94 kB / 470.4 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003119/0.5151, allocations: 0.7273 MB / 471.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006514/0.5216, allocations: 2.294 MB / 473.5 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00265/0.5243, allocations: 0.6303 MB / 474.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.509e-05/0.5245, allocations: 16.41 kB / 474.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001647/0.5261, allocations: 453.3 kB / 474.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 3.286e-06/0.5261, allocations: 0 / 474.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.1354/0.6615, allocations: 16.55 MB / 491.1 MB, free: 11.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.6617, allocations: 145.5 kB / 491.2 MB, free: 11.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008763/0.6626, allocations: 430 kB / 491.7 MB, free: 11.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003062/0.6629, allocations: 45.7 kB / 491.7 MB, free: 11.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000393/0.6633, allocations: 394.4 kB / 492.1 MB, free: 10.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004799/0.6638, allocations: 311.5 kB / 492.4 MB, free: 10.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001714/0.664, allocations: 24 kB / 492.4 MB, free: 10.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.6642, allocations: 350.8 kB / 492.8 MB, free: 10.06 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004101/0.6683, allocations: 0.7866 MB / 493.5 MB, free: 9.277 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004328/0.6727, allocations: 1.001 MB / 494.5 MB, free: 8.195 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004195/0.6769, allocations: 0.873 MB / 495.4 MB, free: 7.312 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.677, allocations: 0 / 495.4 MB, free: 7.312 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.04612/0.7231, allocations: 5.562 MB / 0.4892 GB, free: 1.723 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.024e-05/0.7232, allocations: 63.41 kB / 0.4893 GB, free: 1.648 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.162e-05/0.7233, allocations: 8 kB / 0.4893 GB, free: 1.641 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3287/1.052, allocations: 7.324 MB / 0.4965 GB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001324/1.053, allocations: 178 kB / 0.4966 GB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009927/1.063, allocations: 3.074 MB / 0.4996 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003003/1.066, allocations: 225.6 kB / 0.4998 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001695/1.067, allocations: 43.52 kB / 0.4999 GB, free: 105.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.000591/1.067, allocations: 223.9 kB / 0.5001 GB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002105/1.067, allocations: 77.88 kB / 0.5002 GB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04282/1.11, allocations: 5.452 MB / 0.5055 GB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.115e-05/1.11, allocations: 12.39 kB / 0.5055 GB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/1.11, allocations: 0 / 0.5055 GB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-05/1.11, allocations: 16.62 kB / 0.5055 GB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001979/1.112, allocations: 1.08 MB / 0.5066 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/1.112, allocations: 0 / 0.5066 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/1.113, allocations: 122.5 kB / 0.5067 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06605/1.18, allocations: 7.294 MB / 0.5138 GB, free: 100.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002702/1.18, allocations: 23.97 kB / 0.5138 GB, free: 100.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01116/1.191, allocations: 3.246 MB / 0.517 GB, free: 97.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/1.191, allocations: 4 kB / 0.517 GB, free: 97.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04665/1.238, allocations: 6.411 MB / 0.5233 GB, free: 91.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002439/1.238, allocations: 144.2 kB / 0.5234 GB, free: 90.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002771/1.238, allocations: 16 kB / 0.5234 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002728/1.241, allocations: 215.8 kB / 0.5236 GB, free: 90.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000414/1.242, allocations: 106.8 kB / 0.5237 GB, free: 90.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/1.242, allocations: 35.97 kB / 0.5238 GB, free: 90.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005033/1.242, allocations: 330.9 kB / 0.5241 GB, free: 90.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.014e-06/1.242, allocations: 0 / 0.5241 GB, free: 90.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00108/1.243, allocations: 262.4 kB / 0.5243 GB, free: 90.04 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003636/1.244, allocations: 140.2 kB / 0.5245 GB, free: 89.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01041/1.254, allocations: 2.184 MB / 0.5266 GB, free: 87.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.357e-06/1.254, allocations: 8.125 kB / 0.5266 GB, free: 87.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008191/1.262, allocations: 1.289 MB / 0.5279 GB, free: 86.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001088/1.264, allocations: 112.9 kB / 0.528 GB, free: 86.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006195/1.27, allocations: 2.072 MB / 0.53 GB, free: 84.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/1.27, allocations: 0.9547 MB / 0.5309 GB, free: 83.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003017/1.271, allocations: 31.44 kB / 0.531 GB, free: 83.22 MB / 378.7 MB Notification: Performance of SimCode: time 1.513e-06/1.271, allocations: 0 / 0.531 GB, free: 83.22 MB / 378.7 MB Notification: Performance of Templates: time 0.02654/1.297, allocations: 16.06 MB / 0.5466 GB, free: 67.23 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate/HeatingNPN_OrGate.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches