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.001692/0.001692, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001986/0.001986, allocations: 207.4 kB / 24.48 MB, free: 3.977 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 2.292/2.292, allocations: 230.6 MB / 258.3 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 177] 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.002044/0.002044, allocations: 59.89 kB / 378.9 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3307, allocations: 53.36 MB / 432.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004038/0.3348, allocations: 1.648 MB / 434 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000979/0.3357, allocations: 291.1 kB / 434.2 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001875/0.3359, allocations: 4 kB / 434.2 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001971/0.3361, allocations: 35.67 kB / 434.3 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.286e-05/0.3362, allocations: 15.8 kB / 434.3 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005774/0.3368, allocations: 127.8 kB / 434.4 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004982/0.3373, allocations: 283.4 kB / 434.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004171/0.3377, allocations: 163.2 kB / 434.9 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001626/0.3379, allocations: 95.69 kB / 434.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001899/0.3381, allocations: 99.61 kB / 435 MB, free: 4 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.355e-05/0.3381, allocations: 31.92 kB / 435.1 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.807e-05/0.3382, allocations: 28 kB / 435.1 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.537e-05/0.3383, allocations: 51.89 kB / 435.2 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001345/0.3384, allocations: 91.52 kB / 435.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004354/0.3389, allocations: 257.9 kB / 435.5 MB, free: 3.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.3389, allocations: 0 / 435.5 MB, free: 3.551 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3389, allocations: 0 / 435.5 MB, free: 3.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.3389, allocations: 0 / 435.5 MB, free: 3.551 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.0008863/0.3398, allocations: 429.1 kB / 435.9 MB, free: 3.098 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.3398, allocations: 8.031 kB / 435.9 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003553/0.3402, allocations: 36.78 kB / 436 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004084/0.3406, allocations: 170.3 kB / 436.1 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.836e-05/0.3406, allocations: 24.86 kB / 436.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.355e-05/0.3407, allocations: 32.31 kB / 436.2 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006133/0.3413, allocations: 269.8 kB / 436.4 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.3413, allocations: 192 / 436.4 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.603e-05/0.3414, allocations: 15.94 kB / 436.5 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.873e-05/0.3414, allocations: 7.984 kB / 436.5 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004498/0.3418, allocations: 161.6 kB / 436.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001491/0.3433, allocations: 0.8318 MB / 437.5 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003843/0.3437, allocations: 161.2 kB / 437.6 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.3439, allocations: 77.66 kB / 437.7 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.3439, allocations: 0 / 437.7 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003114/0.3442, allocations: 137 kB / 437.8 MB, free: 1.055 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.335e-06/0.3442, allocations: 4 kB / 437.8 MB, free: 1.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006599/0.3449, allocations: 226.6 kB / 438 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.345, allocations: 89.08 kB / 438.1 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000214/0.3452, allocations: 168.7 kB / 438.3 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.552e-05/0.3452, allocations: 37.7 kB / 438.3 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001824/0.3454, allocations: 136.8 kB / 438.5 MB, free: 376 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.939e-05/0.3455, allocations: 63.53 kB / 438.5 MB, free: 312 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.3457, allocations: 73.69 kB / 438.6 MB, free: 232 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002354/0.3459, allocations: 326.8 kB / 438.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001888/0.3461, allocations: 71.69 kB / 439 MB, free: 15.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002573/0.3463, allocations: 136.5 kB / 439.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003918/0.3467, allocations: 196.8 kB / 439.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.3467, allocations: 0 / 439.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005761/0.3473, allocations: 257.6 kB / 439.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.3473, allocations: 8 kB / 439.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.3473, allocations: 7.938 kB / 439.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.983e-05/0.3474, allocations: 7.984 kB / 439.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002017/0.3476, allocations: 27.92 kB / 439.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/0.3476, allocations: 4 kB / 439.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001618/0.3478, allocations: 31.78 kB / 439.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.66e-05/0.3478, allocations: 12 kB / 439.7 MB, free: 15.09 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.0002376/0.348, allocations: 161.7 kB / 439.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.827e-05/0.3481, allocations: 19.94 kB / 439.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.79e-05/0.3481, allocations: 16.94 kB / 439.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.3481, allocations: 4 kB / 439.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-06/0.3481, allocations: 0 / 439.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.3481, allocations: 7.984 kB / 439.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008925/0.349, allocations: 496.7 kB / 440.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.349, allocations: 0 / 440.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.3491, allocations: 19.92 kB / 440.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.3491, allocations: 0 / 440.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.302e-05/0.3492, allocations: 8 kB / 440.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.3492, allocations: 0 / 440.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3492, allocations: 7.938 kB / 440.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004794/0.3497, allocations: 280 kB / 440.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.173e-05/0.3497, allocations: 23.78 kB / 440.7 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.678e-05/0.3497, allocations: 8 kB / 440.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.3499, allocations: 11.98 kB / 440.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.672e-05/0.3499, allocations: 19.91 kB / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.35, allocations: 8 kB / 440.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.72e-05/0.35, allocations: 95.27 kB / 440.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.35, allocations: 0 / 440.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004394/0.3505, allocations: 55.84 kB / 440.9 MB, free: 13.79 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 0.000149/0.3506, allocations: 115.2 kB / 441 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004383/0.3511, allocations: 171.8 kB / 441.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3511, allocations: 0 / 441.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001667/0.3512, allocations: 70.62 kB / 441.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004006/0.3516, allocations: 27.97 kB / 441.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008922/0.3525, allocations: 337 kB / 441.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001685/0.3527, allocations: 129.5 kB / 441.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.3528, allocations: 25.94 kB / 441.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.935e-05/0.3529, allocations: 19.44 kB / 441.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3529, allocations: 0 / 441.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of Templates: time 0.007142/0.36, allocations: 1.874 MB / 443.6 MB, free: 11.02 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/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: 6.59550159999344]