Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000889/0.000889, allocations: 78.19 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 151.4 kB / 24.81 MB, free: 9.32 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8866/0.8866, allocations: 173.3 MB / 201.4 MB, free: 9.234 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 268.4 MB, free: 6.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.767e-05/1.882e-05, allocations: 2.312 kB / 268.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002251/0.00227, allocations: 2.005 MB / 270.4 MB, free: 4.211 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001139/0.003409, allocations: 1.11 MB / 271.5 MB, free: 3.098 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.47e-05/0.003504, allocations: 4 kB / 271.5 MB, free: 3.094 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005696/0.004073, allocations: 319 kB / 271.8 MB, free: 2.781 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002484/0.004322, allocations: 215.1 kB / 272 MB, free: 2.57 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003477/0.004669, allocations: 287.2 kB / 272.3 MB, free: 2.289 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000243/0.004912, allocations: 351 kB / 272.7 MB, free: 1.945 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.241e-05/0.005005, allocations: 36.58 kB / 272.7 MB, free: 1.906 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.005152, allocations: 187.5 kB / 272.9 MB, free: 1.723 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.005264, allocations: 135.6 kB / 273 MB, free: 1.59 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.458e-05/0.005289, allocations: 20 kB / 273 MB, free: 1.57 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001149/0.005403, allocations: 91.84 kB / 273.1 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.797e-05/0.005471, allocations: 83.7 kB / 273.2 MB, free: 1.398 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.37e-05/0.005525, allocations: 79.7 kB / 273.3 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002256/0.005751, allocations: 251 kB / 273.5 MB, free: 1.074 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.005752, allocations: 4 kB / 273.5 MB, free: 1.07 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.005753, allocations: 0 / 273.5 MB, free: 1.07 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.036e-06/0.005756, allocations: 3.938 kB / 273.5 MB, free: 1.066 MB / 250.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.000502/0.006258, allocations: 0.6892 MB / 274.2 MB, free: 336 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.006288, allocations: 12.86 kB / 274.2 MB, free: 324 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.097e-05/0.006339, allocations: 44.75 kB / 274.3 MB, free: 280 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002135/0.006552, allocations: 273.2 kB / 274.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.006568, allocations: 12.36 kB / 274.5 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.953e-05/0.006598, allocations: 11.94 kB / 274.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001135/0.006711, allocations: 89.56 kB / 274.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.3e-06/0.006716, allocations: 0 / 274.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.006725, allocations: 4 kB / 274.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-06/0.006728, allocations: 0 / 274.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.308e-05/0.006771, allocations: 31.97 kB / 274.7 MB, free: 15.83 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003373/0.007109, allocations: 407.9 kB / 275.1 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.007217, allocations: 87.2 kB / 275.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.072e-05/0.007248, allocations: 31.67 kB / 275.2 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.129e-05/0.007259, allocations: 0 / 275.2 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.249e-05/0.007352, allocations: 92.98 kB / 275.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 8.82e-07/0.007353, allocations: 0 / 275.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001908/0.007543, allocations: 168.8 kB / 275.5 MB, free: 15 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.09e-05/0.007564, allocations: 63.34 kB / 275.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.007772, allocations: 374.1 kB / 275.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.007787, allocations: 33.7 kB / 275.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.87e-05/0.007876, allocations: 214.7 kB / 276.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.17e-05/0.007907, allocations: 51.66 kB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.306e-05/0.00795, allocations: 47.34 kB / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.008076, allocations: 0.5156 MB / 276.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.529e-05/0.008101, allocations: 19.98 kB / 276.8 MB, free: 13.63 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.371e-05/0.008165, allocations: 121.8 kB / 276.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.732e-05/0.008232, allocations: 82.94 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.008234, allocations: 0 / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001213/0.008355, allocations: 129.4 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.507e-06/0.008364, allocations: 4 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.008369, allocations: 4 kB / 277.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.308e-06/0.008379, allocations: 3.938 kB / 277.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.261e-05/0.008441, allocations: 23.98 kB / 277.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.008445, allocations: 3.938 kB / 277.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.255e-05/0.008498, allocations: 27.94 kB / 277.1 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-06/0.008505, allocations: 4 kB / 277.2 MB, free: 13.18 MB / 266.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 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.792e-05/0.008583, allocations: 170.5 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.763e-05/0.008611, allocations: 35.81 kB / 277.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000157/0.008768, allocations: 155.2 kB / 277.5 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.00877, allocations: 7.938 kB / 277.5 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.008772, allocations: 0 / 277.5 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.008776, allocations: 3.984 kB / 277.5 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001261/0.008902, allocations: 185.1 kB / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.008903, allocations: 4 kB / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.273e-05/0.008926, allocations: 8 kB / 277.7 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.008927, allocations: 0 / 277.7 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.008936, allocations: 11.98 kB / 277.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.008937, allocations: 0 / 277.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.008938, allocations: 0 / 277.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001371/0.009075, allocations: 196 kB / 277.9 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.438e-05/0.009099, allocations: 27.8 kB / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.194e-05/0.009121, allocations: 11.98 kB / 277.9 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.504e-05/0.009156, allocations: 4 kB / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.911e-05/0.009185, allocations: 23.97 kB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.009196, allocations: 11.94 kB / 278 MB, free: 12.27 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001182/0.009314, allocations: 250.9 kB / 278.2 MB, free: 12.03 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009314, allocations: 0 / 278.2 MB, free: 12.03 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001673/0.009481, allocations: 47.94 kB / 278.3 MB, free: 11.98 MB / 266.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.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000688/0.01017, allocations: 409.2 kB / 278.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001125/0.01028, allocations: 87.27 kB / 278.8 MB, free: 11.63 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.31e-07/0.01028, allocations: 0 / 278.8 MB, free: 11.63 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.774e-05/0.01033, allocations: 47.59 kB / 278.8 MB, free: 11.58 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002198/0.01055, allocations: 87.08 kB / 278.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003849/0.01094, allocations: 435 kB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.764e-05/0.01098, allocations: 104.2 kB / 279.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.332e-05/0.01105, allocations: 38.25 kB / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.01115, allocations: 126.2 kB / 279.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of SimCode: time 3.2e-07/0.01115, allocations: 0 / 279.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of Templates: time 0.005336/0.01649, allocations: 4.387 MB / 284 MB, free: 6.449 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6126704812049866]