Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001147/0.001147, allocations: 180.7 kB / 17.02 MB, free: 5.121 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.546/1.546, allocations: 205.4 MB / 223.1 MB, free: 9.047 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.0009678/0.0009677, allocations: 104.1 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002816/0.0002816, allocations: 4 kB / 328.2 MB, free: 15.56 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3252/0.3255, allocations: 47.57 MB / 375.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1171/0.4427, allocations: 79.01 MB / 454.8 MB, free: 1.668 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002731/0.4431, allocations: 71.97 kB / 454.9 MB, free: 1.598 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02594/0.469, allocations: 9.039 MB / 463.9 MB, free: 8.551 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.925e-06/0.4691, allocations: 4 kB / 463.9 MB, free: 8.547 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.175e-05/0.4691, allocations: 7.938 kB / 463.9 MB, free: 8.539 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.0009463/0.4701, allocations: 0.6271 MB / 464.6 MB, free: 7.852 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.4701, allocations: 8.031 kB / 464.6 MB, free: 7.844 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.05e-05/0.4702, allocations: 35.56 kB / 464.6 MB, free: 7.809 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005761/0.4708, allocations: 338.9 kB / 464.9 MB, free: 7.441 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.785e-05/0.4708, allocations: 8 kB / 464.9 MB, free: 7.434 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.697e-05/0.4709, allocations: 12 kB / 465 MB, free: 7.422 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003151/0.4712, allocations: 154.5 kB / 465.1 MB, free: 7.258 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.4712, allocations: 0 / 465.1 MB, free: 7.258 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.097e-05/0.4713, allocations: 4 kB / 465.1 MB, free: 7.254 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.4713, allocations: 4 kB / 465.1 MB, free: 7.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002265/0.4715, allocations: 79.81 kB / 465.2 MB, free: 7.172 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008262/0.4723, allocations: 0.5043 MB / 465.7 MB, free: 6.617 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003277/0.4727, allocations: 146.7 kB / 465.8 MB, free: 6.465 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.4727, allocations: 0 / 465.8 MB, free: 6.465 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002295/0.4729, allocations: 115.3 kB / 466 MB, free: 6.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.473, allocations: 0 / 466 MB, free: 6.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005391/0.4735, allocations: 221.1 kB / 466.2 MB, free: 6.117 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.845e-05/0.4736, allocations: 110.8 kB / 466.3 MB, free: 5.984 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000495/0.4741, allocations: 395.5 kB / 466.7 MB, free: 5.594 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.4741, allocations: 33.7 kB / 466.7 MB, free: 5.555 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.4743, allocations: 164 kB / 466.9 MB, free: 5.391 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.831e-05/0.4743, allocations: 39.45 kB / 466.9 MB, free: 5.352 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.185e-06/0.4744, allocations: 4 kB / 466.9 MB, free: 5.348 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.4745, allocations: 342.8 kB / 467.2 MB, free: 5.004 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.4747, allocations: 47.98 kB / 467.3 MB, free: 4.957 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001558/0.4748, allocations: 102.5 kB / 467.4 MB, free: 4.836 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001135/0.4749, allocations: 55.92 kB / 467.4 MB, free: 4.785 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.475, allocations: 4 kB / 467.4 MB, free: 4.781 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003151/0.4753, allocations: 185.1 kB / 467.6 MB, free: 4.594 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.4753, allocations: 4 kB / 467.6 MB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.4753, allocations: 4 kB / 467.6 MB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.4754, allocations: 3.953 kB / 467.6 MB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.4755, allocations: 23.98 kB / 467.7 MB, free: 4.559 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.4755, allocations: 0 / 467.7 MB, free: 4.559 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.4757, allocations: 19.92 kB / 467.7 MB, free: 4.539 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.4757, allocations: 8.062 kB / 467.7 MB, free: 4.531 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.0002019/0.4759, allocations: 185 kB / 467.9 MB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.893e-05/0.4759, allocations: 31.62 kB / 467.9 MB, free: 4.309 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000407/0.4764, allocations: 196.4 kB / 468.1 MB, free: 4.102 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-06/0.4764, allocations: 4 kB / 468.1 MB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.4764, allocations: 3.953 kB / 468.1 MB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.4764, allocations: 0 / 468.1 MB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003249/0.4767, allocations: 321.5 kB / 468.4 MB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.4767, allocations: 3.984 kB / 468.4 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.179e-05/0.4768, allocations: 11.98 kB / 468.4 MB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.4768, allocations: 4 kB / 468.4 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.4768, allocations: 0 / 468.4 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.4768, allocations: 0 / 468.4 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.4768, allocations: 0 / 468.4 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003592/0.4772, allocations: 224.5 kB / 468.6 MB, free: 3.473 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.4774, allocations: 124.7 kB / 468.8 MB, free: 3.332 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.5e-05/0.4774, allocations: 8 kB / 468.8 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.136e-05/0.4775, allocations: 15.98 kB / 468.8 MB, free: 3.309 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.89e-05/0.4776, allocations: 7.984 kB / 468.8 MB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.857e-05/0.4776, allocations: 11.98 kB / 468.8 MB, free: 3.289 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003456/0.4779, allocations: 315 kB / 469.1 MB, free: 2.984 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.478, allocations: 0 / 469.1 MB, free: 2.984 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003329/0.4783, allocations: 60.19 kB / 469.2 MB, free: 2.926 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.00108/0.4794, allocations: 445.2 kB / 469.6 MB, free: 2.512 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003441/0.4798, allocations: 139.7 kB / 469.8 MB, free: 2.375 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4798, allocations: 0 / 469.8 MB, free: 2.375 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.4799, allocations: 71.91 kB / 469.8 MB, free: 2.305 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003927/0.4803, allocations: 58.25 kB / 469.9 MB, free: 2.246 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008889/0.4812, allocations: 0.5543 MB / 470.4 MB, free: 1.664 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003738/0.4816, allocations: 0.7833 MB / 471.2 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001306/0.4818, allocations: 54.2 kB / 471.3 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.262e-05/0.4818, allocations: 23.44 kB / 471.3 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of SimCode: time 5.41e-07/0.4819, allocations: 0 / 471.3 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of Templates: time 0.008308/0.4902, allocations: 3.816 MB / 475.1 MB, free: 12.97 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/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_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches