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.001188/0.001188, allocations: 83.89 kB / 21.19 MB, free: 3.383 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.001172/0.001172, allocations: 141.5 kB / 24.54 MB, free: 32 kB / 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 1.041/1.041, allocations: 173.4 MB / 201.1 MB, free: 9.336 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 2.344e-06/2.344e-06, allocations: 3.938 kB / 268 MB, free: 6.477 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.426e-05/2.66e-05, allocations: 6.25 kB / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00298/0.003007, allocations: 1.723 MB / 269.7 MB, free: 4.73 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006154/0.003622, allocations: 299 kB / 270 MB, free: 4.438 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.465e-05/0.003707, allocations: 11.88 kB / 270 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.003837, allocations: 27.73 kB / 270 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.424e-05/0.003892, allocations: 15.81 kB / 270 MB, free: 4.383 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004173/0.004309, allocations: 131.7 kB / 270.2 MB, free: 4.254 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003051/0.004614, allocations: 275.4 kB / 270.4 MB, free: 3.984 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002495/0.004864, allocations: 146.2 kB / 270.6 MB, free: 3.836 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001437/0.005007, allocations: 147.7 kB / 270.7 MB, free: 3.691 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001201/0.005127, allocations: 71.77 kB / 270.8 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.823e-05/0.005165, allocations: 24 kB / 270.8 MB, free: 3.598 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.61e-05/0.005242, allocations: 31.98 kB / 270.8 MB, free: 3.566 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.316e-05/0.005315, allocations: 55.81 kB / 270.9 MB, free: 3.512 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.519e-05/0.0054, allocations: 67.83 kB / 271 MB, free: 3.445 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002812/0.005681, allocations: 191.2 kB / 271.2 MB, free: 3.258 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.005684, allocations: 4 kB / 271.2 MB, free: 3.254 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.005685, allocations: 0 / 271.2 MB, free: 3.254 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.005689, allocations: 0 / 271.2 MB, free: 3.254 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.0006133/0.006302, allocations: 0.519 MB / 271.7 MB, free: 2.699 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.006346, allocations: 12.03 kB / 271.7 MB, free: 2.688 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.109e-05/0.006437, allocations: 48.78 kB / 271.7 MB, free: 2.641 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002321/0.006669, allocations: 172.3 kB / 271.9 MB, free: 2.445 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.225e-05/0.006701, allocations: 20.88 kB / 271.9 MB, free: 2.426 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.651e-05/0.006737, allocations: 32.36 kB / 272 MB, free: 2.395 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003503/0.007088, allocations: 248.8 kB / 272.2 MB, free: 2.121 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.007101, allocations: 4.125 kB / 272.2 MB, free: 2.117 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.167e-05/0.007123, allocations: 12.38 kB / 272.2 MB, free: 2.105 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.007136, allocations: 8.375 kB / 272.2 MB, free: 2.098 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001859/0.007321, allocations: 102.8 kB / 272.3 MB, free: 2 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009528/0.008274, allocations: 1.072 MB / 273.4 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002397/0.008514, allocations: 146.4 kB / 273.5 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.866e-05/0.008603, allocations: 66.77 kB / 273.6 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.008622, allocations: 12 kB / 273.6 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001784/0.0088, allocations: 136.2 kB / 273.7 MB, free: 472 kB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.008802, allocations: 3.938 kB / 273.8 MB, free: 468 kB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003801/0.009182, allocations: 196.4 kB / 273.9 MB, free: 268 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.009236, allocations: 85.05 kB / 274 MB, free: 164 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.009396, allocations: 217.9 kB / 274.2 MB, free: 15.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.009423, allocations: 37.7 kB / 274.3 MB, free: 15.88 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.415e-05/0.009517, allocations: 191.4 kB / 274.5 MB, free: 15.69 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.674e-05/0.009564, allocations: 63.53 kB / 274.5 MB, free: 15.62 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.846e-05/0.009662, allocations: 83.34 kB / 274.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.009812, allocations: 0.5041 MB / 275.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.62e-05/0.009898, allocations: 43.75 kB / 275.2 MB, free: 14.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001387/0.01004, allocations: 144.6 kB / 275.3 MB, free: 14.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002122/0.01025, allocations: 188.7 kB / 275.5 MB, free: 14.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.01025, allocations: 4 kB / 275.5 MB, free: 14.56 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003115/0.01057, allocations: 237 kB / 275.7 MB, free: 14.33 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.01058, allocations: 8 kB / 275.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.01059, allocations: 4 kB / 275.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.0106, allocations: 7.984 kB / 275.7 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.01072, allocations: 32.2 kB / 275.8 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.01073, allocations: 15.92 kB / 275.8 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.77e-05/0.01081, allocations: 27.83 kB / 275.8 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.441e-05/0.01083, allocations: 16 kB / 275.8 MB, free: 14.22 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,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * 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.0001075/0.01094, allocations: 180.5 kB / 276 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.177e-05/0.01097, allocations: 31.83 kB / 276 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002621/0.01123, allocations: 162.5 kB / 276.2 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.01124, allocations: 7.938 kB / 276.2 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.01124, allocations: 0 / 276.2 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.01125, allocations: 4 kB / 276.2 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005424/0.01179, allocations: 0.5438 MB / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.01179, allocations: 0 / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.239e-05/0.01184, allocations: 16 kB / 276.8 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.01185, allocations: 0 / 276.8 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.01186, allocations: 7.984 kB / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.01186, allocations: 0 / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.01186, allocations: 0 / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002618/0.01212, allocations: 339.7 kB / 277.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.467e-05/0.01214, allocations: 19.84 kB / 277.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.01216, allocations: 4 kB / 277.1 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.889e-05/0.01223, allocations: 15.98 kB / 277.1 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.215e-05/0.01229, allocations: 15.97 kB / 277.2 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.01231, allocations: 11.94 kB / 277.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.178e-05/0.01236, allocations: 138.7 kB / 277.3 MB, free: 12.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01236, allocations: 3.938 kB / 277.3 MB, free: 12.65 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002892/0.01265, allocations: 55.88 kB / 277.4 MB, free: 12.6 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.0001198/0.01277, allocations: 118.9 kB / 277.5 MB, free: 12.47 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002509/0.01302, allocations: 156.1 kB / 277.6 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01302, allocations: 0 / 277.6 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.01313, allocations: 87.45 kB / 277.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.0134, allocations: 35.05 kB / 277.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005153/0.01392, allocations: 338.8 kB / 278.1 MB, free: 11.83 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.132e-05/0.01398, allocations: 84.27 kB / 278.2 MB, free: 11.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.134e-05/0.01405, allocations: 26.19 kB / 278.2 MB, free: 11.7 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.474e-05/0.01411, allocations: 32.48 kB / 278.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of SimCode: time 7.02e-07/0.01411, allocations: 0 / 278.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of Templates: time 0.004704/0.01881, allocations: 2.065 MB / 280.3 MB, free: 9.637 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.917068096343428]