Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001973/0.001973, allocations: 104.5 kB / 19.8 MB, free: 2.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002521/0.002521, allocations: 214.7 kB / 23 MB, free: 5.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.594/1.594, allocations: 230.2 MB / 256.2 MB, free: 8.555 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003246/0.003246, allocations: 63.89 kB / 376.4 MB, free: 3.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3563/0.3596, allocations: 53.32 MB / 429.8 MB, free: 7.559 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003661/0.3632, allocations: 1.694 MB / 431.5 MB, free: 5.855 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007883/0.364, allocations: 295.1 kB / 431.7 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.3641, allocations: 4 kB / 431.8 MB, free: 5.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.3643, allocations: 31.67 kB / 431.8 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.989e-05/0.3643, allocations: 15.8 kB / 431.8 MB, free: 5.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004661/0.3648, allocations: 119.8 kB / 431.9 MB, free: 5.398 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003891/0.3652, allocations: 271.5 kB / 432.2 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003364/0.3655, allocations: 162.9 kB / 432.3 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.3657, allocations: 95.69 kB / 432.4 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001598/0.3658, allocations: 99.53 kB / 432.5 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.896e-05/0.3659, allocations: 24 kB / 432.6 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.144e-05/0.3659, allocations: 27.98 kB / 432.6 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.557e-05/0.366, allocations: 55.84 kB / 432.6 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.3661, allocations: 111.4 kB / 432.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003883/0.3665, allocations: 260.1 kB / 433 MB, free: 4.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3665, allocations: 0 / 433 MB, free: 4.312 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3665, allocations: 0 / 433 MB, free: 4.312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.3665, allocations: 0 / 433 MB, free: 4.312 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.0007893/0.3673, allocations: 0.4906 MB / 433.5 MB, free: 3.766 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.3674, allocations: 8.031 kB / 433.5 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002235/0.3676, allocations: 32.78 kB / 433.5 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003601/0.368, allocations: 228.1 kB / 433.8 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.186e-05/0.368, allocations: 20.94 kB / 433.8 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.879e-05/0.3681, allocations: 32.31 kB / 433.8 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004831/0.3685, allocations: 270.6 kB / 434.1 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.3685, allocations: 4.125 kB / 434.1 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.572e-05/0.3686, allocations: 15.94 kB / 434.1 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.3686, allocations: 8 kB / 434.1 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003099/0.3689, allocations: 161.6 kB / 434.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001298/0.3702, allocations: 0.9635 MB / 435.2 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003005/0.3705, allocations: 160.2 kB / 435.4 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001294/0.3706, allocations: 81.56 kB / 435.5 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.3707, allocations: 0 / 435.5 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002171/0.3709, allocations: 133 kB / 435.6 MB, free: 1.512 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.392e-06/0.3709, allocations: 0 / 435.6 MB, free: 1.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004537/0.3713, allocations: 224.6 kB / 435.8 MB, free: 1.289 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.84e-05/0.3714, allocations: 89.09 kB / 435.9 MB, free: 1.184 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.3715, allocations: 153.7 kB / 436 MB, free: 1.023 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.965e-05/0.3716, allocations: 41.69 kB / 436.1 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.3717, allocations: 140.8 kB / 436.2 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.623e-05/0.3718, allocations: 59.48 kB / 436.3 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.3719, allocations: 81.67 kB / 436.4 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.3721, allocations: 330.8 kB / 436.7 MB, free: 368 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.3722, allocations: 67.88 kB / 436.7 MB, free: 300 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.3724, allocations: 140.5 kB / 436.9 MB, free: 128 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003049/0.3727, allocations: 196.4 kB / 437.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3727, allocations: 0 / 437.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004186/0.3731, allocations: 257.3 kB / 437.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.3731, allocations: 4 kB / 437.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3731, allocations: 4 kB / 437.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.218e-05/0.3732, allocations: 7.938 kB / 437.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.3733, allocations: 27.92 kB / 437.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.3733, allocations: 7.984 kB / 437.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.3734, allocations: 36.06 kB / 437.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.006e-05/0.3734, allocations: 12 kB / 437.4 MB, free: 15.54 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.0001907/0.3736, allocations: 157.7 kB / 437.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.441e-05/0.3737, allocations: 15.91 kB / 437.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.571e-05/0.3737, allocations: 20.84 kB / 437.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.3737, allocations: 0 / 437.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.3737, allocations: 7.938 kB / 437.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.3737, allocations: 3.984 kB / 437.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008126/0.3746, allocations: 0.579 MB / 438.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3746, allocations: 3.938 kB / 438.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.354e-05/0.3746, allocations: 15.94 kB / 438.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.3746, allocations: 0 / 438.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.3746, allocations: 7.984 kB / 438.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.224e-06/0.3747, allocations: 7.938 kB / 438.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3747, allocations: 0 / 438.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003458/0.375, allocations: 277.3 kB / 438.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.373e-05/0.3751, allocations: 96.94 kB / 438.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.621e-05/0.3751, allocations: 4 kB / 438.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.823e-05/0.3752, allocations: 11.94 kB / 438.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.287e-05/0.3753, allocations: 19.97 kB / 438.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.3753, allocations: 4 kB / 438.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.159e-05/0.3754, allocations: 99.27 kB / 438.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3754, allocations: 0 / 438.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003071/0.3757, allocations: 55.89 kB / 438.8 MB, free: 14.06 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.0001681/0.3758, allocations: 111.2 kB / 438.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003502/0.3762, allocations: 169.3 kB / 439.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.3762, allocations: 0 / 439.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001286/0.3763, allocations: 71.78 kB / 439.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.3766, allocations: 31.7 kB / 439.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007284/0.3774, allocations: 352.5 kB / 439.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004566/0.3778, allocations: 0.7326 MB / 440.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.448e-05/0.3779, allocations: 25.94 kB / 440.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.105e-05/0.378, allocations: 19.44 kB / 440.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of SimCode: time 6.52e-07/0.378, allocations: 0 / 440.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of Templates: time 0.00543/0.3834, allocations: 1.774 MB / 442.1 MB, free: 10.74 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.093573893420398]