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.0009593/0.0009593, allocations: 72.08 kB / 21.69 MB, free: 2.852 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.0009756/0.0009756, allocations: 146 kB / 24.97 MB, free: 9.348 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.9477/0.9477, allocations: 173.4 MB / 201.5 MB, free: 9.344 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.393e-06/1.393e-06, allocations: 0 / 268.1 MB, free: 6.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.165e-05/2.304e-05, allocations: 2.312 kB / 268.1 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.0026/0.002623, allocations: 2.02 MB / 270.1 MB, free: 4.715 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00145/0.004073, allocations: 1.11 MB / 271.2 MB, free: 3.602 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.004204, allocations: 11.94 kB / 271.2 MB, free: 3.59 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007025/0.004907, allocations: 315 kB / 271.5 MB, free: 3.281 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003239/0.005231, allocations: 215.1 kB / 271.7 MB, free: 3.07 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005107/0.005742, allocations: 287.2 kB / 272 MB, free: 2.789 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000351/0.006092, allocations: 347 kB / 272.3 MB, free: 2.449 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.006221, allocations: 40.55 kB / 272.4 MB, free: 2.406 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002172/0.006438, allocations: 187.5 kB / 272.6 MB, free: 2.223 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001617/0.0066, allocations: 135.7 kB / 272.7 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.123e-05/0.006631, allocations: 19.94 kB / 272.7 MB, free: 2.07 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001663/0.006797, allocations: 87.8 kB / 272.8 MB, free: 1.984 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.941e-05/0.006887, allocations: 91.73 kB / 272.9 MB, free: 1.895 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.318e-05/0.00696, allocations: 71.72 kB / 273 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003247/0.007285, allocations: 259 kB / 273.2 MB, free: 1.57 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.007289, allocations: 0 / 273.2 MB, free: 1.57 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.007289, allocations: 0 / 273.2 MB, free: 1.57 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.007295, allocations: 0 / 273.2 MB, free: 1.57 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.0007134/0.008009, allocations: 0.697 MB / 273.9 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.008047, allocations: 12.86 kB / 273.9 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.14e-05/0.008139, allocations: 44.73 kB / 274 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003145/0.008453, allocations: 277.2 kB / 274.2 MB, free: 484 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.008473, allocations: 4.375 kB / 274.2 MB, free: 480 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.863e-05/0.008492, allocations: 15.94 kB / 274.3 MB, free: 464 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001713/0.008663, allocations: 89.62 kB / 274.3 MB, free: 368 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.00867, allocations: 0 / 274.3 MB, free: 368 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.008683, allocations: 4 kB / 274.3 MB, free: 364 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.00869, allocations: 8 kB / 274.4 MB, free: 356 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.477e-05/0.008765, allocations: 39.95 kB / 274.4 MB, free: 316 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000516/0.009281, allocations: 451.3 kB / 274.8 MB, free: 15.83 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001639/0.009445, allocations: 99.2 kB / 274.9 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.751e-05/0.009493, allocations: 31.67 kB / 275 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.009505, allocations: 0 / 275 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001337/0.009639, allocations: 97.02 kB / 275.1 MB, free: 15.58 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.00964, allocations: 0 / 275.1 MB, free: 15.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002936/0.009934, allocations: 188.7 kB / 275.2 MB, free: 15.39 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.193e-05/0.009966, allocations: 55.39 kB / 275.3 MB, free: 15.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002842/0.01025, allocations: 382.3 kB / 275.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.01027, allocations: 33.7 kB / 275.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.01038, allocations: 226.7 kB / 275.9 MB, free: 14.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.501e-05/0.01041, allocations: 35.7 kB / 276 MB, free: 14.63 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.789e-05/0.01047, allocations: 51.34 kB / 276 MB, free: 14.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.0106, allocations: 0.5157 MB / 276.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.7e-05/0.01065, allocations: 23.98 kB / 276.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.599e-05/0.01074, allocations: 125.8 kB / 276.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.592e-05/0.01083, allocations: 86.92 kB / 276.8 MB, free: 13.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.01084, allocations: 0 / 276.8 MB, free: 13.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001751/0.01101, allocations: 145.4 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.01103, allocations: 6.969 kB / 276.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.01103, allocations: 3.938 kB / 276.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.01104, allocations: 4.094 kB / 276.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.922e-05/0.01113, allocations: 31.92 kB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.01114, allocations: 4 kB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.626e-05/0.0112, allocations: 15.89 kB / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.968e-06/0.01121, allocations: 12 kB / 277 MB, free: 13.54 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 9.201e-05/0.0113, allocations: 166.6 kB / 277.1 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.592e-05/0.01133, allocations: 43.75 kB / 277.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002129/0.01155, allocations: 164.4 kB / 277.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.01155, allocations: 0 / 277.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.01155, allocations: 4 kB / 277.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.01156, allocations: 0 / 277.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000176/0.01173, allocations: 232.5 kB / 277.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.01173, allocations: 0 / 277.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.387e-05/0.01177, allocations: 16 kB / 277.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.01177, allocations: 0 / 277.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.01178, allocations: 3.984 kB / 277.6 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.01178, allocations: 11.88 kB / 277.6 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.01178, allocations: 0 / 277.6 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001853/0.01197, allocations: 196.1 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.874e-05/0.012, allocations: 27.8 kB / 277.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.741e-05/0.01203, allocations: 12 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.494e-05/0.01207, allocations: 7.938 kB / 277.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.013e-05/0.01212, allocations: 19.97 kB / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.01214, allocations: 8 kB / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001688/0.0123, allocations: 263 kB / 278.1 MB, free: 12.31 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0123, allocations: 0 / 278.1 MB, free: 12.31 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002071/0.01251, allocations: 51.94 kB / 278.2 MB, free: 12.26 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.0008379/0.01335, allocations: 422.5 kB / 278.6 MB, free: 11.99 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001675/0.01352, allocations: 91.48 kB / 278.7 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01352, allocations: 0 / 278.7 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.543e-05/0.01358, allocations: 55.59 kB / 278.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.01386, allocations: 90.8 kB / 278.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005273/0.01438, allocations: 434.9 kB / 279.2 MB, free: 11.3 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.714e-05/0.01444, allocations: 96.3 kB / 279.3 MB, free: 11.19 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.037e-05/0.01452, allocations: 46.23 kB / 279.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.969e-05/0.01457, allocations: 24.5 kB / 279.4 MB, free: 11.12 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.01457, allocations: 0 / 279.4 MB, free: 11.12 MB / 266.7 MB Notification: Performance of Templates: time 0.005937/0.02051, allocations: 4.002 MB / 283.4 MB, free: 7.164 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.765784021001309]