Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.046/1.046, allocations: 111.1 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002624/0.0002626, allocations: 4 kB / 158.2 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04582/0.0461, allocations: 25.18 MB / 183.4 MB, free: 6.008 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001675/0.04782, allocations: 1.084 MB / 184.5 MB, free: 4.926 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006182/0.04848, allocations: 247.3 kB / 184.7 MB, free: 4.684 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.41e-05/0.04859, allocations: 7.938 kB / 184.8 MB, free: 4.676 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001013/0.04872, allocations: 15.86 kB / 184.8 MB, free: 4.66 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 5.896e-05/0.04879, allocations: 15.86 kB / 184.8 MB, free: 4.645 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00035/0.04916, allocations: 79.91 kB / 184.9 MB, free: 4.566 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.000261/0.04943, allocations: 147.7 kB / 185 MB, free: 4.422 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002805/0.04973, allocations: 134.6 kB / 185.1 MB, free: 4.289 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.454e-05/0.04984, allocations: 59.78 kB / 185.2 MB, free: 4.23 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.04998, allocations: 75.67 kB / 185.3 MB, free: 4.156 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 3.338e-05/0.05003, allocations: 8 kB / 185.3 MB, free: 4.148 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.454e-05/0.05011, allocations: 19.94 kB / 185.3 MB, free: 4.129 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 6.228e-05/0.05018, allocations: 39.83 kB / 185.3 MB, free: 4.09 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 6.816e-05/0.05026, allocations: 53.64 kB / 185.4 MB, free: 4.031 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002374/0.05051, allocations: 155.8 kB / 185.5 MB, free: 3.879 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.428e-06/0.05053, allocations: 0 / 185.5 MB, free: 3.879 MB / 154.7 MB Notification: Performance of FrontEnd: time 1.595e-06/0.05054, allocations: 0 / 185.5 MB, free: 3.879 MB / 154.7 MB Notification: Performance of Transformations before backend: time 5.836e-06/0.05055, allocations: 0 / 185.5 MB, free: 3.879 MB / 154.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006973/0.05126, allocations: 434.4 kB / 186 MB, free: 3.402 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.05131, allocations: 12.03 kB / 186 MB, free: 3.391 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.16e-05/0.05139, allocations: 27.7 kB / 186 MB, free: 3.363 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003125/0.05172, allocations: 222.7 kB / 186.2 MB, free: 3.105 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.354e-05/0.05178, allocations: 20.44 kB / 186.2 MB, free: 3.086 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.212e-05/0.05184, allocations: 24 kB / 186.3 MB, free: 3.062 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00053/0.05238, allocations: 233.8 kB / 186.5 MB, free: 2.824 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.05241, allocations: 0 / 186.5 MB, free: 2.824 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.101e-05/0.05245, allocations: 8 kB / 186.5 MB, free: 2.816 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.908e-06/0.05247, allocations: 8 kB / 186.5 MB, free: 2.809 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000437/0.05292, allocations: 169.5 kB / 186.7 MB, free: 2.645 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.05415, allocations: 0.678 MB / 187.4 MB, free: 1.91 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004046/0.05458, allocations: 171.3 kB / 187.5 MB, free: 1.734 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.05462, allocations: 4.172 kB / 187.5 MB, free: 1.73 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002623/0.05489, allocations: 115.5 kB / 187.6 MB, free: 1.605 MB / 154.7 MB Notification: Performance of pre-optimization done (n=24): time 3.121e-06/0.05491, allocations: 0 / 187.6 MB, free: 1.605 MB / 154.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005638/0.05548, allocations: 226.8 kB / 187.9 MB, free: 1.379 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.209e-05/0.05555, allocations: 55.41 kB / 187.9 MB, free: 1.312 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.05572, allocations: 145.9 kB / 188.1 MB, free: 1.156 MB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 4.415e-05/0.05578, allocations: 37.7 kB / 188.1 MB, free: 1.113 MB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.05593, allocations: 195.1 kB / 188.3 MB, free: 0.9219 MB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.145e-05/0.05602, allocations: 55.2 kB / 188.3 MB, free: 0.8672 MB / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.773e-05/0.05605, allocations: 8 kB / 188.3 MB, free: 0.8594 MB / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.05623, allocations: 322.8 kB / 188.7 MB, free: 0.5352 MB / 154.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001672/0.05641, allocations: 64.3 kB / 188.7 MB, free: 480 kB / 154.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/0.05664, allocations: 119.2 kB / 188.8 MB, free: 336 kB / 154.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001979/0.05686, allocations: 75.92 kB / 188.9 MB, free: 260 kB / 154.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.103e-06/0.05687, allocations: 0 / 188.9 MB, free: 260 kB / 154.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005245/0.05741, allocations: 237.3 kB / 189.1 MB, free: 16 kB / 154.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.05744, allocations: 7.984 kB / 189.2 MB, free: 8 kB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.571e-06/0.05746, allocations: 4 kB / 189.2 MB, free: 4 kB / 154.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.08e-05/0.05751, allocations: 4 kB / 189.2 MB, free: 0 / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.05769, allocations: 28.19 kB / 189.2 MB, free: 15.97 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.05772, allocations: 8 kB / 189.2 MB, free: 15.96 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/0.05788, allocations: 35.78 kB / 189.2 MB, free: 15.93 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.838e-05/0.05793, allocations: 15.92 kB / 189.2 MB, free: 15.91 MB / 170.7 MB Warning: Assuming fixed start value for the following 2 variables: transition2.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real transition1.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real 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,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002509/0.05819, allocations: 164.9 kB / 189.4 MB, free: 15.74 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.356e-05/0.05824, allocations: 15.84 kB / 189.4 MB, free: 15.73 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004688/0.05872, allocations: 198.3 kB / 189.6 MB, free: 15.52 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.05874, allocations: 0 / 189.6 MB, free: 15.52 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.383e-06/0.05876, allocations: 4 kB / 189.6 MB, free: 15.52 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.638e-06/0.05877, allocations: 0 / 189.6 MB, free: 15.52 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.05982, allocations: 0.5727 MB / 190.2 MB, free: 14.89 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.16e-06/0.05984, allocations: 0 / 190.2 MB, free: 14.89 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.05996, allocations: 23.81 kB / 190.2 MB, free: 14.87 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.766e-06/0.05998, allocations: 4 kB / 190.2 MB, free: 14.87 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.938e-05/0.06001, allocations: 4 kB / 190.2 MB, free: 14.86 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.332e-06/0.06002, allocations: 0 / 190.2 MB, free: 14.86 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.809e-06/0.06003, allocations: 0 / 190.2 MB, free: 14.86 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004362/0.06048, allocations: 283.1 kB / 190.5 MB, free: 14.57 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.896e-05/0.06057, allocations: 92.95 kB / 190.6 MB, free: 14.46 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.166e-05/0.06061, allocations: 3.984 kB / 190.6 MB, free: 14.46 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.06075, allocations: 12 kB / 190.6 MB, free: 14.45 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.11e-05/0.06085, allocations: 23.97 kB / 190.6 MB, free: 14.42 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.453e-05/0.06089, allocations: 7.984 kB / 190.6 MB, free: 14.41 MB / 170.7 MB Notification: Performance of sorting global known variables: time 8.651e-05/0.06099, allocations: 99.27 kB / 190.7 MB, free: 14.32 MB / 170.7 MB Notification: Performance of sort global known variables: time 6.79e-07/0.061, allocations: 0 / 190.7 MB, free: 14.32 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004146/0.06143, allocations: 47.84 kB / 190.8 MB, free: 14.27 MB / 170.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001718/0.06161, allocations: 111.2 kB / 190.9 MB, free: 14.15 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0004317/0.06206, allocations: 176.1 kB / 191.1 MB, free: 13.98 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.06208, allocations: 0 / 191.1 MB, free: 13.98 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000195/0.06228, allocations: 83.84 kB / 191.1 MB, free: 13.9 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.06255, allocations: 23.94 kB / 191.2 MB, free: 13.88 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007654/0.06333, allocations: 393.1 kB / 191.5 MB, free: 13.46 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004404/0.06379, allocations: 0.7366 MB / 192.3 MB, free: 12.69 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.791e-05/0.06388, allocations: 23.44 kB / 192.3 MB, free: 12.67 MB / 170.7 MB Notification: Performance of SimCode: time 1.447e-06/0.0639, allocations: 0 / 192.3 MB, free: 12.67 MB / 170.7 MB Notification: Performance of Templates: time 0.005171/0.06908, allocations: 2.264 MB / 194.6 MB, free: 10.4 MB / 170.7 MB