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.001724/0.001724, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.0021/0.0021, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.728/1.728, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.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 0.001712/0.001712, allocations: 43.92 kB / 373.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1462, allocations: 53.32 MB / 426.8 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003755/0.15, allocations: 1.69 MB / 428.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009019/0.1509, allocations: 291.1 kB / 428.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.151, allocations: 7.938 kB / 428.8 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002247/0.1513, allocations: 23.73 kB / 428.8 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.544e-05/0.1513, allocations: 19.75 kB / 428.8 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006432/0.152, allocations: 119.8 kB / 428.9 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006203/0.1526, allocations: 271.5 kB / 429.2 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003468/0.153, allocations: 170.9 kB / 429.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000135/0.1531, allocations: 91.72 kB / 429.4 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001728/0.1533, allocations: 99.58 kB / 429.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.349e-05/0.1533, allocations: 24 kB / 429.6 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.1534, allocations: 39.92 kB / 429.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.339e-05/0.1535, allocations: 55.83 kB / 429.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001301/0.1536, allocations: 99.47 kB / 429.7 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003809/0.154, allocations: 262.9 kB / 430 MB, free: 1.078 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.154, allocations: 3.984 kB / 430 MB, free: 1.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.154, allocations: 0 / 430 MB, free: 1.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.154, allocations: 0 / 430 MB, free: 1.074 MB / 350.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.0008754/0.1549, allocations: 0.4905 MB / 430.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.1549, allocations: 12.03 kB / 430.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003088/0.1553, allocations: 40.7 kB / 430.5 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003828/0.1556, allocations: 228 kB / 430.8 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.55e-05/0.1557, allocations: 24.94 kB / 430.8 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.977e-05/0.1557, allocations: 32.36 kB / 430.8 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3083/0.4641, allocations: 265 kB / 431.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/0.4641, allocations: 3.844 kB / 431.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.951e-05/0.4641, allocations: 9.5 kB / 431.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.4641, allocations: 9.391 kB / 431.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003905/0.4645, allocations: 165.2 kB / 431.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.4657, allocations: 0.9639 MB / 432.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002929/0.466, allocations: 157.5 kB / 432.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.4661, allocations: 66.05 kB / 432.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.4661, allocations: 4.25 kB / 432.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002183/0.4663, allocations: 140.3 kB / 432.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.234e-06/0.4663, allocations: 0 / 432.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004825/0.4668, allocations: 225.4 kB / 432.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.4668, allocations: 84.98 kB / 432.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.4669, allocations: 156 kB / 433 MB, free: 10.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.672e-05/0.467, allocations: 42.67 kB / 433.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.47e-05/0.467, allocations: 142.1 kB / 433.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.139e-05/0.4671, allocations: 61.45 kB / 433.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.4672, allocations: 77.89 kB / 433.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.682e-05/0.4673, allocations: 324.6 kB / 433.7 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.4674, allocations: 66.67 kB / 433.7 MB, free: 9.742 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/0.4675, allocations: 147.9 kB / 433.9 MB, free: 9.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002203/0.4677, allocations: 197.2 kB / 434.1 MB, free: 9.574 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.4677, allocations: 1.562 kB / 434.1 MB, free: 9.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003617/0.4681, allocations: 253.5 kB / 434.3 MB, free: 9.531 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.4681, allocations: 7.406 kB / 434.3 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.4681, allocations: 4.734 kB / 434.3 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.337e-05/0.4682, allocations: 3.281 kB / 434.3 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.4683, allocations: 34.38 kB / 434.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.4683, allocations: 12.39 kB / 434.4 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.4684, allocations: 25.56 kB / 434.4 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.988e-05/0.4684, allocations: 13.5 kB / 434.4 MB, free: 9.523 MB / 350.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.0001219/0.4686, allocations: 158.9 kB / 434.6 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.749e-05/0.4686, allocations: 18.38 kB / 434.6 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.068e-05/0.4686, allocations: 19.81 kB / 434.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.4687, allocations: 2.656 kB / 434.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4687, allocations: 3.938 kB / 434.6 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.4687, allocations: 1.938 kB / 434.6 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006771/0.4693, allocations: 0.5756 MB / 435.2 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.4693, allocations: 3.938 kB / 435.2 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.459e-05/0.4694, allocations: 18.66 kB / 435.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.4694, allocations: 2.188 kB / 435.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.4694, allocations: 6.656 kB / 435.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.4694, allocations: 2.828 kB / 435.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.4694, allocations: 5.438 kB / 435.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002845/0.4697, allocations: 277.3 kB / 435.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.13e-05/0.4698, allocations: 100.8 kB / 435.6 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.704e-05/0.4698, allocations: 7.031 kB / 435.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.656e-05/0.4699, allocations: 5.906 kB / 435.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.869e-05/0.47, allocations: 19.61 kB / 435.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.47, allocations: 18.31 kB / 435.7 MB, free: 8.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.262e-05/0.47, allocations: 94.47 kB / 435.8 MB, free: 8.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.47, allocations: 1.156 kB / 435.8 MB, free: 8.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003174/0.4703, allocations: 55.52 kB / 435.8 MB, free: 8.633 MB / 350.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 9.437e-05/0.4704, allocations: 100.2 kB / 435.9 MB, free: 8.543 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003259/0.4708, allocations: 174.2 kB / 436.1 MB, free: 8.488 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.4708, allocations: 4.125 kB / 436.1 MB, free: 8.484 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001223/0.4709, allocations: 73.56 kB / 436.2 MB, free: 8.461 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002946/0.4712, allocations: 27.12 kB / 436.2 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005866/0.4718, allocations: 340.4 kB / 436.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002482/0.472, allocations: 0.7346 MB / 437.2 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.321e-05/0.4721, allocations: 22.8 kB / 437.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.842e-05/0.4722, allocations: 23.56 kB / 437.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4722, allocations: 0 / 437.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of Templates: time 0.006756/0.4789, allocations: 1.735 MB / 439 MB, free: 7.391 MB / 350.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: 5.383106078952551]