Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.002436/0.002436, allocations: 95.61 kB / 20.96 MB, free: 3.461 MB / 18.57 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.002774/0.002774, allocations: 165.3 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.547/1.547, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 272.3 MB, free: 1.883 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.718e-05/2.873e-05, allocations: 2.312 kB / 272.3 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003148/0.003177, allocations: 1.7 MB / 274 MB, free: 176 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008017/0.003978, allocations: 295.1 kB / 274.3 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.239e-05/0.004071, allocations: 7.938 kB / 274.3 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001485/0.004219, allocations: 27.67 kB / 274.3 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.63e-05/0.004275, allocations: 19.8 kB / 274.3 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004433/0.004719, allocations: 127.8 kB / 274.4 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003616/0.00508, allocations: 279.4 kB / 274.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002853/0.005366, allocations: 163.7 kB / 274.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.005561, allocations: 139.7 kB / 275 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/0.005706, allocations: 67.77 kB / 275.1 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.618e-05/0.005753, allocations: 24 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.765e-05/0.00583, allocations: 39.98 kB / 275.1 MB, free: 15 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.977e-05/0.00591, allocations: 55.81 kB / 275.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.788e-05/0.006008, allocations: 67.83 kB / 275.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003628/0.006371, allocations: 271 kB / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.006373, allocations: 0 / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.006373, allocations: 0 / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.006377, allocations: 0 / 275.5 MB, free: 14.61 MB / 266.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.00101/0.007388, allocations: 0.5304 MB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.349e-05/0.007411, allocations: 8.031 kB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002569/0.007668, allocations: 60.77 kB / 276.1 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002422/0.00791, allocations: 172.3 kB / 276.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.98e-05/0.00794, allocations: 20.88 kB / 276.3 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.338e-05/0.007983, allocations: 28.38 kB / 276.3 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004881/0.008472, allocations: 292 kB / 276.6 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.008481, allocations: 192 / 276.6 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.267e-05/0.008504, allocations: 12.38 kB / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.00851, allocations: 4.375 kB / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000313/0.008823, allocations: 161.8 kB / 276.8 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.01012, allocations: 1.119 MB / 277.9 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003083/0.01043, allocations: 182.4 kB / 278.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.01056, allocations: 87.22 kB / 278.2 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.01058, allocations: 4 kB / 278.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000226/0.01081, allocations: 156.3 kB / 278.3 MB, free: 11.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.031e-06/0.01081, allocations: 0 / 278.3 MB, free: 11.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004264/0.01124, allocations: 227.8 kB / 278.6 MB, free: 11.37 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.563e-05/0.0113, allocations: 89.09 kB / 278.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.01153, allocations: 237.8 kB / 278.9 MB, free: 11.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.492e-05/0.01156, allocations: 33.83 kB / 278.9 MB, free: 10.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.01169, allocations: 191.5 kB / 279.1 MB, free: 10.78 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.991e-05/0.01177, allocations: 79.45 kB / 279.2 MB, free: 10.7 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.01192, allocations: 107.3 kB / 279.3 MB, free: 10.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002762/0.01219, allocations: 0.5001 MB / 279.8 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.01233, allocations: 67.91 kB / 279.9 MB, free: 10.01 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002264/0.01255, allocations: 164.8 kB / 280 MB, free: 9.809 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003345/0.01289, allocations: 240.6 kB / 280.2 MB, free: 9.531 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.01289, allocations: 4 kB / 280.3 MB, free: 9.527 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004537/0.01335, allocations: 273.2 kB / 280.5 MB, free: 9.254 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.01336, allocations: 4.281 kB / 280.5 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.331e-06/0.01337, allocations: 8 kB / 280.5 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.01338, allocations: 4 kB / 280.5 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.01351, allocations: 31.92 kB / 280.6 MB, free: 9.207 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.01352, allocations: 4 kB / 280.6 MB, free: 9.203 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.62e-05/0.01361, allocations: 27.84 kB / 280.6 MB, free: 9.176 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.689e-05/0.01363, allocations: 12 kB / 280.6 MB, free: 9.164 MB / 266.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: 32 ($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,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0001939/0.01383, allocations: 212.4 kB / 280.8 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.278e-05/0.01387, allocations: 27.84 kB / 280.8 MB, free: 8.918 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.733e-05/0.01392, allocations: 20.92 kB / 280.9 MB, free: 8.902 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.01392, allocations: 8 kB / 280.9 MB, free: 8.895 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.01392, allocations: 0 / 280.9 MB, free: 8.895 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.01393, allocations: 0 / 280.9 MB, free: 8.895 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008146/0.01474, allocations: 0.5705 MB / 281.4 MB, free: 8.277 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.01474, allocations: 0 / 281.4 MB, free: 8.277 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.324e-05/0.01482, allocations: 16 kB / 281.5 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.01482, allocations: 4 kB / 281.5 MB, free: 8.258 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.01483, allocations: 0 / 281.5 MB, free: 8.258 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.01484, allocations: 3.984 kB / 281.5 MB, free: 8.254 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.01484, allocations: 11.88 kB / 281.5 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004096/0.01525, allocations: 344.3 kB / 281.8 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.289e-05/0.01528, allocations: 15.89 kB / 281.8 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.455e-05/0.0153, allocations: 7.984 kB / 281.8 MB, free: 7.859 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.464e-05/0.01539, allocations: 8 kB / 281.8 MB, free: 7.852 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.742e-05/0.01544, allocations: 19.97 kB / 281.9 MB, free: 7.832 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.01546, allocations: 11.98 kB / 281.9 MB, free: 7.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001059/0.01557, allocations: 147 kB / 282 MB, free: 7.68 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01557, allocations: 0 / 282 MB, free: 7.68 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002871/0.01586, allocations: 51.84 kB / 282.1 MB, free: 7.629 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001232/0.01598, allocations: 111.1 kB / 282.2 MB, free: 7.508 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003603/0.01634, allocations: 199.5 kB / 282.4 MB, free: 7.312 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-06/0.01634, allocations: 0 / 282.4 MB, free: 7.312 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001505/0.01649, allocations: 91.39 kB / 282.5 MB, free: 7.219 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.01674, allocations: 30.64 kB / 282.5 MB, free: 7.191 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006163/0.01736, allocations: 362.5 kB / 282.8 MB, free: 6.809 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001379/0.0175, allocations: 129.9 kB / 283 MB, free: 6.664 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.229e-05/0.01757, allocations: 25.94 kB / 283 MB, free: 6.637 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002876/0.01786, allocations: 20.5 kB / 283 MB, free: 6.613 MB / 266.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01786, allocations: 0 / 283 MB, free: 6.613 MB / 266.7 MB Notification: Performance of Templates: time 0.005234/0.02309, allocations: 1.769 MB / 284.8 MB, free: 4.875 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.438505178899504]