Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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.0008346/0.0008346, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001234/0.002069, 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.0007575/0.0007575, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001046/0.001804, 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.8776/0.8776, allocations: 158.6 MB / 171.2 MB, free: 2.512 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1536/1.031, 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.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 222 MB, free: 92 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.977e-05/2.121e-05, allocations: 2.312 kB / 222 MB, free: 88 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002205/0.002227, allocations: 1.767 MB / 223.7 MB, free: 14.3 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009547/0.003181, allocations: 275 kB / 224 MB, free: 14.03 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.172e-05/0.003273, allocations: 4 kB / 224 MB, free: 14.03 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 7.445e-05/0.003348, allocations: 23.67 kB / 224 MB, free: 14 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.58e-05/0.003403, allocations: 27.78 kB / 224 MB, free: 13.98 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000313/0.003716, allocations: 119.7 kB / 224.2 MB, free: 13.86 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002489/0.003965, allocations: 275.5 kB / 224.4 MB, free: 13.59 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002236/0.004189, allocations: 155.9 kB / 224.6 MB, free: 13.44 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.004312, allocations: 131.8 kB / 224.7 MB, free: 13.31 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.004426, allocations: 75.75 kB / 224.8 MB, free: 13.24 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.929e-05/0.004456, allocations: 24 kB / 224.8 MB, free: 13.21 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.53e-05/0.004541, allocations: 24 kB / 224.8 MB, free: 13.19 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.659e-05/0.004587, allocations: 47.86 kB / 224.9 MB, free: 13.14 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.333e-05/0.004641, allocations: 51.88 kB / 224.9 MB, free: 13.09 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002373/0.004878, allocations: 179.2 kB / 225.1 MB, free: 12.92 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.447e-05/0.004893, allocations: 0 / 225.1 MB, free: 12.92 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.004894, allocations: 0 / 225.1 MB, free: 12.92 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.004908, allocations: 0 / 225.1 MB, free: 12.92 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006403/0.005548, allocations: 434.7 kB / 225.5 MB, free: 12.46 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.005586, allocations: 8.031 kB / 225.5 MB, free: 12.46 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.829e-05/0.005655, allocations: 40.91 kB / 225.6 MB, free: 12.42 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002253/0.00588, allocations: 149.5 kB / 225.7 MB, free: 12.25 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.329e-05/0.005913, allocations: 20.88 kB / 225.7 MB, free: 12.23 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.761e-05/0.005941, allocations: 24.38 kB / 225.8 MB, free: 12.2 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002362/0.006177, allocations: 234.5 kB / 226 MB, free: 11.95 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.006187, allocations: 4.188 kB / 226 MB, free: 11.95 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/0.006201, allocations: 8.375 kB / 226 MB, free: 11.94 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.00621, allocations: 8.375 kB / 226 MB, free: 11.93 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.881e-05/0.006299, allocations: 75.33 kB / 226.1 MB, free: 11.86 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006886/0.006987, allocations: 0.7232 MB / 226.8 MB, free: 11.11 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000178/0.007165, allocations: 106.3 kB / 226.9 MB, free: 10.99 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.128e-05/0.007206, allocations: 36.84 kB / 227 MB, free: 10.95 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.007224, allocations: 8 kB / 227 MB, free: 10.95 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001247/0.007349, allocations: 99.12 kB / 227.1 MB, free: 10.84 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.433e-06/0.00735, allocations: 4 kB / 227.1 MB, free: 10.83 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0001792/0.00753, allocations: 122.2 kB / 227.2 MB, free: 10.71 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.007568, allocations: 59.41 kB / 227.2 MB, free: 10.64 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.733e-05/0.007656, allocations: 162.4 kB / 227.4 MB, free: 10.46 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.007681, allocations: 33.7 kB / 227.4 MB, free: 10.43 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.743e-05/0.007749, allocations: 144.8 kB / 227.6 MB, free: 10.28 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.566e-05/0.007784, allocations: 63.5 kB / 227.6 MB, free: 10.22 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.597e-05/0.00785, allocations: 77.95 kB / 227.7 MB, free: 10.13 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.024e-05/0.00793, allocations: 334.8 kB / 228 MB, free: 9.797 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.329e-05/0.007964, allocations: 28.64 kB / 228.1 MB, free: 9.77 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.624e-05/0.00803, allocations: 101.8 kB / 228.2 MB, free: 9.641 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001431/0.008173, allocations: 164.2 kB / 228.3 MB, free: 9.449 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.008176, allocations: 0 / 228.3 MB, free: 9.449 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0001836/0.00836, allocations: 165.4 kB / 228.5 MB, free: 9.281 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.008378, allocations: 11.94 kB / 228.5 MB, free: 9.27 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.008385, allocations: 0 / 228.5 MB, free: 9.27 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.008405, allocations: 7.984 kB / 228.5 MB, free: 9.262 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.008555, allocations: 47.91 kB / 228.6 MB, free: 9.215 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.008564, allocations: 12.22 kB / 228.6 MB, free: 9.203 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.705e-05/0.008651, allocations: 27.78 kB / 228.6 MB, free: 9.176 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.43e-05/0.008675, allocations: 12 kB / 228.6 MB, free: 9.164 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001093/0.008784, allocations: 136.4 kB / 228.7 MB, free: 9.023 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.769e-05/0.008812, allocations: 23.92 kB / 228.8 MB, free: 9 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001871/0.008999, allocations: 118.6 kB / 228.9 MB, free: 8.875 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.009003, allocations: 4 kB / 228.9 MB, free: 8.871 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.009006, allocations: 0 / 228.9 MB, free: 8.871 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.00901, allocations: 3.938 kB / 228.9 MB, free: 8.867 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000373/0.009383, allocations: 377.7 kB / 229.3 MB, free: 8.469 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.009385, allocations: 3.938 kB / 229.3 MB, free: 8.465 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.32e-05/0.009438, allocations: 23.98 kB / 229.3 MB, free: 8.441 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.525e-05/0.009453, allocations: 19.83 kB / 229.3 MB, free: 8.422 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.009456, allocations: 0 / 229.3 MB, free: 8.422 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-06/0.009466, allocations: 3.984 kB / 229.3 MB, free: 8.418 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.009468, allocations: 4 kB / 229.3 MB, free: 8.414 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.009469, allocations: 0 / 229.3 MB, free: 8.414 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000127/0.009596, allocations: 211.3 kB / 229.5 MB, free: 8.191 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.009615, allocations: 11.98 kB / 229.5 MB, free: 8.18 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.715e-05/0.009662, allocations: 8 kB / 229.5 MB, free: 8.172 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.002e-05/0.009722, allocations: 19.97 kB / 229.6 MB, free: 8.152 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.218e-06/0.009731, allocations: 4 kB / 229.6 MB, free: 8.148 MB / 234.7 MB Notification: Performance of sorting global known variables: time 2.022e-05/0.009751, allocations: 20.84 kB / 229.6 MB, free: 8.125 MB / 234.7 MB Notification: Performance of sort global known variables: time 4e-08/0.009752, allocations: 0 / 229.6 MB, free: 8.125 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001842/0.009936, allocations: 51.88 kB / 229.6 MB, free: 8.074 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: 19 (step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0001455/0.01008, allocations: 88.36 kB / 229.7 MB, free: 7.98 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001685/0.01025, allocations: 130 kB / 229.8 MB, free: 7.852 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/0.01026, allocations: 8.094 kB / 229.9 MB, free: 7.844 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 7.549e-05/0.01033, allocations: 73.08 kB / 229.9 MB, free: 7.77 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002337/0.01057, allocations: 214.1 kB / 230.1 MB, free: 7.523 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005457/0.01111, allocations: 313.5 kB / 230.4 MB, free: 7.191 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.754e-05/0.01116, allocations: 80.33 kB / 230.5 MB, free: 7.094 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 6.209e-05/0.01122, allocations: 21.95 kB / 230.5 MB, free: 7.066 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.211e-05/0.01132, allocations: 91.34 kB / 230.6 MB, free: 6.977 MB / 234.7 MB Notification: Performance of SimCode: time 9.02e-07/0.01132, allocations: 0 / 230.6 MB, free: 6.977 MB / 234.7 MB Notification: Performance of Templates: time 0.004563/0.01588, allocations: 2.102 MB / 232.7 MB, free: 4.891 MB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.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.5987929347902536]