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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0005993/0.0005993, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009075/0.001507, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0006262/0.0006262, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008217/0.001448, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8294/0.8294, allocations: 158.6 MB / 171.2 MB, free: 2.504 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1342/0.9636, allocations: 49.5 MB / 220.7 MB, free: 1.355 MB / 218.7 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 222 MB, free: 72 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.861e-05/2e-05, allocations: 5.406 kB / 222 MB, free: 68 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002376/0.002396, allocations: 2.053 MB / 224 MB, free: 13.99 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.003776, allocations: 1.06 MB / 225.1 MB, free: 12.92 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001259/0.003902, allocations: 11.94 kB / 225.1 MB, free: 12.91 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005127/0.004415, allocations: 291 kB / 225.4 MB, free: 12.62 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003123/0.004727, allocations: 231.1 kB / 225.6 MB, free: 12.4 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004497/0.005177, allocations: 267.2 kB / 225.9 MB, free: 12.14 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000339/0.005516, allocations: 335.1 kB / 226.2 MB, free: 11.81 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.005619, allocations: 46.47 kB / 226.2 MB, free: 11.77 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002629/0.005882, allocations: 257.4 kB / 226.5 MB, free: 11.51 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.006032, allocations: 131.7 kB / 226.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.633e-05/0.006058, allocations: 16 kB / 226.6 MB, free: 11.37 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000161/0.006219, allocations: 91.84 kB / 226.7 MB, free: 11.28 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.761e-05/0.006297, allocations: 75.73 kB / 226.8 MB, free: 11.2 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.751e-05/0.006354, allocations: 51.81 kB / 226.9 MB, free: 11.15 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002755/0.006629, allocations: 243 kB / 227.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.938e-06/0.006639, allocations: 4 kB / 227.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.00664, allocations: 0 / 227.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.006649, allocations: 0 / 227.1 MB, free: 10.91 MB / 234.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.0005641/0.007213, allocations: 0.6033 MB / 227.7 MB, free: 10.27 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.545e-05/0.007239, allocations: 8.031 kB / 227.7 MB, free: 10.26 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.752e-05/0.007286, allocations: 32.91 kB / 227.7 MB, free: 10.23 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002347/0.007521, allocations: 234.5 kB / 228 MB, free: 9.973 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/0.007539, allocations: 12.36 kB / 228 MB, free: 9.961 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.007556, allocations: 12.38 kB / 228 MB, free: 9.949 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.007683, allocations: 100.8 kB / 228.1 MB, free: 9.844 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.00769, allocations: 7.938 kB / 228.1 MB, free: 9.836 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.007698, allocations: 0 / 228.1 MB, free: 9.836 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.007703, allocations: 4 kB / 228.1 MB, free: 9.832 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.109e-05/0.007744, allocations: 27.97 kB / 228.1 MB, free: 9.805 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003128/0.008057, allocations: 265.6 kB / 228.4 MB, free: 9.527 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001191/0.008176, allocations: 125.2 kB / 228.5 MB, free: 9.395 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.983e-05/0.008206, allocations: 28.84 kB / 228.5 MB, free: 9.363 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.165e-05/0.008217, allocations: 4 kB / 228.5 MB, free: 9.359 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001042/0.008322, allocations: 94.09 kB / 228.6 MB, free: 9.254 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.773e-06/0.008323, allocations: 0 / 228.6 MB, free: 9.254 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001509/0.008474, allocations: 107.5 kB / 228.7 MB, free: 9.145 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.358e-05/0.008498, allocations: 55.41 kB / 228.8 MB, free: 9.078 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001983/0.008696, allocations: 320.5 kB / 229.1 MB, free: 8.75 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.008715, allocations: 33.7 kB / 229.1 MB, free: 8.711 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.161e-05/0.008766, allocations: 129 kB / 229.3 MB, free: 8.582 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.891e-05/0.008795, allocations: 39.67 kB / 229.3 MB, free: 8.543 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.173e-05/0.008837, allocations: 45.69 kB / 229.4 MB, free: 8.492 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.849e-05/0.008915, allocations: 346.7 kB / 229.7 MB, free: 8.145 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.856e-05/0.008944, allocations: 22.75 kB / 229.7 MB, free: 8.121 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.702e-05/0.009001, allocations: 107.7 kB / 229.8 MB, free: 7.988 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.583e-05/0.009067, allocations: 68.11 kB / 229.9 MB, free: 7.91 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.009069, allocations: 3.938 kB / 229.9 MB, free: 7.906 MB / 234.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001104/0.009179, allocations: 113.1 kB / 230 MB, free: 7.789 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.00919, allocations: 8 kB / 230 MB, free: 7.781 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/0.009193, allocations: 0 / 230 MB, free: 7.781 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.428e-06/0.009203, allocations: 4 kB / 230 MB, free: 7.777 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.748e-05/0.00928, allocations: 23.98 kB / 230 MB, free: 7.754 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/0.009284, allocations: 3.984 kB / 230 MB, free: 7.75 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.195e-05/0.009336, allocations: 19.89 kB / 230.1 MB, free: 7.73 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/0.009348, allocations: 7.938 kB / 230.1 MB, free: 7.723 MB / 234.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.564e-05/0.009424, allocations: 130.6 kB / 230.2 MB, free: 7.586 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.087e-05/0.009444, allocations: 19.98 kB / 230.2 MB, free: 7.566 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001476/0.009592, allocations: 116.4 kB / 230.3 MB, free: 7.445 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.009594, allocations: 0 / 230.3 MB, free: 7.445 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.009596, allocations: 0 / 230.3 MB, free: 7.445 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.009601, allocations: 4 kB / 230.3 MB, free: 7.441 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001352/0.009736, allocations: 153.6 kB / 230.5 MB, free: 7.273 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.009739, allocations: 4 kB / 230.5 MB, free: 7.27 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.216e-05/0.009781, allocations: 19.92 kB / 230.5 MB, free: 7.25 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.548e-05/0.009806, allocations: 23.81 kB / 230.5 MB, free: 7.227 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.009809, allocations: 0 / 230.5 MB, free: 7.227 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.769e-06/0.009819, allocations: 7.984 kB / 230.5 MB, free: 7.219 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.009823, allocations: 8 kB / 230.5 MB, free: 7.211 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.009824, allocations: 0 / 230.5 MB, free: 7.211 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001112/0.009935, allocations: 133.2 kB / 230.7 MB, free: 7.062 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.248e-05/0.009957, allocations: 4 kB / 230.7 MB, free: 7.059 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.225e-05/0.01, allocations: 11.98 kB / 230.7 MB, free: 7.047 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.281e-05/0.01003, allocations: 11.92 kB / 230.7 MB, free: 7.035 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.01005, allocations: 11.98 kB / 230.7 MB, free: 7.023 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0001015/0.01015, allocations: 131.4 kB / 230.8 MB, free: 6.895 MB / 234.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01015, allocations: 0 / 230.8 MB, free: 6.895 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001677/0.01032, allocations: 51.89 kB / 230.9 MB, free: 6.844 MB / 234.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.001096/0.01141, allocations: 0.5788 MB / 231.5 MB, free: 6.293 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001198/0.01153, allocations: 68.67 kB / 231.5 MB, free: 6.223 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 9.497e-06/0.01154, allocations: 7.938 kB / 231.5 MB, free: 6.215 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 5.751e-05/0.0116, allocations: 56.75 kB / 231.6 MB, free: 6.156 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003117/0.01191, allocations: 448.9 kB / 232 MB, free: 5.645 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005963/0.01251, allocations: 442.3 kB / 232.5 MB, free: 5.184 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.213e-05/0.01256, allocations: 96.3 kB / 232.6 MB, free: 5.07 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 7.089e-05/0.01263, allocations: 38.25 kB / 232.6 MB, free: 5.031 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.01274, allocations: 99.34 kB / 232.7 MB, free: 4.934 MB / 234.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01274, allocations: 4 kB / 232.7 MB, free: 4.93 MB / 234.7 MB Notification: Performance of Templates: time 0.005918/0.01865, allocations: 4.468 MB / 237.2 MB, free: 468 kB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.443616883829236]