Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.0008952/0.0008952, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0008905/0.0008905, allocations: 147.1 kB / 24.9 MB, free: 8.727 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.9351/0.9351, allocations: 173.4 MB / 201.5 MB, free: 8.734 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 268.4 MB, free: 6.059 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.818e-05/1.943e-05, allocations: 10.05 kB / 268.4 MB, free: 6.051 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001994/0.002013, allocations: 1.717 MB / 270.2 MB, free: 4.316 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005298/0.002543, allocations: 310.9 kB / 270.5 MB, free: 4.012 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.451e-05/0.002618, allocations: 11.88 kB / 270.5 MB, free: 4 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.002721, allocations: 23.67 kB / 270.5 MB, free: 3.977 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.357e-05/0.002765, allocations: 15.81 kB / 270.5 MB, free: 3.961 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003223/0.003087, allocations: 135.7 kB / 270.6 MB, free: 3.828 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002266/0.003314, allocations: 275.4 kB / 270.9 MB, free: 3.559 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001969/0.003511, allocations: 160.1 kB / 271.1 MB, free: 3.398 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.003615, allocations: 139.7 kB / 271.2 MB, free: 3.262 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.387e-05/0.003709, allocations: 67.78 kB / 271.3 MB, free: 3.195 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.947e-05/0.003738, allocations: 27.98 kB / 271.3 MB, free: 3.168 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.138e-05/0.0038, allocations: 35.98 kB / 271.3 MB, free: 3.133 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.527e-05/0.003845, allocations: 55.83 kB / 271.4 MB, free: 3.078 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.296e-05/0.003898, allocations: 67.81 kB / 271.5 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001895/0.004087, allocations: 191.2 kB / 271.6 MB, free: 2.824 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.00409, allocations: 0 / 271.6 MB, free: 2.824 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.004091, allocations: 4 kB / 271.6 MB, free: 2.82 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.004095, allocations: 0 / 271.6 MB, free: 2.82 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.0004232/0.004518, allocations: 395.7 kB / 272 MB, free: 2.41 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.742e-05/0.004546, allocations: 12.03 kB / 272 MB, free: 2.398 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.734e-05/0.004593, allocations: 36.91 kB / 272.1 MB, free: 2.363 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001557/0.004749, allocations: 153.5 kB / 272.2 MB, free: 2.188 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.004772, allocations: 20.88 kB / 272.2 MB, free: 2.168 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.705e-05/0.004799, allocations: 28.36 kB / 272.3 MB, free: 2.141 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001997/0.004999, allocations: 222.5 kB / 272.5 MB, free: 1.898 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.617e-06/0.005007, allocations: 4.188 kB / 272.5 MB, free: 1.895 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.005021, allocations: 12.38 kB / 272.5 MB, free: 1.883 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.005028, allocations: 8.375 kB / 272.5 MB, free: 1.875 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.49e-05/0.005113, allocations: 71.33 kB / 272.6 MB, free: 1.809 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005867/0.0057, allocations: 0.731 MB / 273.3 MB, free: 1.043 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001338/0.005833, allocations: 117.1 kB / 273.4 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.103e-05/0.005874, allocations: 49.69 kB / 273.5 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.346e-05/0.005888, allocations: 4 kB / 273.5 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001038/0.005992, allocations: 124.8 kB / 273.6 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.092e-06/0.005993, allocations: 0 / 273.6 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.000165/0.006158, allocations: 135.9 kB / 273.7 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.006197, allocations: 89.03 kB / 273.8 MB, free: 480 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.05e-05/0.006277, allocations: 162 kB / 274 MB, free: 308 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.006297, allocations: 41.69 kB / 274 MB, free: 260 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.495e-05/0.006362, allocations: 140.8 kB / 274.2 MB, free: 112 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.226e-05/0.006395, allocations: 63.45 kB / 274.2 MB, free: 48 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.447e-05/0.006469, allocations: 81.62 kB / 274.3 MB, free: 15.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.404e-05/0.006543, allocations: 326.8 kB / 274.6 MB, free: 15.63 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.287e-05/0.006576, allocations: 35.89 kB / 274.7 MB, free: 15.6 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.87e-05/0.006645, allocations: 112.3 kB / 274.8 MB, free: 15.46 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001144/0.006759, allocations: 152.3 kB / 274.9 MB, free: 15.28 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.006762, allocations: 8 kB / 274.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001503/0.006913, allocations: 169.4 kB / 275.1 MB, free: 15.1 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.006925, allocations: 7.938 kB / 275.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.006931, allocations: 4 kB / 275.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.869e-06/0.006941, allocations: 4 kB / 275.1 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.294e-05/0.007024, allocations: 39.86 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.00703, allocations: 4.281 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.463e-05/0.007084, allocations: 31.78 kB / 275.2 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.007102, allocations: 15.98 kB / 275.2 MB, free: 14.99 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 7.828e-05/0.00718, allocations: 137.8 kB / 275.3 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.775e-05/0.007198, allocations: 15.98 kB / 275.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001392/0.007337, allocations: 122.4 kB / 275.5 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.007341, allocations: 7.984 kB / 275.5 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.007343, allocations: 0 / 275.5 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.007348, allocations: 3.984 kB / 275.5 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000309/0.007657, allocations: 378.2 kB / 275.8 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.007659, allocations: 8 kB / 275.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.468e-05/0.007694, allocations: 8 kB / 275.9 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.007697, allocations: 4 kB / 275.9 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-06/0.007707, allocations: 7.984 kB / 275.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.574e-06/0.007709, allocations: 4 kB / 275.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.00771, allocations: 0 / 275.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000124/0.007834, allocations: 228.5 kB / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.228e-05/0.007846, allocations: 15.84 kB / 276.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.007862, allocations: 8 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.265e-05/0.007905, allocations: 8 kB / 276.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.066e-05/0.007945, allocations: 27.95 kB / 276.2 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.007954, allocations: 4 kB / 276.2 MB, free: 13.96 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.835e-05/0.007972, allocations: 24.83 kB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007972, allocations: 0 / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001704/0.008143, allocations: 55.83 kB / 276.2 MB, free: 13.88 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: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,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.0001036/0.008246, allocations: 96.09 kB / 276.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001365/0.008383, allocations: 125.4 kB / 276.5 MB, free: 13.65 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.008386, allocations: 4.125 kB / 276.5 MB, free: 13.65 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.174e-05/0.008448, allocations: 76.62 kB / 276.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001446/0.008593, allocations: 27.83 kB / 276.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000346/0.008939, allocations: 326.3 kB / 276.9 MB, free: 13.19 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.358e-05/0.008982, allocations: 80.33 kB / 277 MB, free: 13.09 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.074e-05/0.009033, allocations: 26 kB / 277 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.015e-05/0.009113, allocations: 83.36 kB / 277.1 MB, free: 12.99 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.009114, allocations: 0 / 277.1 MB, free: 12.99 MB / 266.7 MB Notification: Performance of Templates: time 0.00368/0.01279, allocations: 2.136 MB / 279.2 MB, free: 10.89 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.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.5827063019387424]