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.001314/0.001314, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.001475/0.001475, allocations: 145.2 kB / 25.59 MB, free: 8.914 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.9681/0.9681, allocations: 173.4 MB / 202.2 MB, free: 8.285 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.482e-06/1.482e-06, allocations: 0 / 269.2 MB, free: 9.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.083e-05/2.231e-05, allocations: 3 kB / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002003/0.002026, allocations: 1.501 MB / 270.7 MB, free: 8.309 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006299/0.002656, allocations: 275.1 kB / 270.9 MB, free: 8.039 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.993e-05/0.002746, allocations: 10.03 kB / 270.9 MB, free: 8.031 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001541/0.0029, allocations: 23.73 kB / 271 MB, free: 8.008 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.29e-05/0.002953, allocations: 15.81 kB / 271 MB, free: 7.992 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003986/0.003351, allocations: 123.7 kB / 271.1 MB, free: 7.871 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002474/0.003599, allocations: 268.3 kB / 271.4 MB, free: 7.609 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002713/0.00387, allocations: 144.8 kB / 271.5 MB, free: 7.465 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.003984, allocations: 131.8 kB / 271.6 MB, free: 7.336 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/0.004093, allocations: 71.77 kB / 271.7 MB, free: 7.266 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.225e-05/0.004126, allocations: 24 kB / 271.7 MB, free: 7.242 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.449e-05/0.0042, allocations: 29.28 kB / 271.8 MB, free: 7.215 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.12e-05/0.004251, allocations: 59.8 kB / 271.8 MB, free: 7.156 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.464e-05/0.004306, allocations: 63.83 kB / 271.9 MB, free: 7.094 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.004527, allocations: 179.3 kB / 272 MB, free: 6.918 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.004531, allocations: 0.5312 kB / 272.1 MB, free: 6.918 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.004531, allocations: 0.6875 kB / 272.1 MB, free: 6.918 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.004536, allocations: 0 / 272.1 MB, free: 6.918 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.0004885/0.005025, allocations: 0.5088 MB / 272.6 MB, free: 6.375 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.005056, allocations: 8.031 kB / 272.6 MB, free: 6.367 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.099e-05/0.005117, allocations: 44.8 kB / 272.6 MB, free: 6.324 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001805/0.005298, allocations: 169 kB / 272.8 MB, free: 6.133 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.726e-05/0.005325, allocations: 20.88 kB / 272.8 MB, free: 6.109 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.401e-05/0.005349, allocations: 25.59 kB / 272.8 MB, free: 6.086 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002116/0.005561, allocations: 205.6 kB / 273 MB, free: 5.871 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.005572, allocations: 4.125 kB / 273 MB, free: 5.867 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.005587, allocations: 9 kB / 273 MB, free: 5.859 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.005595, allocations: 8.359 kB / 273 MB, free: 5.852 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.069e-05/0.005686, allocations: 81.45 kB / 273.1 MB, free: 5.777 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006469/0.006333, allocations: 0.6389 MB / 273.8 MB, free: 5.105 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001681/0.006501, allocations: 123.3 kB / 273.9 MB, free: 4.973 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.425e-05/0.006545, allocations: 47.66 kB / 273.9 MB, free: 4.922 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.006561, allocations: 4.5 kB / 273.9 MB, free: 4.918 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001101/0.006671, allocations: 116.8 kB / 274 MB, free: 4.789 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.363e-06/0.006673, allocations: 0 / 274 MB, free: 4.789 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002394/0.006912, allocations: 168.5 kB / 274.2 MB, free: 4.621 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.006949, allocations: 59.34 kB / 274.3 MB, free: 4.551 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.007052, allocations: 209.7 kB / 274.5 MB, free: 4.328 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.007073, allocations: 37.7 kB / 274.5 MB, free: 4.285 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.44e-05/0.007147, allocations: 179.5 kB / 274.7 MB, free: 4.102 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.786e-05/0.007185, allocations: 63.45 kB / 274.7 MB, free: 4.039 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.546e-05/0.007261, allocations: 87.61 kB / 274.8 MB, free: 3.941 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.007385, allocations: 0.4962 MB / 275.3 MB, free: 3.434 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.182e-05/0.007427, allocations: 36.62 kB / 275.4 MB, free: 3.398 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.072e-05/0.007507, allocations: 126.6 kB / 275.5 MB, free: 3.242 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001305/0.007638, allocations: 153.3 kB / 275.6 MB, free: 3.059 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.00764, allocations: 0 / 275.6 MB, free: 3.059 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002128/0.007853, allocations: 205.9 kB / 275.8 MB, free: 2.852 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.007873, allocations: 8 kB / 275.8 MB, free: 2.844 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.007879, allocations: 0 / 275.8 MB, free: 2.844 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.007891, allocations: 4 kB / 275.9 MB, free: 2.84 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.755e-05/0.007988, allocations: 43.8 kB / 275.9 MB, free: 2.797 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.007992, allocations: 0 / 275.9 MB, free: 2.797 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.967e-05/0.008052, allocations: 27.78 kB / 275.9 MB, free: 2.77 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.914e-05/0.008071, allocations: 11.98 kB / 275.9 MB, free: 2.758 MB / 250.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 0.0001104/0.008182, allocations: 192.7 kB / 276.1 MB, free: 2.559 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.337e-05/0.008205, allocations: 19.95 kB / 276.1 MB, free: 2.539 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002063/0.008411, allocations: 168.4 kB / 276.3 MB, free: 2.367 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.008415, allocations: 3.938 kB / 276.3 MB, free: 2.363 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.008419, allocations: 3.938 kB / 276.3 MB, free: 2.359 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.008426, allocations: 4 kB / 276.3 MB, free: 2.355 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004443/0.00887, allocations: 467.7 kB / 276.8 MB, free: 1.867 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.008872, allocations: 0 / 276.8 MB, free: 1.867 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.969e-05/0.008922, allocations: 19.92 kB / 276.8 MB, free: 1.848 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.008924, allocations: 4 kB / 276.8 MB, free: 1.844 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.008935, allocations: 8 kB / 276.8 MB, free: 1.836 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.008936, allocations: 0 / 276.8 MB, free: 1.836 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.008938, allocations: 0 / 276.8 MB, free: 1.836 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001908/0.009129, allocations: 311.6 kB / 277.1 MB, free: 1.512 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.743e-05/0.009146, allocations: 23.78 kB / 277.1 MB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.009165, allocations: 4 kB / 277.1 MB, free: 1.484 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.089e-05/0.009216, allocations: 7.984 kB / 277.1 MB, free: 1.477 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.817e-05/0.009274, allocations: 23.95 kB / 277.2 MB, free: 1.453 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.009285, allocations: 4 kB / 277.2 MB, free: 1.449 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.77e-05/0.009333, allocations: 135.2 kB / 277.3 MB, free: 1.316 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009333, allocations: 4 kB / 277.3 MB, free: 1.312 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002319/0.009565, allocations: 47.89 kB / 277.4 MB, free: 1.266 MB / 250.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.0001445/0.00971, allocations: 111.1 kB / 277.5 MB, free: 1.148 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001928/0.009902, allocations: 132.1 kB / 277.6 MB, free: 1.016 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.009905, allocations: 4 kB / 277.6 MB, free: 1.012 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.266e-05/0.009977, allocations: 68.61 kB / 277.7 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002162/0.01019, allocations: 28.42 kB / 277.7 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004265/0.01062, allocations: 319.8 kB / 278 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.792e-05/0.01067, allocations: 80.33 kB / 278.1 MB, free: 484 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.957e-05/0.01073, allocations: 25.94 kB / 278.1 MB, free: 460 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.419e-05/0.01082, allocations: 106.2 kB / 278.2 MB, free: 352 kB / 250.7 MB Notification: Performance of SimCode: time 9.42e-07/0.01082, allocations: 0 / 278.2 MB, free: 352 kB / 250.7 MB Notification: Performance of Templates: time 0.004324/0.01515, allocations: 2.206 MB / 280.4 MB, free: 14.17 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 -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.90344091784209]