Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 184.9 kB / 24.45 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 47.92 kB / 371.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2643, allocations: 52.17 MB / 423.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002976/0.2673, allocations: 1.651 MB / 425.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008071/0.2681, allocations: 291.2 kB / 425.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.2682, allocations: 4 kB / 425.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.2683, allocations: 31.67 kB / 425.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5e-05/0.2684, allocations: 11.81 kB / 425.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004397/0.2688, allocations: 131.8 kB / 425.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000383/0.2692, allocations: 279.5 kB / 426.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003158/0.2695, allocations: 147.2 kB / 426.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001321/0.2697, allocations: 95.7 kB / 426.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.2698, allocations: 87.53 kB / 426.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.726e-05/0.2699, allocations: 24 kB / 426.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.997e-05/0.27, allocations: 35.98 kB / 426.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.756e-05/0.27, allocations: 59.81 kB / 426.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001134/0.2702, allocations: 83.59 kB / 426.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003491/0.2705, allocations: 257.9 kB / 426.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2705, allocations: 3.938 kB / 427 MB, free: 11.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.2705, allocations: 0 / 427 MB, free: 11.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.2705, allocations: 4 kB / 427 MB, free: 11.29 MB / 334.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.0007161/0.2712, allocations: 425.2 kB / 427.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.2713, allocations: 12.02 kB / 427.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.045e-05/0.2713, allocations: 24.8 kB / 427.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004048/0.2718, allocations: 178.2 kB / 427.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.416e-05/0.2718, allocations: 28.81 kB / 427.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.322e-05/0.2718, allocations: 24.38 kB / 427.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005799/0.2724, allocations: 277.7 kB / 427.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.2724, allocations: 192 / 427.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.115e-05/0.2725, allocations: 11.94 kB / 427.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.2725, allocations: 4 kB / 427.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003657/0.2729, allocations: 173.6 kB / 428.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.274, allocations: 0.8357 MB / 428.9 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003315/0.2744, allocations: 162.9 kB / 429.1 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001395/0.2745, allocations: 73.62 kB / 429.2 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.2745, allocations: 7.938 kB / 429.2 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002596/0.2748, allocations: 136.5 kB / 429.3 MB, free: 8.781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.2748, allocations: 0 / 429.3 MB, free: 8.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005927/0.2754, allocations: 233.4 kB / 429.5 MB, free: 8.547 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.653e-05/0.2755, allocations: 81.11 kB / 429.6 MB, free: 8.449 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.2757, allocations: 157.7 kB / 429.8 MB, free: 8.285 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.714e-05/0.2757, allocations: 33.7 kB / 429.8 MB, free: 8.246 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.2758, allocations: 144.7 kB / 429.9 MB, free: 8.098 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.716e-05/0.2759, allocations: 63.58 kB / 430 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.2761, allocations: 85.62 kB / 430.1 MB, free: 7.945 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.2762, allocations: 326.8 kB / 430.4 MB, free: 7.617 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.2763, allocations: 59.97 kB / 430.5 MB, free: 7.559 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/0.2765, allocations: 144.5 kB / 430.6 MB, free: 7.387 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002909/0.2768, allocations: 200.2 kB / 430.8 MB, free: 7.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-06/0.2768, allocations: 7.938 kB / 430.8 MB, free: 7.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004149/0.2772, allocations: 253.9 kB / 431 MB, free: 6.898 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.2773, allocations: 4 kB / 431.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.2773, allocations: 4 kB / 431.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.2773, allocations: 4 kB / 431.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.2775, allocations: 43.84 kB / 431.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.2775, allocations: 4 kB / 431.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.2776, allocations: 27.78 kB / 431.1 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.926e-05/0.2776, allocations: 12 kB / 431.1 MB, free: 6.801 MB / 334.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.0001788/0.2778, allocations: 170 kB / 431.3 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.616e-05/0.2778, allocations: 11.95 kB / 431.3 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003645/0.2782, allocations: 190.4 kB / 431.5 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.2782, allocations: 4 kB / 431.5 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.2782, allocations: 7.922 kB / 431.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2782, allocations: 0 / 431.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000755/0.2789, allocations: 0.5085 MB / 432 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.2789, allocations: 0 / 432 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.388e-05/0.279, allocations: 15.98 kB / 432 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.279, allocations: 0 / 432 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.279, allocations: 15.98 kB / 432.1 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.279, allocations: 0 / 432.1 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.279, allocations: 7.875 kB / 432.1 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003568/0.2794, allocations: 292.6 kB / 432.4 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.309e-05/0.2794, allocations: 15.84 kB / 432.4 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.292e-05/0.2795, allocations: 15.98 kB / 432.4 MB, free: 5.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.32e-05/0.2796, allocations: 8 kB / 432.4 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.022e-05/0.2796, allocations: 19.91 kB / 432.4 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.899e-05/0.2796, allocations: 11.98 kB / 432.4 MB, free: 5.441 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.418e-05/0.2797, allocations: 95.27 kB / 432.5 MB, free: 5.348 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2797, allocations: 4 kB / 432.5 MB, free: 5.344 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003215/0.2801, allocations: 51.89 kB / 432.6 MB, free: 5.293 MB / 334.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: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * 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.0001587/0.2802, allocations: 114.9 kB / 432.7 MB, free: 5.172 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003368/0.2806, allocations: 167.8 kB / 432.8 MB, free: 5.008 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2806, allocations: 0 / 432.8 MB, free: 5.008 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.2807, allocations: 75.84 kB / 432.9 MB, free: 4.934 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.281, allocations: 31.64 kB / 433 MB, free: 4.906 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006586/0.2817, allocations: 389.8 kB / 433.3 MB, free: 4.492 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001321/0.2818, allocations: 125.3 kB / 433.5 MB, free: 4.352 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.59e-05/0.2819, allocations: 23.42 kB / 433.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2819, allocations: 8 kB / 433.5 MB, free: 4.32 MB / 334.1 MB Notification: Performance of Templates: time 0.005013/0.2869, allocations: 2.489 MB / 436 MB, free: 1.832 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 7.085599518381059]