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.000946/0.000946, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.001003/0.001003, allocations: 169.9 kB / 24.91 MB, free: 8.723 MB / 18.57 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 0.9582/0.9582, allocations: 177.1 MB / 205.3 MB, free: 5.113 MB / 186.7 MB " [Timeout remaining time 179] 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 1.212e-06/1.212e-06, allocations: 0 / 273.5 MB, free: 1.164 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.488e-05/1.609e-05, allocations: 6.312 kB / 273.5 MB, free: 1.156 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004606/0.004622, allocations: 1.75 MB / 275.2 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000587/0.005209, allocations: 302.9 kB / 275.5 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.695e-05/0.005296, allocations: 4 kB / 275.5 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.005418, allocations: 27.67 kB / 275.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.865e-05/0.005467, allocations: 15.81 kB / 275.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003627/0.005829, allocations: 131.7 kB / 275.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002687/0.006098, allocations: 279.4 kB / 276 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002261/0.006324, allocations: 158.3 kB / 276.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004154/0.01048, allocations: 135.7 kB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000137/0.01062, allocations: 71.77 kB / 276.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.202e-05/0.01065, allocations: 24 kB / 276.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.37e-05/0.01072, allocations: 35.92 kB / 276.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.713e-05/0.01078, allocations: 55.81 kB / 276.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.827e-05/0.01085, allocations: 75.81 kB / 276.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002408/0.01109, allocations: 191.3 kB / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.01109, allocations: 0 / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.01109, allocations: 0 / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.01109, allocations: 0 / 276.7 MB, free: 13.91 MB / 266.7 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.0004368/0.01153, allocations: 399.7 kB / 277.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.847e-05/0.01156, allocations: 8.031 kB / 277.1 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002018/0.01176, allocations: 48.89 kB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001796/0.01194, allocations: 161.4 kB / 277.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.01197, allocations: 24.88 kB / 277.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.71e-05/0.012, allocations: 28.38 kB / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002364/0.01223, allocations: 218.6 kB / 277.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.01224, allocations: 4.188 kB / 277.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.01226, allocations: 4.375 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.01227, allocations: 8.375 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000107/0.01237, allocations: 75.28 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006585/0.01303, allocations: 0.7193 MB / 278.4 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001477/0.01318, allocations: 117.1 kB / 278.5 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.809e-05/0.01323, allocations: 49.69 kB / 278.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.445e-05/0.01324, allocations: 8 kB / 278.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00214/0.01538, allocations: 120.9 kB / 278.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.282e-06/0.01538, allocations: 0 / 278.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0001584/0.01554, allocations: 136 kB / 278.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.01558, allocations: 85.09 kB / 278.9 MB, free: 11.56 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.98e-05/0.01565, allocations: 150.5 kB / 279 MB, free: 11.4 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.01567, allocations: 41.69 kB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.711e-05/0.01573, allocations: 144.7 kB / 279.2 MB, free: 11.21 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.984e-05/0.01575, allocations: 67.56 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.974e-05/0.01581, allocations: 81.62 kB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.32e-05/0.01589, allocations: 326.8 kB / 279.7 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.973e-05/0.01592, allocations: 31.77 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.4e-05/0.01598, allocations: 108.5 kB / 279.8 MB, free: 10.56 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001112/0.01609, allocations: 156.4 kB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.01609, allocations: 0 / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001493/0.01624, allocations: 173.3 kB / 280.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.01626, allocations: 7.938 kB / 280.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.01626, allocations: 4 kB / 280.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.01627, allocations: 8.281 kB / 280.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.01638, allocations: 39.92 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.01638, allocations: 4 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.55e-05/0.01644, allocations: 31.83 kB / 280.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/0.01645, allocations: 12 kB / 280.2 MB, free: 10.09 MB / 266.7 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,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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 8.142e-05/0.01653, allocations: 141.7 kB / 280.4 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.698e-05/0.01655, allocations: 15.98 kB / 280.4 MB, free: 9.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.557e-05/0.01658, allocations: 20.88 kB / 280.4 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.01658, allocations: 4 kB / 280.4 MB, free: 9.906 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.01658, allocations: 7.938 kB / 280.4 MB, free: 9.898 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.01659, allocations: 3.984 kB / 280.4 MB, free: 9.895 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000352/0.01694, allocations: 372.1 kB / 280.8 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.01694, allocations: 0 / 280.8 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.921e-05/0.01699, allocations: 19.98 kB / 280.8 MB, free: 9.484 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.01699, allocations: 4 kB / 280.8 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.017, allocations: 0 / 280.8 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.017, allocations: 0 / 280.8 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.017, allocations: 4 kB / 280.8 MB, free: 9.477 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001347/0.01714, allocations: 220.1 kB / 281 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.302e-05/0.01715, allocations: 15.91 kB / 281 MB, free: 9.227 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.01717, allocations: 8 kB / 281.1 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.845e-05/0.01722, allocations: 4 kB / 281.1 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.387e-05/0.01726, allocations: 23.95 kB / 281.1 MB, free: 9.191 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.748e-06/0.01727, allocations: 4 kB / 281.1 MB, free: 9.188 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.861e-05/0.0173, allocations: 31.44 kB / 281.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0173, allocations: 0 / 281.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001884/0.01749, allocations: 51.83 kB / 281.2 MB, free: 9.105 MB / 266.7 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 6.834e-05/0.01756, allocations: 84.36 kB / 281.2 MB, free: 9.016 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001468/0.0177, allocations: 129.6 kB / 281.4 MB, free: 8.887 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.0177, allocations: 0 / 281.4 MB, free: 8.887 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.496e-05/0.01777, allocations: 67.14 kB / 281.4 MB, free: 8.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001544/0.01792, allocations: 27.92 kB / 281.5 MB, free: 8.793 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004085/0.01833, allocations: 329.9 kB / 281.8 MB, free: 8.445 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.401e-05/0.01838, allocations: 76.33 kB / 281.9 MB, free: 8.352 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.513e-05/0.01843, allocations: 22.58 kB / 281.9 MB, free: 8.328 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.19e-05/0.01851, allocations: 79.36 kB / 282 MB, free: 8.25 MB / 266.7 MB Notification: Performance of SimCode: time 4.11e-07/0.01851, allocations: 0 / 282 MB, free: 8.25 MB / 266.7 MB Notification: Performance of Templates: time 0.004179/0.02269, allocations: 1.913 MB / 283.9 MB, free: 6.375 MB / 266.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.634993474930525]