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.001449/0.001449, allocations: 123.4 kB / 18.46 MB, free: 4.598 MB / 14.72 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.001725/0.001725, allocations: 192.3 kB / 21.4 MB, free: 1.668 MB / 14.72 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 1.395/1.395, allocations: 225.6 MB / 249.8 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001486/0.001486, allocations: 51.92 kB / 366.8 MB, free: 440 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.111, allocations: 52.14 MB / 418.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003511/0.1145, allocations: 2.023 MB / 421 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.1166, allocations: 1.146 MB / 422.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.1168, allocations: 0 / 422.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009774/0.1177, allocations: 303.2 kB / 422.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005075/0.1182, allocations: 203.2 kB / 422.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008571/0.1191, allocations: 294.7 kB / 422.9 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004557/0.1196, allocations: 331.1 kB / 423.2 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.1197, allocations: 44.38 kB / 423.3 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.1199, allocations: 143.4 kB / 423.4 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002334/0.1202, allocations: 159.4 kB / 423.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.011e-05/0.1202, allocations: 19.94 kB / 423.6 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002085/0.1204, allocations: 79.95 kB / 423.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001233/0.1205, allocations: 91.67 kB / 423.7 MB, free: 7.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.1207, allocations: 127.2 kB / 423.9 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005077/0.1212, allocations: 346.5 kB / 424.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.237e-06/0.1212, allocations: 0 / 424.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1212, allocations: 0 / 424.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.704e-06/0.1212, allocations: 0 / 424.2 MB, free: 6.922 MB / 350.1 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.001207/0.1224, allocations: 0.6725 MB / 424.9 MB, free: 6.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.1225, allocations: 8.031 kB / 424.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.064e-05/0.1225, allocations: 36.7 kB / 424.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005042/0.123, allocations: 336 kB / 425.2 MB, free: 5.773 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/0.1231, allocations: 8 kB / 425.3 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.022e-05/0.1231, allocations: 12 kB / 425.3 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000313/0.1234, allocations: 140.2 kB / 425.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.1234, allocations: 4 kB / 425.4 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.1234, allocations: 7.938 kB / 425.4 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.1235, allocations: 11.92 kB / 425.4 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00017/0.1236, allocations: 75.89 kB / 425.5 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007287/0.1244, allocations: 0.4885 MB / 426 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003366/0.1247, allocations: 126.8 kB / 426.1 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.1248, allocations: 48.83 kB / 426.2 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.98e-05/0.1248, allocations: 3.938 kB / 426.2 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002366/0.1251, allocations: 115.3 kB / 426.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.1251, allocations: 0 / 426.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.000519/0.1256, allocations: 212.2 kB / 426.5 MB, free: 4.441 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.635e-05/0.1257, allocations: 110.8 kB / 426.6 MB, free: 4.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005214/0.1262, allocations: 428.5 kB / 427 MB, free: 3.883 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.1262, allocations: 29.7 kB / 427 MB, free: 3.848 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.1263, allocations: 175.9 kB / 427.2 MB, free: 3.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.561e-05/0.1264, allocations: 43.66 kB / 427.3 MB, free: 3.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.755e-05/0.1265, allocations: 41.7 kB / 427.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.1266, allocations: 342.8 kB / 427.6 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.1267, allocations: 51.92 kB / 427.7 MB, free: 3.188 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001569/0.1269, allocations: 100.4 kB / 427.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000204/0.1271, allocations: 98.5 kB / 427.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.1271, allocations: 4 kB / 427.9 MB, free: 2.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003236/0.1274, allocations: 177.3 kB / 428 MB, free: 2.781 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.1274, allocations: 8 kB / 428.1 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.1274, allocations: 0 / 428.1 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.1275, allocations: 0 / 428.1 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.1276, allocations: 27.98 kB / 428.1 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.1276, allocations: 0 / 428.1 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.668e-05/0.1277, allocations: 19.88 kB / 428.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.551e-05/0.1277, allocations: 12.06 kB / 428.1 MB, free: 2.715 MB / 350.1 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.000181/0.1279, allocations: 171.5 kB / 428.3 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.906e-05/0.1279, allocations: 31.75 kB / 428.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.525e-05/0.128, allocations: 34.94 kB / 428.3 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.128, allocations: 8 kB / 428.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.128, allocations: 0 / 428.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.128, allocations: 3.938 kB / 428.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003487/0.1284, allocations: 309.3 kB / 428.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1284, allocations: 0 / 428.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.561e-05/0.1284, allocations: 8 kB / 428.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.1284, allocations: 4 kB / 428.7 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.1284, allocations: 7.922 kB / 428.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1284, allocations: 0 / 428.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1284, allocations: 0 / 428.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003599/0.1288, allocations: 211.9 kB / 428.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.813e-05/0.1289, allocations: 104.9 kB / 429 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.853e-05/0.1289, allocations: 4 kB / 429 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.626e-05/0.129, allocations: 15.98 kB / 429 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.625e-05/0.1291, allocations: 15.98 kB / 429 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.1291, allocations: 4 kB / 429 MB, free: 1.699 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003673/0.1295, allocations: 315 kB / 429.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1295, allocations: 0 / 429.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002863/0.1297, allocations: 55.88 kB / 429.4 MB, free: 1.336 MB / 350.1 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,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * 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.001513/0.1313, allocations: 436.3 kB / 429.8 MB, free: 1.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003198/0.1316, allocations: 111.9 kB / 429.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1316, allocations: 0 / 429.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001289/0.1317, allocations: 63.84 kB / 430 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004103/0.1321, allocations: 85.39 kB / 430.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000855/0.133, allocations: 0.5172 MB / 430.6 MB, free: 284 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004151/0.1334, allocations: 0.7753 MB / 431.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.18e-05/0.1335, allocations: 31.42 kB / 431.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.1335, allocations: 0 / 431.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of Templates: time 0.006858/0.1403, allocations: 4.206 MB / 435.6 MB, free: 11.25 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 7.209501087199897]