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.001036/0.001036, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001175/0.001175, allocations: 160.9 kB / 24.91 MB, free: 8.719 MB / 18.57 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.023/1.023, allocations: 177 MB / 205.2 MB, free: 5.02 MB / 186.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_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 1.583e-06/1.583e-06, allocations: 0 / 273.4 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.559e-05/2.717e-05, allocations: 2.312 kB / 273.4 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003488/0.003515, allocations: 1.75 MB / 275.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007846/0.0043, allocations: 306.9 kB / 275.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.004433, allocations: 7.938 kB / 275.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001499/0.004582, allocations: 23.73 kB / 275.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.045e-05/0.004643, allocations: 23.73 kB / 275.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004599/0.005103, allocations: 119.8 kB / 275.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003598/0.005463, allocations: 283.4 kB / 275.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002975/0.00576, allocations: 162.3 kB / 276 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001532/0.005913, allocations: 135.8 kB / 276.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001479/0.006061, allocations: 75.75 kB / 276.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.565e-05/0.006107, allocations: 24 kB / 276.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.946e-05/0.006186, allocations: 31.88 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.88e-05/0.006255, allocations: 63.8 kB / 276.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.843e-05/0.006334, allocations: 67.81 kB / 276.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002807/0.006614, allocations: 179.3 kB / 276.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.00662, allocations: 4 kB / 276.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.006621, allocations: 0 / 276.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.006627, allocations: 0 / 276.6 MB, free: 13.8 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.0005877/0.007215, allocations: 403.7 kB / 277 MB, free: 13.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.007256, allocations: 11.98 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002433/0.0075, allocations: 48.89 kB / 277.1 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002308/0.00773, allocations: 153.4 kB / 277.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.007759, allocations: 20.88 kB / 277.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.464e-05/0.007783, allocations: 32.36 kB / 277.3 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002154/0.007999, allocations: 230.5 kB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.008018, allocations: 192 / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.008035, allocations: 12.38 kB / 277.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.008045, allocations: 12.36 kB / 277.5 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.372e-05/0.008128, allocations: 67.34 kB / 277.6 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000603/0.008731, allocations: 0.7193 MB / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001393/0.008871, allocations: 121.1 kB / 278.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.022e-05/0.008911, allocations: 41.7 kB / 278.5 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.45e-05/0.008925, allocations: 8 kB / 278.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001141/0.009039, allocations: 117 kB / 278.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.342e-06/0.009041, allocations: 0 / 278.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0001782/0.009219, allocations: 142.8 kB / 278.7 MB, free: 11.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/0.009258, allocations: 88.98 kB / 278.8 MB, free: 11.44 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.884e-05/0.009337, allocations: 158.5 kB / 279 MB, free: 11.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.009357, allocations: 41.69 kB / 279 MB, free: 11.22 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.28e-05/0.00942, allocations: 136.7 kB / 279.1 MB, free: 11.08 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.313e-05/0.009453, allocations: 63.5 kB / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.493e-05/0.009518, allocations: 81.75 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.641e-05/0.009594, allocations: 334.8 kB / 279.6 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.287e-05/0.009627, allocations: 31.77 kB / 279.6 MB, free: 10.57 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.609e-05/0.009693, allocations: 100.5 kB / 279.7 MB, free: 10.44 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000116/0.009809, allocations: 160.4 kB / 279.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.009812, allocations: 0 / 279.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001734/0.009985, allocations: 173.3 kB / 280.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.01, allocations: 7.938 kB / 280.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.01001, allocations: 4 kB / 280.1 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.01002, allocations: 4 kB / 280.1 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.01014, allocations: 40.2 kB / 280.1 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.01014, allocations: 11.94 kB / 280.1 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.687e-05/0.0102, allocations: 27.83 kB / 280.2 MB, free: 9.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.01021, allocations: 8 kB / 280.2 MB, free: 9.973 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.677e-05/0.0103, allocations: 145.7 kB / 280.3 MB, free: 9.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.841e-05/0.01032, allocations: 15.98 kB / 280.3 MB, free: 9.805 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.223e-05/0.01035, allocations: 20.88 kB / 280.3 MB, free: 9.785 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.01035, allocations: 4 kB / 280.3 MB, free: 9.781 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.01035, allocations: 0 / 280.3 MB, free: 9.781 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.01036, allocations: 3.984 kB / 280.3 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003193/0.01068, allocations: 370.9 kB / 280.7 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.01068, allocations: 4 kB / 280.7 MB, free: 9.383 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.608e-05/0.01073, allocations: 19.92 kB / 280.7 MB, free: 9.363 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.01073, allocations: 0 / 280.7 MB, free: 9.363 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.01074, allocations: 8 kB / 280.7 MB, free: 9.355 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.01074, allocations: 0 / 280.7 MB, free: 9.355 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01074, allocations: 0 / 280.7 MB, free: 9.355 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001245/0.01087, allocations: 216.2 kB / 281 MB, free: 9.125 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.164e-05/0.01089, allocations: 19.89 kB / 281 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.0109, allocations: 4 kB / 281 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.284e-05/0.01094, allocations: 15.94 kB / 281 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.737e-05/0.01099, allocations: 27.89 kB / 281 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.011, allocations: 4 kB / 281 MB, free: 9.055 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.994e-05/0.01102, allocations: 27.59 kB / 281.1 MB, free: 9.027 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01102, allocations: 0 / 281.1 MB, free: 9.027 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000168/0.01119, allocations: 51.89 kB / 281.1 MB, free: 8.977 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 9.24e-05/0.01128, allocations: 80.42 kB / 281.2 MB, free: 8.891 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.01142, allocations: 129.9 kB / 281.3 MB, free: 8.762 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.01142, allocations: 4 kB / 281.3 MB, free: 8.758 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.457e-05/0.01148, allocations: 56.75 kB / 281.4 MB, free: 8.699 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00016/0.01164, allocations: 27.92 kB / 281.4 MB, free: 8.672 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005034/0.01214, allocations: 325.9 kB / 281.7 MB, free: 8.328 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.333e-05/0.01219, allocations: 80.33 kB / 281.8 MB, free: 8.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.221e-05/0.01224, allocations: 26.19 kB / 281.8 MB, free: 8.203 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.895e-05/0.01232, allocations: 87.3 kB / 281.9 MB, free: 8.117 MB / 266.7 MB Notification: Performance of SimCode: time 1.031e-06/0.01232, allocations: 0 / 281.9 MB, free: 8.117 MB / 266.7 MB Notification: Performance of Templates: time 0.003517/0.01583, allocations: 1.887 MB / 283.8 MB, free: 6.262 MB / 266.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] 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","",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.4947584671899676]