Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001649/0.001649, allocations: 107 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.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.001896/0.001896, allocations: 214.7 kB / 24.48 MB, free: 3.941 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.07/2.07, allocations: 230.6 MB / 258.2 MB, free: 7.793 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 47.92 kB / 378.9 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3582, allocations: 53.36 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003565/0.3618, allocations: 1.702 MB / 434 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009294/0.3627, allocations: 283.2 kB / 434.3 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.3629, allocations: 7.938 kB / 434.3 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.363, allocations: 27.67 kB / 434.3 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.445e-05/0.3631, allocations: 23.78 kB / 434.3 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004785/0.3636, allocations: 119.8 kB / 434.5 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004113/0.364, allocations: 275.5 kB / 434.7 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003327/0.3643, allocations: 164.7 kB / 434.9 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.3645, allocations: 91.7 kB / 435 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001693/0.3646, allocations: 99.59 kB / 435.1 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.92e-05/0.3647, allocations: 24 kB / 435.1 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.279e-05/0.3648, allocations: 28 kB / 435.1 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.94e-05/0.3648, allocations: 59.81 kB / 435.2 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001205/0.365, allocations: 83.59 kB / 435.3 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004048/0.3654, allocations: 258.5 kB / 435.5 MB, free: 3.508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3654, allocations: 4 kB / 435.5 MB, free: 3.504 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3654, allocations: 0 / 435.5 MB, free: 3.504 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.3654, allocations: 0 / 435.5 MB, free: 3.504 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.0007936/0.3662, allocations: 425.1 kB / 435.9 MB, free: 3.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.3662, allocations: 8.031 kB / 435.9 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003294/0.3665, allocations: 40.78 kB / 436 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003518/0.3669, allocations: 170.2 kB / 436.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.093e-05/0.3669, allocations: 20.88 kB / 436.2 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.755e-05/0.367, allocations: 28.36 kB / 436.2 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005622/0.3675, allocations: 273.7 kB / 436.5 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.3676, allocations: 4.188 kB / 436.5 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.381e-05/0.3676, allocations: 15.94 kB / 436.5 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.3676, allocations: 4 kB / 436.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003798/0.368, allocations: 165.5 kB / 436.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/0.3693, allocations: 0.8279 MB / 437.5 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003655/0.3696, allocations: 161.4 kB / 437.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001612/0.3698, allocations: 69.62 kB / 437.7 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.702e-05/0.3698, allocations: 7.938 kB / 437.7 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002746/0.3701, allocations: 134.7 kB / 437.8 MB, free: 1.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.284e-06/0.3701, allocations: 0 / 437.8 MB, free: 1.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005627/0.3707, allocations: 225 kB / 438.1 MB, free: 0.793 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.06e-05/0.3708, allocations: 89.11 kB / 438.1 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001609/0.3709, allocations: 149.7 kB / 438.3 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.503e-05/0.371, allocations: 37.7 kB / 438.3 MB, free: 500 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.3711, allocations: 152.7 kB / 438.5 MB, free: 340 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.986e-05/0.3712, allocations: 55.53 kB / 438.5 MB, free: 284 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/0.3713, allocations: 85.42 kB / 438.6 MB, free: 192 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.3715, allocations: 327 kB / 438.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.3717, allocations: 63.97 kB / 439 MB, free: 15.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002303/0.3719, allocations: 144.4 kB / 439.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003452/0.3722, allocations: 196.8 kB / 439.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.3722, allocations: 8 kB / 439.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005023/0.3727, allocations: 253.3 kB / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.3728, allocations: 4 kB / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.3728, allocations: 4 kB / 439.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.173e-05/0.3728, allocations: 4 kB / 439.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001791/0.373, allocations: 31.86 kB / 439.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.373, allocations: 4.281 kB / 439.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000145/0.3731, allocations: 35.84 kB / 439.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.573e-05/0.3732, allocations: 12 kB / 439.7 MB, free: 15.05 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.0001891/0.3734, allocations: 165.6 kB / 439.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.961e-05/0.3734, allocations: 11.95 kB / 439.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.14e-05/0.3735, allocations: 24.92 kB / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.3735, allocations: 0 / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.3735, allocations: 0 / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.3735, allocations: 4 kB / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008326/0.3743, allocations: 0.489 MB / 440.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.3743, allocations: 0 / 440.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.358e-05/0.3744, allocations: 19.92 kB / 440.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.3744, allocations: 0 / 440.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.3744, allocations: 11.94 kB / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3744, allocations: 0 / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3744, allocations: 0 / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000385/0.3748, allocations: 280.1 kB / 440.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.232e-05/0.3748, allocations: 15.84 kB / 440.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.231e-05/0.3749, allocations: 8 kB / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001233/0.375, allocations: 7.984 kB / 440.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.797e-05/0.3751, allocations: 27.91 kB / 440.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.468e-05/0.3751, allocations: 8 kB / 440.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.549e-05/0.3752, allocations: 98.52 kB / 440.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3752, allocations: 0 / 440.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004119/0.3756, allocations: 51.88 kB / 440.9 MB, free: 13.77 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,transition1.enableFire,step.active,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.0001355/0.3757, allocations: 103.2 kB / 441 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003992/0.3761, allocations: 175 kB / 441.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.3761, allocations: 8.188 kB / 441.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001676/0.3763, allocations: 71.7 kB / 441.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003943/0.3767, allocations: 18.58 kB / 441.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007623/0.3775, allocations: 340.3 kB / 441.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000147/0.3776, allocations: 121.6 kB / 441.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.494e-05/0.3777, allocations: 25.92 kB / 441.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.557e-05/0.3778, allocations: 23.44 kB / 441.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3778, allocations: 0 / 441.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of Templates: time 0.006753/0.3845, allocations: 1.849 MB / 443.6 MB, free: 11.03 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.5409781789931]