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.0009735/0.0009735, allocations: 76.08 kB / 21.18 MB, free: 3.387 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.0008749/0.0008749, allocations: 141.1 kB / 24.54 MB, free: 32 kB / 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.9912/0.9912, allocations: 173.3 MB / 201.1 MB, free: 9.336 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.674e-06/1.674e-06, allocations: 0 / 268 MB, free: 6.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.193e-05/3.36e-05, allocations: 2.312 kB / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002636/0.002669, allocations: 2.028 MB / 270 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.004138, allocations: 1.114 MB / 271.1 MB, free: 3.289 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.6e-05/0.004234, allocations: 3.938 kB / 271.1 MB, free: 3.285 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006656/0.0049, allocations: 319 kB / 271.4 MB, free: 2.973 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002876/0.005187, allocations: 219.1 kB / 271.6 MB, free: 2.758 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003977/0.005585, allocations: 291.3 kB / 271.9 MB, free: 2.473 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000281/0.005866, allocations: 343 kB / 272.3 MB, free: 2.137 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.005981, allocations: 36.5 kB / 272.3 MB, free: 2.098 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001662/0.006147, allocations: 187.5 kB / 272.5 MB, free: 1.914 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.006285, allocations: 139.6 kB / 272.6 MB, free: 1.777 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.002e-05/0.006315, allocations: 16 kB / 272.6 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001384/0.006454, allocations: 91.78 kB / 272.7 MB, free: 1.672 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.701e-05/0.006541, allocations: 91.69 kB / 272.8 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.164e-05/0.006612, allocations: 71.77 kB / 272.9 MB, free: 1.512 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002977/0.00691, allocations: 259 kB / 273.1 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.006912, allocations: 0 / 273.1 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.006913, allocations: 0 / 273.1 MB, free: 1.258 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.006919, allocations: 0 / 273.1 MB, free: 1.258 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.0006876/0.007606, allocations: 0.697 MB / 273.8 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.007649, allocations: 8.922 kB / 273.8 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.259e-05/0.007721, allocations: 40.75 kB / 273.9 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003134/0.008035, allocations: 285.2 kB / 274.2 MB, free: 164 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.008054, allocations: 4.375 kB / 274.2 MB, free: 160 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/0.008076, allocations: 15.94 kB / 274.2 MB, free: 144 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000166/0.008242, allocations: 89.62 kB / 274.3 MB, free: 48 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.008253, allocations: 0 / 274.3 MB, free: 48 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.008266, allocations: 4 kB / 274.3 MB, free: 44 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.008274, allocations: 4 kB / 274.3 MB, free: 40 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.885e-05/0.008343, allocations: 39.97 kB / 274.3 MB, free: 0 / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004773/0.00882, allocations: 455.3 kB / 274.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001556/0.008976, allocations: 99.2 kB / 274.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.849e-05/0.009024, allocations: 31.67 kB / 274.9 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.009041, allocations: 4 kB / 274.9 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001248/0.009166, allocations: 89.02 kB / 275 MB, free: 15.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.073e-06/0.009168, allocations: 7.938 kB / 275 MB, free: 15.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002644/0.009432, allocations: 185.2 kB / 275.2 MB, free: 15.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.357e-05/0.009456, allocations: 51.41 kB / 275.2 MB, free: 15.01 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002637/0.00972, allocations: 386.3 kB / 275.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.009737, allocations: 33.7 kB / 275.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.812e-05/0.009835, allocations: 218.8 kB / 275.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.305e-05/0.009868, allocations: 43.67 kB / 275.9 MB, free: 14.31 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.721e-05/0.009916, allocations: 47.36 kB / 275.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.01004, allocations: 0.5196 MB / 276.4 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.366e-05/0.01008, allocations: 19.98 kB / 276.5 MB, free: 13.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.293e-05/0.01017, allocations: 129.8 kB / 276.6 MB, free: 13.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.575e-05/0.01025, allocations: 82.17 kB / 276.7 MB, free: 13.46 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.01025, allocations: 0 / 276.7 MB, free: 13.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001568/0.01041, allocations: 141.4 kB / 276.8 MB, free: 13.31 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.01042, allocations: 4 kB / 276.8 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.01043, allocations: 7.922 kB / 276.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.01045, allocations: 4 kB / 276.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.429e-05/0.01053, allocations: 24.03 kB / 276.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.01054, allocations: 15.98 kB / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.088e-05/0.01059, allocations: 11.89 kB / 276.9 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.948e-06/0.0106, allocations: 12 kB / 276.9 MB, free: 13.23 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.32e-05/0.01069, allocations: 166.5 kB / 277.1 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.217e-05/0.01073, allocations: 43.8 kB / 277.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002057/0.01093, allocations: 163.2 kB / 277.3 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.01093, allocations: 0 / 277.3 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.01094, allocations: 3.984 kB / 277.3 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.01094, allocations: 4 kB / 277.3 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001663/0.01111, allocations: 232.5 kB / 277.5 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.01111, allocations: 0 / 277.5 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.216e-05/0.01114, allocations: 19.94 kB / 277.5 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.01114, allocations: 0 / 277.5 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.01115, allocations: 0 / 277.5 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.01115, allocations: 7.938 kB / 277.5 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.01115, allocations: 0 / 277.5 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000166/0.01132, allocations: 200.1 kB / 277.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.926e-05/0.01135, allocations: 23.81 kB / 277.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.578e-05/0.01137, allocations: 15.92 kB / 277.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.043e-05/0.01142, allocations: 11.94 kB / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.025e-05/0.01147, allocations: 19.97 kB / 277.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.01148, allocations: 8 kB / 277.8 MB, free: 12.26 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003102/0.01179, allocations: 263 kB / 278 MB, free: 12 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01179, allocations: 0 / 278 MB, free: 12 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001924/0.01198, allocations: 51.94 kB / 278.1 MB, free: 11.95 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.0008033/0.01279, allocations: 422 kB / 278.5 MB, free: 11.67 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001575/0.01294, allocations: 91.48 kB / 278.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.202e-06/0.01294, allocations: 0 / 278.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.302e-05/0.01301, allocations: 55.59 kB / 278.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002502/0.01326, allocations: 86.62 kB / 278.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004884/0.01375, allocations: 438.9 kB / 279.2 MB, free: 10.99 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.177e-05/0.0138, allocations: 96.3 kB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.829e-05/0.01387, allocations: 42.23 kB / 279.3 MB, free: 10.83 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.129e-05/0.01392, allocations: 32.48 kB / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of SimCode: time 6.12e-07/0.01392, allocations: 0 / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of Templates: time 0.005674/0.01959, allocations: 3.997 MB / 283.3 MB, free: 6.852 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: 3.0512253688648343]