Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001896/0.001896, allocations: 99.53 kB / 20.96 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001842/0.001842, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.525/1.525, allocations: 177 MB / 204.4 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 272.2 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.517e-05/3.684e-05, allocations: 2.312 kB / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004263/0.0043, allocations: 2.026 MB / 274.2 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002671/0.006971, allocations: 1.246 MB / 275.5 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.007106, allocations: 4 kB / 275.5 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00105/0.008155, allocations: 307 kB / 275.8 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000666/0.008821, allocations: 266.9 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006463/0.009468, allocations: 231.3 kB / 276.2 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004913/0.009959, allocations: 363 kB / 276.6 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000164/0.01012, allocations: 52.88 kB / 276.7 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003187/0.01044, allocations: 191.5 kB / 276.8 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002295/0.01067, allocations: 139.6 kB / 277 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.044e-05/0.01072, allocations: 20 kB / 277 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002456/0.01097, allocations: 91.8 kB / 277.1 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001638/0.01113, allocations: 87.69 kB / 277.2 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001496/0.01128, allocations: 75.77 kB / 277.2 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006182/0.0119, allocations: 362.8 kB / 277.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.01191, allocations: 7.938 kB / 277.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.01191, allocations: 0 / 277.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.01192, allocations: 0 / 277.6 MB, free: 12.38 MB / 266.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.00131/0.01323, allocations: 0.724 MB / 278.3 MB, free: 11.6 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.01327, allocations: 15.98 kB / 278.3 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.01339, allocations: 44.7 kB / 278.4 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005154/0.0139, allocations: 278.8 kB / 278.7 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.01393, allocations: 12.38 kB / 278.7 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.301e-05/0.01396, allocations: 16.38 kB / 278.7 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003002/0.01426, allocations: 116.3 kB / 278.8 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.01427, allocations: 4.188 kB / 278.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/0.01429, allocations: 384 / 278.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.0143, allocations: 7.938 kB / 278.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001841/0.01448, allocations: 59.97 kB / 278.9 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008963/0.01538, allocations: 0.5033 MB / 279.4 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003345/0.01571, allocations: 127.2 kB / 279.5 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.01582, allocations: 47.66 kB / 279.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.01585, allocations: 0 / 279.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002464/0.01609, allocations: 121 kB / 279.7 MB, free: 10.17 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.01609, allocations: 0 / 279.7 MB, free: 10.17 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005441/0.01664, allocations: 213.3 kB / 279.9 MB, free: 9.953 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.041e-05/0.01669, allocations: 51.41 kB / 279.9 MB, free: 9.891 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006303/0.01732, allocations: 498.6 kB / 280.4 MB, free: 9.387 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.58e-05/0.01735, allocations: 33.7 kB / 280.4 MB, free: 9.348 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002257/0.01758, allocations: 234.8 kB / 280.7 MB, free: 9.113 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.895e-05/0.01764, allocations: 43.69 kB / 280.7 MB, free: 9.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.086e-05/0.01773, allocations: 59.36 kB / 280.8 MB, free: 9.004 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003487/0.01808, allocations: 0.5469 MB / 281.3 MB, free: 8.445 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001035/0.01818, allocations: 39.98 kB / 281.4 MB, free: 8.406 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/0.01838, allocations: 145.8 kB / 281.5 MB, free: 8.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002252/0.01861, allocations: 113.1 kB / 281.6 MB, free: 8.109 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.01861, allocations: 0 / 281.6 MB, free: 8.109 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000342/0.01895, allocations: 180.3 kB / 281.8 MB, free: 7.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.01897, allocations: 11.98 kB / 281.8 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.01898, allocations: 0 / 281.8 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.629e-05/0.019, allocations: 0 / 281.8 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.01913, allocations: 28.03 kB / 281.8 MB, free: 7.891 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.01914, allocations: 3.984 kB / 281.8 MB, free: 7.887 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.01924, allocations: 19.89 kB / 281.9 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.01926, allocations: 7.938 kB / 281.9 MB, free: 7.859 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 0.0001937/0.01945, allocations: 198.4 kB / 282.1 MB, free: 7.656 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.018e-05/0.01951, allocations: 35.81 kB / 282.1 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000411/0.01992, allocations: 176.5 kB / 282.3 MB, free: 7.441 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.01992, allocations: 0 / 282.3 MB, free: 7.441 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.01993, allocations: 0 / 282.3 MB, free: 7.441 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.01994, allocations: 7.984 kB / 282.3 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003769/0.02031, allocations: 296.4 kB / 282.6 MB, free: 7.109 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.02032, allocations: 0 / 282.6 MB, free: 7.109 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.451e-05/0.02037, allocations: 11.98 kB / 282.6 MB, free: 7.098 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.02037, allocations: 0 / 282.6 MB, free: 7.098 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.02039, allocations: 4 kB / 282.6 MB, free: 7.094 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.02039, allocations: 3.938 kB / 282.6 MB, free: 7.09 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.02039, allocations: 0 / 282.6 MB, free: 7.09 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004147/0.02081, allocations: 234.8 kB / 282.8 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.964e-05/0.02089, allocations: 35.73 kB / 282.8 MB, free: 6.805 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.497e-05/0.02093, allocations: 8 kB / 282.8 MB, free: 6.797 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.069e-05/0.02101, allocations: 8 kB / 282.9 MB, free: 6.789 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.507e-05/0.02109, allocations: 15.97 kB / 282.9 MB, free: 6.773 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.233e-05/0.02111, allocations: 8 kB / 282.9 MB, free: 6.766 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003822/0.02149, allocations: 319.1 kB / 283.2 MB, free: 6.457 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02149, allocations: 0 / 283.2 MB, free: 6.457 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002991/0.02179, allocations: 55.92 kB / 283.2 MB, free: 6.402 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.003068/0.02486, allocations: 449.2 kB / 283.7 MB, free: 6.109 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003483/0.02521, allocations: 127.4 kB / 283.8 MB, free: 5.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.02521, allocations: 0 / 283.8 MB, free: 5.98 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001518/0.02536, allocations: 71.59 kB / 283.9 MB, free: 5.906 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005053/0.02587, allocations: 93.25 kB / 284 MB, free: 5.812 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000905/0.02677, allocations: 472.1 kB / 284.4 MB, free: 5.32 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002134/0.02698, allocations: 174.3 kB / 284.6 MB, free: 5.133 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001181/0.0271, allocations: 38.25 kB / 284.6 MB, free: 5.094 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.313e-05/0.02718, allocations: 28.48 kB / 284.7 MB, free: 5.066 MB / 266.7 MB Notification: Performance of SimCode: time 8.12e-07/0.02719, allocations: 4 kB / 284.7 MB, free: 5.062 MB / 266.7 MB Notification: Performance of Templates: time 0.01033/0.03752, allocations: 4.046 MB / 288.7 MB, free: 1.059 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.670422759954818]