Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009575/0.0009575, allocations: 85.05 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009923/0.0009923, allocations: 145 kB / 24.89 MB, free: 8.691 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9809/0.9809, allocations: 173.3 MB / 201.5 MB, free: 9.215 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 268.5 MB, free: 6.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.174e-05/2.31e-05, allocations: 2.312 kB / 268.5 MB, free: 6.199 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.007343/0.007366, allocations: 1.543 MB / 270 MB, free: 4.645 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005701/0.007936, allocations: 295 kB / 270.3 MB, free: 4.355 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.266e-05/0.008009, allocations: 7.938 kB / 270.3 MB, free: 4.348 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001147/0.008123, allocations: 23.73 kB / 270.3 MB, free: 4.324 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.74e-05/0.008171, allocations: 15.8 kB / 270.4 MB, free: 4.309 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003477/0.008518, allocations: 123.7 kB / 270.5 MB, free: 4.188 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002636/0.008782, allocations: 271.4 kB / 270.7 MB, free: 3.922 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002121/0.008994, allocations: 138.4 kB / 270.9 MB, free: 3.785 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.009107, allocations: 123.8 kB / 271 MB, free: 3.664 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003124/0.01223, allocations: 71.77 kB / 271.1 MB, free: 3.594 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.389e-05/0.01227, allocations: 24 kB / 271.1 MB, free: 3.57 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.957e-05/0.01235, allocations: 31.98 kB / 271.1 MB, free: 3.539 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.302e-05/0.01241, allocations: 55.81 kB / 271.2 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.825e-05/0.01247, allocations: 63.83 kB / 271.2 MB, free: 3.422 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002209/0.01269, allocations: 187.3 kB / 271.4 MB, free: 3.238 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.01269, allocations: 3.938 kB / 271.4 MB, free: 3.234 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.01269, allocations: 0 / 271.4 MB, free: 3.234 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.01269, allocations: 0 / 271.4 MB, free: 3.234 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0004342/0.01313, allocations: 383.7 kB / 271.8 MB, free: 2.836 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.01316, allocations: 16.91 kB / 271.8 MB, free: 2.82 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.1e-05/0.01321, allocations: 32.92 kB / 271.8 MB, free: 2.789 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.01339, allocations: 145.6 kB / 272 MB, free: 2.621 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.715e-05/0.01342, allocations: 20.88 kB / 272 MB, free: 2.598 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.569e-05/0.01344, allocations: 28.38 kB / 272 MB, free: 2.57 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000221/0.01366, allocations: 195.9 kB / 272.2 MB, free: 2.363 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.01368, allocations: 8.172 kB / 272.2 MB, free: 2.355 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.01369, allocations: 8.375 kB / 272.2 MB, free: 2.348 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.383e-06/0.0137, allocations: 4.375 kB / 272.2 MB, free: 2.344 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.642e-05/0.01379, allocations: 63.41 kB / 272.3 MB, free: 2.285 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007024/0.0145, allocations: 484.1 kB / 272.8 MB, free: 1.789 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001568/0.01465, allocations: 114.3 kB / 272.9 MB, free: 1.668 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.835e-05/0.0147, allocations: 44.83 kB / 272.9 MB, free: 1.621 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.01472, allocations: 8 kB / 272.9 MB, free: 1.613 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001061/0.01482, allocations: 95.19 kB / 273 MB, free: 1.508 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.01483, allocations: 0 / 273 MB, free: 1.508 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.003214/0.01804, allocations: 135.9 kB / 273.2 MB, free: 1.371 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.698e-05/0.01808, allocations: 59.34 kB / 273.2 MB, free: 1.301 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.896e-05/0.01817, allocations: 157.6 kB / 273.4 MB, free: 1.137 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.01819, allocations: 37.7 kB / 273.4 MB, free: 1.094 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.519e-05/0.01825, allocations: 128.8 kB / 273.5 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.236e-05/0.0183, allocations: 67.48 kB / 273.6 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.998e-05/0.01838, allocations: 81.91 kB / 273.7 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.13e-05/0.01846, allocations: 330.8 kB / 274 MB, free: 484 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.211e-05/0.0185, allocations: 28.64 kB / 274 MB, free: 456 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.632e-05/0.01859, allocations: 100.1 kB / 274.1 MB, free: 332 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001345/0.01872, allocations: 134.6 kB / 274.3 MB, free: 172 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.01872, allocations: 0 / 274.3 MB, free: 172 kB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001886/0.01891, allocations: 165.4 kB / 274.4 MB, free: 0 / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.01894, allocations: 8.047 kB / 274.4 MB, free: 15.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.01894, allocations: 0 / 274.4 MB, free: 15.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.01896, allocations: 4 kB / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.0191, allocations: 43.86 kB / 274.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.0191, allocations: 3.938 kB / 274.5 MB, free: 15.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.771e-05/0.01917, allocations: 23.89 kB / 274.5 MB, free: 15.92 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.01919, allocations: 12.16 kB / 274.5 MB, free: 15.91 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition1.condition,transition2.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 (39): * Single equations (assignments): 39 * 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.775e-05/0.01928, allocations: 145.8 kB / 274.7 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.116e-05/0.0193, allocations: 12 kB / 274.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001649/0.01946, allocations: 130.4 kB / 274.8 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.01947, allocations: 4 kB / 274.8 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.01947, allocations: 3.938 kB / 274.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.01947, allocations: 0 / 274.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003661/0.01984, allocations: 343 kB / 275.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.01984, allocations: 0 / 275.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.151e-05/0.0199, allocations: 31.92 kB / 275.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.01991, allocations: 3.938 kB / 275.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.01992, allocations: 4 kB / 275.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.01992, allocations: 0 / 275.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.01992, allocations: 0 / 275.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001464/0.02007, allocations: 215.8 kB / 275.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.47e-05/0.02008, allocations: 15.84 kB / 275.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.0201, allocations: 11.98 kB / 275.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.174e-05/0.02017, allocations: 12 kB / 275.4 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.006e-05/0.02022, allocations: 23.89 kB / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.02023, allocations: 4 kB / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.955e-05/0.02025, allocations: 24.83 kB / 275.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.02025, allocations: 0 / 275.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002316/0.02048, allocations: 51.89 kB / 275.5 MB, free: 14.83 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001107/0.02059, allocations: 84.38 kB / 275.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001644/0.02075, allocations: 124.7 kB / 275.7 MB, free: 14.62 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.02076, allocations: 0 / 275.7 MB, free: 14.62 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.716e-05/0.02083, allocations: 72.64 kB / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003203/0.02404, allocations: 28.31 kB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004179/0.02446, allocations: 317.5 kB / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.155e-05/0.02451, allocations: 76.33 kB / 276.2 MB, free: 14.08 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.395e-05/0.02457, allocations: 29.92 kB / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.732e-05/0.02467, allocations: 83.36 kB / 276.3 MB, free: 13.97 MB / 266.7 MB Notification: Performance of SimCode: time 1.193e-06/0.02467, allocations: 0 / 276.3 MB, free: 13.97 MB / 266.7 MB Notification: Performance of Templates: time 0.007446/0.03212, allocations: 2.102 MB / 278.4 MB, free: 11.9 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.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.6567297182045877]