Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.886/1.886, allocations: 194.8 MB / 211.6 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003572/0.0003574, allocations: 8 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08148/0.08187, allocations: 44.51 MB / 308.3 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002063/0.08397, allocations: 1.362 MB / 309.7 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006535/0.08465, allocations: 271.1 kB / 310 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.511e-05/0.08477, allocations: 0 / 310 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001031/0.08489, allocations: 19.81 kB / 310 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.226e-05/0.08495, allocations: 11.97 kB / 310 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000362/0.08533, allocations: 87.84 kB / 310.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000279/0.08563, allocations: 163.7 kB / 310.2 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002878/0.08593, allocations: 145.5 kB / 310.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.08604, allocations: 67.77 kB / 310.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00014/0.0862, allocations: 79.59 kB / 310.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.431e-05/0.08625, allocations: 12 kB / 310.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.513e-05/0.08632, allocations: 12 kB / 310.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.017e-05/0.0864, allocations: 39.91 kB / 310.6 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.866e-05/0.08648, allocations: 57.58 kB / 310.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002454/0.08674, allocations: 159.6 kB / 310.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.523e-06/0.08675, allocations: 0 / 310.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.006e-06/0.08676, allocations: 0 / 310.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.08678, allocations: 0 / 310.8 MB, free: 14.56 MB / 266.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.00069/0.08748, allocations: 442.2 kB / 311.2 MB, free: 14.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.08753, allocations: 8.031 kB / 311.2 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.126e-05/0.08762, allocations: 35.69 kB / 311.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003094/0.08795, allocations: 226.7 kB / 311.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.658e-05/0.08801, allocations: 24.56 kB / 311.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.188e-05/0.08807, allocations: 24 kB / 311.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005569/0.08864, allocations: 266 kB / 311.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.08868, allocations: 3.938 kB / 311.8 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.154e-05/0.08872, allocations: 8 kB / 311.8 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.08874, allocations: 12 kB / 311.8 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004333/0.08919, allocations: 165.6 kB / 312 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/0.09071, allocations: 0.956 MB / 312.9 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003694/0.0911, allocations: 155.4 kB / 313.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.976e-05/0.09115, allocations: 20 kB / 313.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.09145, allocations: 119.3 kB / 313.2 MB, free: 11.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 2.754e-06/0.09147, allocations: 0 / 313.2 MB, free: 11.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005445/0.09202, allocations: 205.3 kB / 313.4 MB, free: 11.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.211e-05/0.09209, allocations: 55.41 kB / 313.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001716/0.09228, allocations: 157.9 kB / 313.6 MB, free: 11.49 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.708e-05/0.09234, allocations: 41.69 kB / 313.7 MB, free: 11.44 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.0925, allocations: 202.9 kB / 313.9 MB, free: 11.24 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.449e-05/0.09258, allocations: 59.2 kB / 313.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.682e-05/0.09261, allocations: 8 kB / 314 MB, free: 11.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.09279, allocations: 322.8 kB / 314.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001719/0.09297, allocations: 60.62 kB / 314.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002392/0.09323, allocations: 141.8 kB / 314.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001792/0.09342, allocations: 67.98 kB / 314.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.09343, allocations: 0 / 314.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000549/0.09399, allocations: 249.2 kB / 314.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.09403, allocations: 8 kB / 314.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.09405, allocations: 4 kB / 314.8 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.09408, allocations: 4 kB / 314.8 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000179/0.09426, allocations: 32.2 kB / 314.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.357e-05/0.0943, allocations: 11.98 kB / 314.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001452/0.09445, allocations: 27.75 kB / 314.9 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.58e-05/0.0945, allocations: 12 kB / 314.9 MB, free: 10.21 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: 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.0002062/0.09472, allocations: 160.3 kB / 315 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.394e-05/0.09477, allocations: 19.77 kB / 315 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004428/0.09522, allocations: 186.8 kB / 315.2 MB, free: 9.832 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.09525, allocations: 4 kB / 315.2 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.662e-06/0.09527, allocations: 4 kB / 315.2 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.09529, allocations: 3.984 kB / 315.2 MB, free: 9.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.09633, allocations: 0.5876 MB / 315.8 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.785e-06/0.09636, allocations: 7.984 kB / 315.8 MB, free: 9.164 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.773e-05/0.09646, allocations: 11.94 kB / 315.8 MB, free: 9.152 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.09649, allocations: 4 kB / 315.9 MB, free: 9.148 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.09651, allocations: 4 kB / 315.9 MB, free: 9.145 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.084e-06/0.09653, allocations: 7.984 kB / 315.9 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.8e-06/0.09654, allocations: 0 / 315.9 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004242/0.09698, allocations: 275.2 kB / 316.1 MB, free: 8.852 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.915e-05/0.09707, allocations: 88.92 kB / 316.2 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.554e-05/0.09711, allocations: 7.984 kB / 316.2 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.09725, allocations: 12 kB / 316.2 MB, free: 8.727 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.245e-05/0.09735, allocations: 23.91 kB / 316.3 MB, free: 8.703 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.809e-05/0.09739, allocations: 15.92 kB / 316.3 MB, free: 8.688 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.568e-05/0.09749, allocations: 99.2 kB / 316.4 MB, free: 8.59 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.35e-07/0.0975, allocations: 0 / 316.4 MB, free: 8.59 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004366/0.09795, allocations: 51.84 kB / 316.4 MB, free: 8.539 MB / 266.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.0001807/0.09814, allocations: 111.2 kB / 316.5 MB, free: 8.422 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004362/0.09859, allocations: 176.3 kB / 316.7 MB, free: 8.25 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.676e-06/0.09861, allocations: 4.062 kB / 316.7 MB, free: 8.246 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001848/0.09881, allocations: 79.86 kB / 316.8 MB, free: 8.168 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002354/0.09906, allocations: 23.92 kB / 316.8 MB, free: 8.145 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007886/0.09986, allocations: 409.5 kB / 317.2 MB, free: 7.711 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004428/0.1003, allocations: 0.7367 MB / 317.9 MB, free: 6.949 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.991e-05/0.1004, allocations: 27.42 kB / 318 MB, free: 6.922 MB / 266.7 MB Notification: Performance of SimCode: time 1.671e-06/0.1004, allocations: 0 / 318 MB, free: 6.922 MB / 266.7 MB Notification: Performance of Templates: time 0.005321/0.1058, allocations: 2.323 MB / 320.3 MB, free: 4.602 MB / 266.7 MB