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.00162/0.00162, allocations: 83.16 kB / 20.68 MB, free: 1.039 MB / 14.72 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.001728/0.001728, allocations: 157.6 kB / 23.95 MB, free: 4.168 MB / 14.72 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.444/1.444, allocations: 177 MB / 204.1 MB, free: 9.176 MB / 190.1 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.613e-06/1.613e-06, allocations: 0 / 325 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.649e-05/2.81e-05, allocations: 2.281 kB / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00449/0.004518, allocations: 1.986 MB / 327 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00321/0.007728, allocations: 1.225 MB / 328.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001403/0.007869, allocations: 4 kB / 328.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001091/0.008959, allocations: 318 kB / 328.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008134/0.009773, allocations: 266.2 kB / 328.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008924/0.01067, allocations: 232.9 kB / 329 MB, free: 14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006303/0.0113, allocations: 363 kB / 329.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.01148, allocations: 35.95 kB / 329.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004129/0.01189, allocations: 197.3 kB / 329.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002952/0.01219, allocations: 140.4 kB / 329.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.741e-05/0.01224, allocations: 18.94 kB / 329.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002987/0.01254, allocations: 91.91 kB / 329.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001674/0.01271, allocations: 91.23 kB / 329.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001624/0.01287, allocations: 79.88 kB / 330 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007064/0.01358, allocations: 360.9 kB / 330.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.01358, allocations: 0 / 330.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.01358, allocations: 0 / 330.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.0136, allocations: 3.938 kB / 330.4 MB, free: 13.33 MB / 302.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.00135/0.01495, allocations: 0.6032 MB / 331 MB, free: 12.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.01499, allocations: 13.39 kB / 331 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.0151, allocations: 37.27 kB / 331 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006336/0.01574, allocations: 274.9 kB / 331.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.01576, allocations: 9.469 kB / 331.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.976e-05/0.0158, allocations: 11.97 kB / 331.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003826/0.01618, allocations: 118.8 kB / 331.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.01619, allocations: 192 / 331.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.03e-05/0.01622, allocations: 10.45 kB / 331.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.406e-05/0.01625, allocations: 14.03 kB / 331.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002656/0.01651, allocations: 71.03 kB / 331.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008014/0.01731, allocations: 414.3 kB / 331.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003484/0.01766, allocations: 128.7 kB / 332 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001317/0.01779, allocations: 51.27 kB / 332.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.385e-05/0.01781, allocations: 2.469 kB / 332.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002514/0.01806, allocations: 121.1 kB / 332.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.753e-06/0.01806, allocations: 0 / 332.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005608/0.01862, allocations: 228.3 kB / 332.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.01867, allocations: 61.42 kB / 332.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005472/0.01921, allocations: 458.9 kB / 332.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.01924, allocations: 31.86 kB / 333 MB, free: 11.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.0194, allocations: 172.3 kB / 333.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.818e-05/0.01944, allocations: 42.25 kB / 333.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.145e-05/0.01952, allocations: 41.83 kB / 333.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.0197, allocations: 351.1 kB / 333.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.01982, allocations: 45.27 kB / 333.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.02002, allocations: 155.1 kB / 333.8 MB, free: 10.6 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/0.02024, allocations: 104.6 kB / 333.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.02024, allocations: 1.375 kB / 333.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.00036/0.0206, allocations: 187 kB / 334 MB, free: 10.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.02062, allocations: 10.62 kB / 334.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.02062, allocations: 0 / 334.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.977e-05/0.02065, allocations: 2.219 kB / 334.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.02078, allocations: 25.73 kB / 334.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.02078, allocations: 1.438 kB / 334.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.0209, allocations: 22.81 kB / 334.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.02091, allocations: 8.844 kB / 334.1 MB, free: 10.39 MB / 302.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.0001791/0.02109, allocations: 165.2 kB / 334.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.443e-05/0.02115, allocations: 34.78 kB / 334.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004236/0.02157, allocations: 208.8 kB / 334.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.02157, allocations: 2.812 kB / 334.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.02158, allocations: 0 / 334.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.02158, allocations: 3.984 kB / 334.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002656/0.02185, allocations: 229.4 kB / 334.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.02185, allocations: 0 / 334.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-05/0.02191, allocations: 17.09 kB / 334.8 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.02191, allocations: 1.125 kB / 334.8 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.02193, allocations: 10.23 kB / 334.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.02193, allocations: 1.062 kB / 334.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.02193, allocations: 4 kB / 334.8 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003961/0.02233, allocations: 224.3 kB / 335 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.959e-05/0.02239, allocations: 33.39 kB / 335 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.437e-05/0.02243, allocations: 5.719 kB / 335 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.416e-05/0.02253, allocations: 16.42 kB / 335.1 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.743e-05/0.02258, allocations: 10.2 kB / 335.1 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/0.0226, allocations: 8.781 kB / 335.1 MB, free: 9.691 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003776/0.02298, allocations: 336.9 kB / 335.4 MB, free: 9.496 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.02298, allocations: 0 / 335.4 MB, free: 9.496 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003002/0.02328, allocations: 56.09 kB / 335.5 MB, free: 9.48 MB / 302.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,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.001717/0.025, allocations: 448.6 kB / 335.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003231/0.02532, allocations: 126.4 kB / 336 MB, free: 9.188 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.02532, allocations: 0 / 336 MB, free: 9.188 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001373/0.02546, allocations: 59.55 kB / 336.1 MB, free: 9.164 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004651/0.02593, allocations: 78.09 kB / 336.2 MB, free: 9.129 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008268/0.02675, allocations: 0.5211 MB / 336.7 MB, free: 8.785 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001736/0.02693, allocations: 163.3 kB / 336.8 MB, free: 8.668 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001107/0.02704, allocations: 43.11 kB / 336.9 MB, free: 8.648 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.718e-05/0.02711, allocations: 34.55 kB / 336.9 MB, free: 8.633 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.02711, allocations: 0 / 336.9 MB, free: 8.633 MB / 302.1 MB Notification: Performance of Templates: time 0.009067/0.03618, allocations: 4.032 MB / 340.9 MB, free: 4.996 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] 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.288576245307922]