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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001926/0.001926, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.636/1.636, allocations: 222.9 MB / 240.9 MB, free: 10.96 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001425/0.001426, allocations: 110.4 kB / 291.2 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 43.94 kB / 350 MB, free: 72 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3593/0.3606, allocations: 49.45 MB / 399.5 MB, free: 33.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003273/0.3639, allocations: 1.558 MB / 401 MB, free: 31.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000793/0.3648, allocations: 299.1 kB / 401.3 MB, free: 31.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001536/0.3649, allocations: 7.938 kB / 401.3 MB, free: 31.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001724/0.3652, allocations: 15.86 kB / 401.3 MB, free: 31.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.405e-05/0.3652, allocations: 7.062 kB / 401.3 MB, free: 31.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004992/0.3657, allocations: 99.89 kB / 401.4 MB, free: 31.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003528/0.3661, allocations: 247.5 kB / 401.7 MB, free: 31.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.3664, allocations: 146.6 kB / 401.8 MB, free: 30.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.3665, allocations: 83.64 kB / 401.9 MB, free: 30.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000129/0.3666, allocations: 91.53 kB / 402 MB, free: 30.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.739e-05/0.3667, allocations: 16 kB / 402 MB, free: 30.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.574e-05/0.3668, allocations: 23.98 kB / 402 MB, free: 30.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.647e-05/0.3668, allocations: 39.91 kB / 402.1 MB, free: 30.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.877e-05/0.367, allocations: 91.52 kB / 402.2 MB, free: 30.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002487/0.3672, allocations: 211.3 kB / 402.4 MB, free: 30.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.3672, allocations: 0 / 402.4 MB, free: 30.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3672, allocations: 4 kB / 402.4 MB, free: 30.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.3673, allocations: 0 / 402.4 MB, free: 30.42 MB / 298.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.0007005/0.368, allocations: 480.1 kB / 402.8 MB, free: 29.9 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.368, allocations: 8.031 kB / 402.9 MB, free: 29.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.525e-05/0.3681, allocations: 20.75 kB / 402.9 MB, free: 29.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002326/0.3683, allocations: 235.9 kB / 403.1 MB, free: 29.6 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.606e-05/0.3684, allocations: 20.94 kB / 403.1 MB, free: 29.58 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.389e-05/0.3684, allocations: 28.38 kB / 403.2 MB, free: 29.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003755/0.3688, allocations: 240 kB / 403.4 MB, free: 29.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.3688, allocations: 192 / 403.4 MB, free: 29.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.472e-05/0.3688, allocations: 15.94 kB / 403.4 MB, free: 29.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.3689, allocations: 4 kB / 403.4 MB, free: 29.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002445/0.3691, allocations: 161.6 kB / 403.6 MB, free: 29.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008043/0.3699, allocations: 0.7012 MB / 404.3 MB, free: 28.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002396/0.3702, allocations: 174.8 kB / 404.4 MB, free: 28.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.297e-05/0.3703, allocations: 76.83 kB / 404.5 MB, free: 28.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.3703, allocations: 0 / 404.5 MB, free: 28.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002515/0.3706, allocations: 122.3 kB / 404.6 MB, free: 27.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.462e-06/0.3706, allocations: 0 / 404.6 MB, free: 27.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003608/0.3709, allocations: 221.2 kB / 404.8 MB, free: 27.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.371, allocations: 71.23 kB / 404.9 MB, free: 27.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.556e-05/0.3711, allocations: 143.4 kB / 405.1 MB, free: 27.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.196e-05/0.3711, allocations: 37.7 kB / 405.1 MB, free: 27.49 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.223e-05/0.3712, allocations: 128.7 kB / 405.2 MB, free: 27.36 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.741e-05/0.3712, allocations: 67.11 kB / 405.3 MB, free: 27.3 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.219e-05/0.3713, allocations: 70.02 kB / 405.4 MB, free: 27.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.648e-05/0.3714, allocations: 330.8 kB / 405.7 MB, free: 26.89 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.699e-05/0.3715, allocations: 60.62 kB / 405.7 MB, free: 26.83 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.3716, allocations: 132.1 kB / 405.9 MB, free: 26.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001967/0.3718, allocations: 175.2 kB / 406 MB, free: 26.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.3718, allocations: 0 / 406 MB, free: 26.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002763/0.3721, allocations: 245.2 kB / 406.3 MB, free: 26.24 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.3721, allocations: 4.219 kB / 406.3 MB, free: 26.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.3721, allocations: 11.94 kB / 406.3 MB, free: 26.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.3722, allocations: 7.938 kB / 406.3 MB, free: 26.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.3723, allocations: 31.92 kB / 406.3 MB, free: 26.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.727e-06/0.3723, allocations: 3.984 kB / 406.3 MB, free: 26.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.296e-05/0.3724, allocations: 19.84 kB / 406.4 MB, free: 26.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.974e-05/0.3724, allocations: 16 kB / 406.4 MB, free: 26.14 MB / 298.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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * 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.0001131/0.3725, allocations: 153.8 kB / 406.5 MB, free: 25.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.038e-05/0.3726, allocations: 23.75 kB / 406.5 MB, free: 25.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002826/0.3729, allocations: 198.3 kB / 406.7 MB, free: 25.76 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.3729, allocations: 4 kB / 406.7 MB, free: 25.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3729, allocations: 0 / 406.7 MB, free: 25.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.3729, allocations: 3.984 kB / 406.7 MB, free: 25.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005092/0.3734, allocations: 0.5737 MB / 407.3 MB, free: 25.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3734, allocations: 0 / 407.3 MB, free: 25.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.288e-05/0.3735, allocations: 15.94 kB / 407.3 MB, free: 25.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3735, allocations: 4 kB / 407.3 MB, free: 25.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.3735, allocations: 11.98 kB / 407.3 MB, free: 25.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3735, allocations: 0 / 407.3 MB, free: 25.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3735, allocations: 7.922 kB / 407.4 MB, free: 25.08 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004549/0.374, allocations: 0.8921 MB / 408.2 MB, free: 24.13 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.003e-05/0.374, allocations: 92.86 kB / 408.3 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.245e-05/0.3741, allocations: 8 kB / 408.3 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.736e-05/0.3741, allocations: 7.984 kB / 408.4 MB, free: 24.01 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.059e-05/0.3742, allocations: 23.97 kB / 408.4 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.3742, allocations: 4 kB / 408.4 MB, free: 23.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.236e-05/0.3743, allocations: 95.27 kB / 408.5 MB, free: 23.89 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3743, allocations: 0 / 408.5 MB, free: 23.89 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003603/0.3746, allocations: 51.84 kB / 408.5 MB, free: 23.84 MB / 298.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.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,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.0001374/0.3748, allocations: 107.2 kB / 408.6 MB, free: 23.72 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002551/0.375, allocations: 187.7 kB / 408.8 MB, free: 23.54 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3751, allocations: 0 / 408.8 MB, free: 23.54 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.3752, allocations: 83.91 kB / 408.9 MB, free: 23.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.3754, allocations: 24.94 kB / 408.9 MB, free: 23.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006116/0.3761, allocations: 0.567 MB / 409.5 MB, free: 22.82 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001813/0.3763, allocations: 0.7326 MB / 410.2 MB, free: 22.06 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.351e-05/0.3763, allocations: 29.94 kB / 410.2 MB, free: 22.04 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.177e-05/0.3764, allocations: 23.44 kB / 410.3 MB, free: 22.02 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.3764, allocations: 3.938 kB / 410.3 MB, free: 22.01 MB / 298.7 MB Notification: Performance of Templates: time 0.004175/0.3806, allocations: 1.814 MB / 412.1 MB, free: 20.21 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches