Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.0007921/0.0007921, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00116/0.001952, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0007523/0.0007523, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00107/0.001822, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.9319/0.9319, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1845/1.116, allocations: 52.49 MB / 238.5 MB, free: 7.633 MB / 234.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.943e-06/1.943e-06, allocations: 0 / 239.7 MB, free: 6.395 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.399e-05/2.594e-05, allocations: 2.312 kB / 239.7 MB, free: 6.391 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002907/0.002933, allocations: 1.735 MB / 241.5 MB, free: 4.656 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006005/0.003534, allocations: 303.9 kB / 241.7 MB, free: 4.359 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.003645, allocations: 4.75 kB / 241.8 MB, free: 4.355 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.003767, allocations: 32.34 kB / 241.8 MB, free: 4.324 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 4.933e-05/0.003816, allocations: 24.48 kB / 241.8 MB, free: 4.301 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003706/0.004187, allocations: 128.4 kB / 241.9 MB, free: 4.176 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003105/0.004497, allocations: 275.5 kB / 242.2 MB, free: 3.906 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002589/0.004756, allocations: 160.7 kB / 242.4 MB, free: 3.746 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001454/0.004901, allocations: 139.7 kB / 242.5 MB, free: 3.609 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.005026, allocations: 71.77 kB / 242.6 MB, free: 3.539 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.799e-05/0.005064, allocations: 25.44 kB / 242.6 MB, free: 3.516 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.683e-05/0.005161, allocations: 35.98 kB / 242.6 MB, free: 3.48 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.148e-05/0.005222, allocations: 39.88 kB / 242.7 MB, free: 3.441 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.537e-05/0.005287, allocations: 59.86 kB / 242.7 MB, free: 3.383 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002644/0.005552, allocations: 176 kB / 242.9 MB, free: 3.211 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.809e-05/0.00557, allocations: 0 / 242.9 MB, free: 3.211 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.005571, allocations: 1.094 kB / 242.9 MB, free: 3.211 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.005584, allocations: 0 / 242.9 MB, free: 3.211 MB / 234.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.0006033/0.006187, allocations: 443.4 kB / 243.3 MB, free: 2.75 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.006224, allocations: 11.16 kB / 243.3 MB, free: 2.742 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.802e-05/0.006292, allocations: 40.91 kB / 243.4 MB, free: 2.703 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002052/0.006497, allocations: 145.5 kB / 243.5 MB, free: 2.535 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.821e-05/0.006535, allocations: 24.88 kB / 243.5 MB, free: 2.512 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.654e-05/0.006572, allocations: 28.38 kB / 243.6 MB, free: 2.484 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002753/0.006847, allocations: 230.5 kB / 243.8 MB, free: 2.238 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.006859, allocations: 192 / 243.8 MB, free: 2.238 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/0.006878, allocations: 9.688 kB / 243.8 MB, free: 2.23 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.006888, allocations: 8.375 kB / 243.8 MB, free: 2.223 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.007011, allocations: 79.33 kB / 243.9 MB, free: 2.145 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007896/0.007801, allocations: 0.732 MB / 244.6 MB, free: 1.387 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001816/0.007982, allocations: 120.1 kB / 244.7 MB, free: 1.254 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.775e-05/0.00804, allocations: 53.62 kB / 244.8 MB, free: 1.195 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.008058, allocations: 4 kB / 244.8 MB, free: 1.191 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001563/0.008214, allocations: 124.8 kB / 244.9 MB, free: 1.051 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.422e-06/0.008216, allocations: 0 / 244.9 MB, free: 1.051 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002333/0.008449, allocations: 134.8 kB / 245.1 MB, free: 0.9141 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.103e-05/0.0085, allocations: 89.09 kB / 245.1 MB, free: 0.8086 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.757e-05/0.008598, allocations: 167.4 kB / 245.3 MB, free: 0.6328 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.008625, allocations: 37.7 kB / 245.3 MB, free: 0.5898 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.091e-05/0.008695, allocations: 133.7 kB / 245.5 MB, free: 468 kB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.725e-05/0.008743, allocations: 71.44 kB / 245.5 MB, free: 396 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.047e-05/0.008823, allocations: 77.64 kB / 245.6 MB, free: 312 kB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.008934, allocations: 332.6 kB / 245.9 MB, free: 15.97 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.681e-05/0.008981, allocations: 23.98 kB / 246 MB, free: 15.95 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.009088, allocations: 112.3 kB / 246.1 MB, free: 15.81 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001597/0.009247, allocations: 160.1 kB / 246.2 MB, free: 15.62 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.00925, allocations: 0 / 246.2 MB, free: 15.62 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002212/0.009471, allocations: 171.5 kB / 246.4 MB, free: 15.45 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.00949, allocations: 11.94 kB / 246.4 MB, free: 15.44 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.009496, allocations: 0.5938 kB / 246.4 MB, free: 15.44 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.009512, allocations: 4.562 kB / 246.4 MB, free: 15.44 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.009708, allocations: 47.84 kB / 246.5 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.009715, allocations: 5.656 kB / 246.5 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.256e-05/0.009797, allocations: 31.78 kB / 246.5 MB, free: 15.36 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.418e-05/0.009821, allocations: 11.98 kB / 246.5 MB, free: 15.34 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 0.0001002/0.009922, allocations: 138.3 kB / 246.6 MB, free: 15.2 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.725e-05/0.009949, allocations: 20.83 kB / 246.7 MB, free: 15.18 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001904/0.01014, allocations: 121.5 kB / 246.8 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.01014, allocations: 5.625 kB / 246.8 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-06/0.01015, allocations: 0 / 246.8 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.842e-06/0.01015, allocations: 7.922 kB / 246.8 MB, free: 15.04 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004497/0.0106, allocations: 381.5 kB / 247.2 MB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.01061, allocations: 4.406 kB / 247.2 MB, free: 14.63 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.06e-05/0.01068, allocations: 16 kB / 247.2 MB, free: 14.62 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.831e-05/0.0107, allocations: 23.83 kB / 247.2 MB, free: 14.59 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.0107, allocations: 0 / 247.2 MB, free: 14.59 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.01071, allocations: 8 kB / 247.2 MB, free: 14.59 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.01071, allocations: 0 / 247.2 MB, free: 14.59 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.01072, allocations: 3.938 kB / 247.2 MB, free: 14.58 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000245/0.01096, allocations: 225.1 kB / 247.4 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.324e-05/0.01099, allocations: 8 kB / 247.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.404e-05/0.01106, allocations: 11.98 kB / 247.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.318e-05/0.01111, allocations: 15.97 kB / 247.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.01113, allocations: 12 kB / 247.5 MB, free: 14.3 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.656e-05/0.01115, allocations: 20.83 kB / 247.5 MB, free: 14.27 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01115, allocations: 0 / 247.5 MB, free: 14.27 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002432/0.0114, allocations: 51.89 kB / 247.6 MB, free: 14.22 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: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0001412/0.01154, allocations: 96.09 kB / 247.7 MB, free: 14.12 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001659/0.0117, allocations: 134.2 kB / 247.8 MB, free: 13.99 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.207e-06/0.01171, allocations: 4.844 kB / 247.8 MB, free: 13.98 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.04e-05/0.01178, allocations: 81.52 kB / 247.9 MB, free: 13.9 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002307/0.01201, allocations: 202.1 kB / 248.1 MB, free: 13.67 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000542/0.01256, allocations: 338.6 kB / 248.4 MB, free: 13.31 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.44e-05/0.0126, allocations: 80.33 kB / 248.5 MB, free: 13.21 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.813e-05/0.01266, allocations: 26.03 kB / 248.5 MB, free: 13.19 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.3e-05/0.01274, allocations: 83.36 kB / 248.6 MB, free: 13.11 MB / 250.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01274, allocations: 0 / 248.6 MB, free: 13.11 MB / 250.7 MB Notification: Performance of Templates: time 0.004255/0.017, allocations: 2.156 MB / 250.7 MB, free: 11 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.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.696057291701436]