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_Variant2.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_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.102/1.102, allocations: 111.2 MB / 126.7 MB, free: 6.121 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002628/0.0002629, allocations: 8 kB / 158.2 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04498/0.04527, allocations: 25.17 MB / 183.4 MB, free: 6.016 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001976/0.04729, allocations: 1.234 MB / 184.6 MB, free: 4.781 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007046/0.04804, allocations: 267.2 kB / 184.9 MB, free: 4.52 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.04816, allocations: 7.938 kB / 184.9 MB, free: 4.512 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001137/0.0483, allocations: 23.84 kB / 184.9 MB, free: 4.488 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 5.102e-05/0.04837, allocations: 7.922 kB / 184.9 MB, free: 4.48 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003732/0.04875, allocations: 91.89 kB / 185 MB, free: 4.391 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002882/0.04906, allocations: 163.7 kB / 185.2 MB, free: 4.23 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003002/0.04937, allocations: 145.9 kB / 185.3 MB, free: 4.086 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.74e-05/0.04949, allocations: 59.78 kB / 185.4 MB, free: 4.027 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001321/0.04963, allocations: 75.61 kB / 185.5 MB, free: 3.953 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 3.62e-05/0.04968, allocations: 12 kB / 185.5 MB, free: 3.941 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.488e-05/0.04977, allocations: 23.92 kB / 185.5 MB, free: 3.918 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 6.991e-05/0.04985, allocations: 39.83 kB / 185.5 MB, free: 3.879 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 6.524e-05/0.04993, allocations: 53.64 kB / 185.6 MB, free: 3.82 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002522/0.05019, allocations: 155.6 kB / 185.7 MB, free: 3.668 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.366e-06/0.05021, allocations: 0 / 185.7 MB, free: 3.668 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.05023, allocations: 3.938 kB / 185.8 MB, free: 3.664 MB / 154.7 MB Notification: Performance of Transformations before backend: time 6.307e-06/0.05025, allocations: 4 kB / 185.8 MB, free: 3.66 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0007142/0.05097, allocations: 446 kB / 186.2 MB, free: 3.176 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.05102, allocations: 8.031 kB / 186.2 MB, free: 3.168 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.545e-05/0.05111, allocations: 27.67 kB / 186.2 MB, free: 3.141 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003223/0.05144, allocations: 226.8 kB / 186.4 MB, free: 2.879 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.031e-05/0.0515, allocations: 16.56 kB / 186.5 MB, free: 2.859 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.225e-05/0.05157, allocations: 31.94 kB / 186.5 MB, free: 2.828 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000598/0.05218, allocations: 266 kB / 186.8 MB, free: 2.547 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.05221, allocations: 0 / 186.8 MB, free: 2.547 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.739e-05/0.05226, allocations: 15.98 kB / 186.8 MB, free: 2.531 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/0.05228, allocations: 7.953 kB / 186.8 MB, free: 2.523 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004398/0.05273, allocations: 169.6 kB / 186.9 MB, free: 2.359 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001516/0.05427, allocations: 0.9638 MB / 187.9 MB, free: 1.324 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000385/0.05467, allocations: 147.3 kB / 188.1 MB, free: 1.172 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.05471, allocations: 192 / 188.1 MB, free: 1.172 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002651/0.05499, allocations: 119.6 kB / 188.2 MB, free: 1.043 MB / 154.7 MB Notification: Performance of pre-optimization done (n=23): time 2.741e-06/0.05501, allocations: 0 / 188.2 MB, free: 1.043 MB / 154.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005703/0.05559, allocations: 218.7 kB / 188.4 MB, free: 0.8242 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/0.05567, allocations: 55.41 kB / 188.4 MB, free: 0.7578 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001796/0.05586, allocations: 161.8 kB / 188.6 MB, free: 0.5898 MB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 4.031e-05/0.05591, allocations: 33.7 kB / 188.6 MB, free: 0.5508 MB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.05608, allocations: 206.9 kB / 188.8 MB, free: 356 kB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.034e-05/0.05616, allocations: 55.25 kB / 188.9 MB, free: 300 kB / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.955e-05/0.05619, allocations: 12 kB / 188.9 MB, free: 288 kB / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.0001958/0.0564, allocations: 330.8 kB / 189.2 MB, free: 15.95 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/0.05659, allocations: 60.62 kB / 189.3 MB, free: 15.89 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/0.05683, allocations: 133.9 kB / 189.4 MB, free: 15.73 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001903/0.05704, allocations: 71.92 kB / 189.5 MB, free: 15.66 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.191e-06/0.05705, allocations: 0 / 189.5 MB, free: 15.66 MB / 170.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005555/0.05762, allocations: 241.5 kB / 189.7 MB, free: 15.41 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.05765, allocations: 5.875 kB / 189.7 MB, free: 15.41 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.05768, allocations: 7.984 kB / 189.7 MB, free: 15.4 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.0577, allocations: 4 kB / 189.7 MB, free: 15.4 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.0579, allocations: 31.92 kB / 189.8 MB, free: 15.37 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.05792, allocations: 7.938 kB / 189.8 MB, free: 15.36 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.05808, allocations: 35.62 kB / 189.8 MB, free: 15.32 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.062e-05/0.05814, allocations: 12 kB / 189.8 MB, free: 15.31 MB / 170.7 MB Warning: Assuming fixed start value for the following 1 variables: 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: 10 * Number of states: 0 () * Number of discrete variables: 30 ($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,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,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 (40): * Single equations (assignments): 40 * 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.0002546/0.05841, allocations: 167.2 kB / 190 MB, free: 15.14 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.446e-05/0.05846, allocations: 19.75 kB / 190 MB, free: 15.12 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004605/0.05893, allocations: 194.7 kB / 190.2 MB, free: 14.93 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.444e-06/0.05895, allocations: 0 / 190.2 MB, free: 14.93 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.424e-06/0.05897, allocations: 0 / 190.2 MB, free: 14.93 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.726e-06/0.05898, allocations: 0 / 190.2 MB, free: 14.93 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.06006, allocations: 0.5916 MB / 190.8 MB, free: 14.27 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.645e-06/0.06009, allocations: 0 / 190.8 MB, free: 14.27 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.0602, allocations: 15.98 kB / 190.8 MB, free: 14.26 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/0.06022, allocations: 0 / 190.8 MB, free: 14.26 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/0.06025, allocations: 8 kB / 190.8 MB, free: 14.25 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.522e-06/0.06026, allocations: 0 / 190.8 MB, free: 14.25 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.834e-06/0.06028, allocations: 3.953 kB / 190.8 MB, free: 14.25 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004385/0.06072, allocations: 275.4 kB / 191.1 MB, free: 13.96 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.5e-05/0.06082, allocations: 100.9 kB / 191.2 MB, free: 13.84 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.622e-05/0.06086, allocations: 4 kB / 191.2 MB, free: 13.84 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001297/0.061, allocations: 11.98 kB / 191.2 MB, free: 13.83 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.238e-05/0.0611, allocations: 19.97 kB / 191.2 MB, free: 13.81 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.287e-05/0.06116, allocations: 11.95 kB / 191.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of sorting global known variables: time 9.087e-05/0.06126, allocations: 95.27 kB / 191.3 MB, free: 13.7 MB / 170.7 MB Notification: Performance of sort global known variables: time 8.25e-07/0.06127, allocations: 0 / 191.3 MB, free: 13.7 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.00043/0.06171, allocations: 47.84 kB / 191.4 MB, free: 13.66 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 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,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 (25): * Single equations (assignments): 21 * 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.0001794/0.06191, allocations: 127.2 kB / 191.5 MB, free: 13.52 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0004494/0.06237, allocations: 180 kB / 191.7 MB, free: 13.35 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.844e-06/0.06239, allocations: 0 / 191.7 MB, free: 13.35 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002057/0.06261, allocations: 79.91 kB / 191.7 MB, free: 13.27 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002473/0.06287, allocations: 12.56 kB / 191.8 MB, free: 13.26 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008237/0.06372, allocations: 416.8 kB / 192.2 MB, free: 12.82 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004606/0.0642, allocations: 0.7406 MB / 192.9 MB, free: 12.05 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.417e-05/0.0643, allocations: 23.38 kB / 192.9 MB, free: 12.02 MB / 170.7 MB Notification: Performance of SimCode: time 1.598e-06/0.06431, allocations: 4 kB / 192.9 MB, free: 12.02 MB / 170.7 MB Notification: Performance of Templates: time 0.005549/0.06987, allocations: 2.315 MB / 195.2 MB, free: 9.699 MB / 170.7 MB