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.001936/0.001936, allocations: 85.36 kB / 20.68 MB, free: 1.035 MB / 14.72 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.002452/0.002452, allocations: 164.8 kB / 23.95 MB, free: 4.168 MB / 14.72 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.472/1.472, allocations: 177.2 MB / 204.3 MB, free: 9.191 MB / 190.1 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.392e-06/1.392e-06, allocations: 0 / 325 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.759e-05/2.898e-05, allocations: 6.781 kB / 325 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002735/0.002764, allocations: 1.665 MB / 326.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007762/0.00354, allocations: 297.1 kB / 327 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.003647, allocations: 7.844 kB / 327 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.003793, allocations: 22.02 kB / 327 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.934e-05/0.003852, allocations: 27.42 kB / 327 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004302/0.004282, allocations: 116.3 kB / 327.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003877/0.00467, allocations: 280.9 kB / 327.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003665/0.005036, allocations: 162.1 kB / 327.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001888/0.005225, allocations: 141.3 kB / 327.7 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000144/0.005369, allocations: 73.77 kB / 327.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.182e-05/0.005411, allocations: 23.97 kB / 327.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.572e-05/0.005487, allocations: 26.42 kB / 327.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.128e-05/0.005568, allocations: 57 kB / 327.9 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.005678, allocations: 74.14 kB / 328 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003868/0.006065, allocations: 267.5 kB / 328.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.006068, allocations: 9.5 kB / 328.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.006069, allocations: 0 / 328.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.006076, allocations: 0 / 328.3 MB, free: 14.61 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008731/0.006949, allocations: 419.5 kB / 328.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.006997, allocations: 11.27 kB / 328.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003205/0.007317, allocations: 39.2 kB / 328.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002737/0.007591, allocations: 168.8 kB / 328.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.525e-05/0.007626, allocations: 22.17 kB / 328.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.833e-05/0.007674, allocations: 31.88 kB / 328.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005558/0.00823, allocations: 271.6 kB / 329.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.008244, allocations: 0.9375 kB / 329.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.849e-05/0.008273, allocations: 11.16 kB / 329.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.008284, allocations: 7.438 kB / 329.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003288/0.008613, allocations: 165.7 kB / 329.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.009828, allocations: 0.8309 MB / 330.2 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003357/0.01016, allocations: 155.9 kB / 330.4 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001286/0.01029, allocations: 75.06 kB / 330.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.251e-05/0.01031, allocations: 2.531 kB / 330.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002309/0.01055, allocations: 149.3 kB / 330.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.01055, allocations: 0 / 330.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004975/0.01104, allocations: 223.2 kB / 330.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.199e-05/0.01112, allocations: 86.86 kB / 330.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001664/0.01128, allocations: 156.5 kB / 331 MB, free: 12.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.585e-05/0.01133, allocations: 42.47 kB / 331.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.01146, allocations: 143 kB / 331.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.668e-05/0.01153, allocations: 60.92 kB / 331.3 MB, free: 12.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.01166, allocations: 84.33 kB / 331.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.01184, allocations: 327.2 kB / 331.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.01197, allocations: 66.16 kB / 331.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.01218, allocations: 139.9 kB / 331.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002985/0.01247, allocations: 186.1 kB / 332.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.01248, allocations: 4.875 kB / 332.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004375/0.01292, allocations: 257.4 kB / 332.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.01294, allocations: 5.531 kB / 332.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.01295, allocations: 3.312 kB / 332.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.689e-05/0.01298, allocations: 7.25 kB / 332.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.01312, allocations: 33.86 kB / 332.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.01314, allocations: 13.14 kB / 332.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.01325, allocations: 27.44 kB / 332.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.01327, allocations: 10.56 kB / 332.4 MB, free: 11.49 MB / 302.1 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.0002032/0.01348, allocations: 159.7 kB / 332.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.389e-05/0.01351, allocations: 18.75 kB / 332.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.172e-05/0.01357, allocations: 19.22 kB / 332.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.01358, allocations: 6.266 kB / 332.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.01359, allocations: 1.094 kB / 332.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.0136, allocations: 1.031 kB / 332.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008163/0.01441, allocations: 0.4969 MB / 333.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.01442, allocations: 4.969 kB / 333.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.447e-05/0.01449, allocations: 15.53 kB / 333.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.0145, allocations: 5.516 kB / 333.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.01452, allocations: 5.031 kB / 333.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.01452, allocations: 2.219 kB / 333.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.01452, allocations: 0 / 333.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004121/0.01493, allocations: 283.9 kB / 333.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.379e-05/0.01496, allocations: 12.53 kB / 333.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.81e-05/0.01499, allocations: 7.281 kB / 333.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.975e-05/0.01508, allocations: 10.47 kB / 333.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.576e-05/0.01517, allocations: 25.08 kB / 333.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.742e-05/0.01519, allocations: 5.281 kB / 333.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9e-05/0.01528, allocations: 101.2 kB / 333.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01528, allocations: 1.156 kB / 333.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003383/0.01562, allocations: 53.95 kB / 333.6 MB, free: 10.53 MB / 302.1 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.0001604/0.01578, allocations: 106.3 kB / 333.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003783/0.01616, allocations: 168.1 kB / 333.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01616, allocations: 5.125 kB / 333.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001555/0.01631, allocations: 69.38 kB / 334 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.01664, allocations: 20.52 kB / 334 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007445/0.01738, allocations: 338.5 kB / 334.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001439/0.01752, allocations: 126.5 kB / 334.4 MB, free: 9.973 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.995e-05/0.01759, allocations: 19.02 kB / 334.5 MB, free: 9.969 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.679e-05/0.01766, allocations: 20.78 kB / 334.5 MB, free: 9.961 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.01766, allocations: 0 / 334.5 MB, free: 9.961 MB / 302.1 MB Notification: Performance of Templates: time 0.006025/0.02369, allocations: 1.767 MB / 336.3 MB, free: 9.062 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] 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.355387609452009]