Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001111/0.001111, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001794/0.002905, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001066/0.001066, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00152/0.002586, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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 0.9783/0.9783, allocations: 177.5 MB / 190.1 MB, free: 4.777 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08933/1.068, allocations: 53.87 MB / 243.9 MB, free: 14.84 MB / 250.7 MB " [Timeout remaining time 179] 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.138e-05/1.265e-05, allocations: 2.312 kB / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002461/0.002474, allocations: 1.779 MB / 247 MB, free: 11.78 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005448/0.003019, allocations: 315 kB / 247.3 MB, free: 11.47 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.372e-05/0.003102, allocations: 7.938 kB / 247.3 MB, free: 11.46 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.974e-05/0.003192, allocations: 23.69 kB / 247.3 MB, free: 11.44 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.186e-05/0.003244, allocations: 23.78 kB / 247.3 MB, free: 11.41 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000297/0.003541, allocations: 119.7 kB / 247.5 MB, free: 11.3 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002984/0.003839, allocations: 279.5 kB / 247.7 MB, free: 11.02 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002306/0.00407, allocations: 160 kB / 247.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001409/0.004211, allocations: 135.7 kB / 248 MB, free: 10.74 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.004329, allocations: 71.77 kB / 248.1 MB, free: 10.67 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.033e-05/0.004359, allocations: 24 kB / 248.1 MB, free: 10.64 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.625e-05/0.004425, allocations: 28 kB / 248.1 MB, free: 10.62 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.724e-05/0.004482, allocations: 43.86 kB / 248.2 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.348e-05/0.004546, allocations: 51.88 kB / 248.2 MB, free: 10.52 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002415/0.004787, allocations: 175.2 kB / 248.4 MB, free: 10.35 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.07e-05/0.004798, allocations: 0 / 248.4 MB, free: 10.35 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.004799, allocations: 0 / 248.4 MB, free: 10.35 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.004808, allocations: 4 kB / 248.4 MB, free: 10.35 MB / 250.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.0005641/0.005372, allocations: 435.5 kB / 248.8 MB, free: 9.891 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.094e-05/0.005403, allocations: 8.031 kB / 248.8 MB, free: 9.883 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002389/0.005642, allocations: 130 kB / 249 MB, free: 9.738 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.005826, allocations: 149.5 kB / 249.1 MB, free: 9.566 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.117e-05/0.005857, allocations: 24.86 kB / 249.1 MB, free: 9.539 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.08e-05/0.005898, allocations: 28.38 kB / 249.2 MB, free: 9.512 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002498/0.006148, allocations: 222.5 kB / 249.4 MB, free: 9.273 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.006159, allocations: 4.172 kB / 249.4 MB, free: 9.27 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.771e-05/0.006177, allocations: 16.38 kB / 249.4 MB, free: 9.254 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.006187, allocations: 8.375 kB / 249.4 MB, free: 9.246 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.006295, allocations: 67.34 kB / 249.5 MB, free: 9.18 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007045/0.006999, allocations: 0.727 MB / 250.2 MB, free: 8.422 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001636/0.007163, allocations: 121 kB / 250.3 MB, free: 8.285 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.054e-05/0.007213, allocations: 41.7 kB / 250.4 MB, free: 8.238 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.007229, allocations: 4 kB / 250.4 MB, free: 8.234 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001365/0.007366, allocations: 124.8 kB / 250.5 MB, free: 8.094 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.382e-06/0.007367, allocations: 0 / 250.5 MB, free: 8.094 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003181/0.007685, allocations: 138.6 kB / 250.6 MB, free: 7.953 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.007733, allocations: 89.09 kB / 250.7 MB, free: 7.848 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.499e-05/0.007828, allocations: 158.5 kB / 250.9 MB, free: 7.68 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.551e-05/0.007854, allocations: 33.7 kB / 250.9 MB, free: 7.641 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.299e-05/0.007927, allocations: 140.8 kB / 251 MB, free: 7.5 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.01e-05/0.007977, allocations: 71.44 kB / 251.1 MB, free: 7.43 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.681e-05/0.008063, allocations: 81.41 kB / 251.2 MB, free: 7.344 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.01e-05/0.008154, allocations: 334.8 kB / 251.5 MB, free: 7.008 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.162e-05/0.008195, allocations: 24.11 kB / 251.5 MB, free: 6.984 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.842e-05/0.008264, allocations: 108.5 kB / 251.6 MB, free: 6.848 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001101/0.008374, allocations: 156.3 kB / 251.8 MB, free: 6.664 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.008376, allocations: 0 / 251.8 MB, free: 6.664 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001422/0.008519, allocations: 169.4 kB / 252 MB, free: 6.492 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.008533, allocations: 11.94 kB / 252 MB, free: 6.48 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.008538, allocations: 0 / 252 MB, free: 6.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.008549, allocations: 4 kB / 252 MB, free: 6.477 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.008662, allocations: 47.84 kB / 252 MB, free: 6.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.008667, allocations: 4 kB / 252 MB, free: 6.426 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.438e-05/0.008721, allocations: 28.12 kB / 252 MB, free: 6.398 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.008732, allocations: 12 kB / 252.1 MB, free: 6.387 MB / 250.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 7.561e-05/0.008807, allocations: 145.7 kB / 252.2 MB, free: 6.234 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.52e-05/0.008823, allocations: 11.98 kB / 252.2 MB, free: 6.223 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.422e-05/0.008857, allocations: 32.84 kB / 252.2 MB, free: 6.191 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.008859, allocations: 4 kB / 252.2 MB, free: 6.188 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-06/0.008862, allocations: 0 / 252.2 MB, free: 6.188 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.008865, allocations: 3.938 kB / 252.3 MB, free: 6.184 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003015/0.009167, allocations: 362.1 kB / 252.6 MB, free: 5.801 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.00917, allocations: 11.98 kB / 252.6 MB, free: 5.789 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.398e-05/0.009214, allocations: 15.94 kB / 252.6 MB, free: 5.773 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.068e-05/0.009224, allocations: 11.91 kB / 252.6 MB, free: 5.762 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.009227, allocations: 4 kB / 252.6 MB, free: 5.758 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.009235, allocations: 7.984 kB / 252.7 MB, free: 5.75 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.009237, allocations: 4 kB / 252.7 MB, free: 5.746 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.009238, allocations: 0 / 252.7 MB, free: 5.746 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001239/0.009362, allocations: 217.1 kB / 252.9 MB, free: 5.516 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.481e-05/0.009376, allocations: 0 / 252.9 MB, free: 5.516 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.238e-05/0.009419, allocations: 11.98 kB / 252.9 MB, free: 5.504 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.709e-05/0.009466, allocations: 23.97 kB / 252.9 MB, free: 5.48 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.783e-06/0.009473, allocations: 8 kB / 252.9 MB, free: 5.473 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.739e-05/0.00949, allocations: 20.83 kB / 252.9 MB, free: 5.449 MB / 250.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.00949, allocations: 0 / 252.9 MB, free: 5.449 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001712/0.009662, allocations: 55.83 kB / 253 MB, free: 5.395 MB / 250.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,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 7.708e-05/0.009739, allocations: 84.34 kB / 253.1 MB, free: 5.305 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001508/0.009889, allocations: 133.2 kB / 253.2 MB, free: 5.172 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/0.009898, allocations: 7.938 kB / 253.2 MB, free: 5.164 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.439e-05/0.009963, allocations: 64.95 kB / 253.3 MB, free: 5.098 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002044/0.01017, allocations: 202.1 kB / 253.5 MB, free: 4.863 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004476/0.01061, allocations: 318.2 kB / 253.8 MB, free: 4.523 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.375e-05/0.01066, allocations: 88.2 kB / 253.9 MB, free: 4.418 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.204e-05/0.01071, allocations: 26.03 kB / 253.9 MB, free: 4.387 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.995e-05/0.01079, allocations: 79.38 kB / 254 MB, free: 4.309 MB / 250.7 MB Notification: Performance of SimCode: time 7.62e-07/0.01079, allocations: 0 / 254 MB, free: 4.309 MB / 250.7 MB Notification: Performance of Templates: time 0.003395/0.01419, allocations: 1.869 MB / 255.8 MB, free: 2.469 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.470748177729547]