Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.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.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001416/0.001416, allocations: 186.2 kB / 16.41 MB, free: 5.723 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.821/1.821, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001093/0.001093, allocations: 92.52 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003566, allocations: 8 kB / 327 MB, free: 236 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3125, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1175/0.43, allocations: 79.01 MB / 453.5 MB, free: 1.762 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.4304, allocations: 87.89 kB / 453.6 MB, free: 1.676 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03837/0.4687, allocations: 9.027 MB / 462.7 MB, free: 8.641 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4688, allocations: 3.938 kB / 462.7 MB, free: 8.637 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.142e-05/0.4688, allocations: 4 kB / 462.7 MB, free: 8.633 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001085/0.4699, allocations: 0.6232 MB / 463.3 MB, free: 7.949 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.47, allocations: 12.03 kB / 463.3 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001244/0.4701, allocations: 35.56 kB / 463.3 MB, free: 7.902 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007461/0.4709, allocations: 338.9 kB / 463.7 MB, free: 7.535 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.853e-05/0.4709, allocations: 8 kB / 463.7 MB, free: 7.527 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.97e-05/0.471, allocations: 15.98 kB / 463.7 MB, free: 7.512 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003978/0.4714, allocations: 154.5 kB / 463.8 MB, free: 7.348 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.4714, allocations: 3.984 kB / 463.8 MB, free: 7.344 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.5e-05/0.4714, allocations: 8 kB / 463.8 MB, free: 7.336 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.4715, allocations: 4 kB / 463.9 MB, free: 7.332 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000271/0.4717, allocations: 71.81 kB / 463.9 MB, free: 7.262 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009685/0.4727, allocations: 0.5043 MB / 464.4 MB, free: 6.707 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004891/0.4732, allocations: 142.7 kB / 464.6 MB, free: 6.559 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.4733, allocations: 7.938 kB / 464.6 MB, free: 6.551 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003069/0.4736, allocations: 111.3 kB / 464.7 MB, free: 6.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.044e-06/0.4736, allocations: 0 / 464.7 MB, free: 6.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007537/0.4744, allocations: 228.9 kB / 464.9 MB, free: 6.203 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.236e-05/0.4744, allocations: 106.8 kB / 465 MB, free: 6.074 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007255/0.4752, allocations: 399.5 kB / 465.4 MB, free: 5.68 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.4752, allocations: 29.69 kB / 465.4 MB, free: 5.645 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.4754, allocations: 210.5 kB / 465.6 MB, free: 5.438 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.715e-05/0.4754, allocations: 43.45 kB / 465.7 MB, free: 5.395 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.288e-05/0.4755, allocations: 4 kB / 465.7 MB, free: 5.391 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.4756, allocations: 314.8 kB / 466 MB, free: 5.074 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.4758, allocations: 47.97 kB / 466 MB, free: 5.027 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002504/0.476, allocations: 102.5 kB / 466.1 MB, free: 4.906 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.4762, allocations: 57.11 kB / 466.2 MB, free: 4.852 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4763, allocations: 0 / 466.2 MB, free: 4.852 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004669/0.4767, allocations: 153.5 kB / 466.3 MB, free: 4.695 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.4768, allocations: 7.938 kB / 466.3 MB, free: 4.688 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.4768, allocations: 4 kB / 466.4 MB, free: 4.684 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.4768, allocations: 3.953 kB / 466.4 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002002/0.477, allocations: 27.98 kB / 466.4 MB, free: 4.652 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.477, allocations: 4.062 kB / 466.4 MB, free: 4.648 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001868/0.4772, allocations: 15.89 kB / 466.4 MB, free: 4.633 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.229e-05/0.4773, allocations: 8 kB / 466.4 MB, free: 4.625 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002228/0.4775, allocations: 179.2 kB / 466.6 MB, free: 4.441 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.035e-05/0.4776, allocations: 27.62 kB / 466.6 MB, free: 4.414 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006103/0.4782, allocations: 207.5 kB / 466.8 MB, free: 4.199 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.4782, allocations: 11.98 kB / 466.8 MB, free: 4.188 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4782, allocations: 3.953 kB / 466.8 MB, free: 4.184 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.4783, allocations: 0 / 466.8 MB, free: 4.184 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003908/0.4787, allocations: 313.5 kB / 467.1 MB, free: 3.828 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.4787, allocations: 0 / 467.1 MB, free: 3.828 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.814e-05/0.4788, allocations: 11.98 kB / 467.1 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.4788, allocations: 4 kB / 467.2 MB, free: 3.812 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.864e-05/0.4788, allocations: 4 kB / 467.2 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.4788, allocations: 0 / 467.2 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.4788, allocations: 0 / 467.2 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005555/0.4794, allocations: 224.5 kB / 467.4 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001504/0.4796, allocations: 124.7 kB / 467.5 MB, free: 3.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.24e-05/0.4796, allocations: 8 kB / 467.5 MB, free: 3.422 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/0.4798, allocations: 11.98 kB / 467.5 MB, free: 3.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.699e-05/0.4799, allocations: 11.98 kB / 467.5 MB, free: 3.398 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.4799, allocations: 4 kB / 467.5 MB, free: 3.395 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005527/0.4805, allocations: 322.9 kB / 467.8 MB, free: 3.082 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4805, allocations: 0 / 467.8 MB, free: 3.082 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004164/0.4809, allocations: 68.17 kB / 467.9 MB, free: 3.016 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001206/0.4822, allocations: 435.7 kB / 468.3 MB, free: 2.609 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004884/0.4827, allocations: 139.8 kB / 468.5 MB, free: 2.473 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4827, allocations: 0 / 468.5 MB, free: 2.473 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002273/0.4829, allocations: 72.03 kB / 468.5 MB, free: 2.402 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005344/0.4835, allocations: 66.56 kB / 468.6 MB, free: 2.336 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.4847, allocations: 0.5871 MB / 469.2 MB, free: 1.715 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003963/0.4851, allocations: 0.7871 MB / 470 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.4852, allocations: 35.44 kB / 470 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of SimCode: time 6.31e-07/0.4852, allocations: 0 / 470 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of Templates: time 0.009552/0.4948, allocations: 4.27 MB / 474.3 MB, free: 12.61 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches