Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 1.639/1.639, allocations: 171.2 MB / 186.7 MB, free: 1.113 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003437/0.0003439, allocations: 8 kB / 233.1 MB, free: 0.9766 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06738/0.06775, allocations: 38.78 MB / 271.9 MB, free: 10.11 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.0021/0.06989, allocations: 1.382 MB / 273.3 MB, free: 8.711 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006804/0.0706, allocations: 263.2 kB / 273.6 MB, free: 8.453 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.466e-05/0.07071, allocations: 7.938 kB / 273.6 MB, free: 8.445 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.07083, allocations: 19.86 kB / 273.6 MB, free: 8.426 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.977e-05/0.0709, allocations: 11.92 kB / 273.6 MB, free: 8.414 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003562/0.07127, allocations: 87.89 kB / 273.7 MB, free: 8.328 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002782/0.07157, allocations: 163.7 kB / 273.8 MB, free: 8.168 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002865/0.07187, allocations: 137.9 kB / 274 MB, free: 8.023 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.863e-05/0.07198, allocations: 75.7 kB / 274 MB, free: 7.949 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.07213, allocations: 79.66 kB / 274.1 MB, free: 7.871 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.011e-05/0.07217, allocations: 8 kB / 274.1 MB, free: 7.863 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.436e-05/0.07225, allocations: 16 kB / 274.2 MB, free: 7.848 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.294e-05/0.07232, allocations: 35.84 kB / 274.2 MB, free: 7.812 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.32e-05/0.07241, allocations: 57.58 kB / 274.2 MB, free: 7.75 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002435/0.07266, allocations: 155.6 kB / 274.4 MB, free: 7.598 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.477e-06/0.07268, allocations: 0 / 274.4 MB, free: 7.598 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.168e-06/0.0727, allocations: 0 / 274.4 MB, free: 7.598 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.976e-06/0.07271, allocations: 0 / 274.4 MB, free: 7.598 MB / 234.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.0006689/0.0734, allocations: 451.6 kB / 274.8 MB, free: 7.109 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.07344, allocations: 8.031 kB / 274.8 MB, free: 7.102 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.564e-05/0.07352, allocations: 19.81 kB / 274.9 MB, free: 7.082 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003054/0.07384, allocations: 234.7 kB / 275.1 MB, free: 6.812 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.436e-05/0.0739, allocations: 20.56 kB / 275.1 MB, free: 6.793 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.222e-05/0.07396, allocations: 24 kB / 275.1 MB, free: 6.77 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005691/0.07454, allocations: 273.9 kB / 275.4 MB, free: 6.48 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.07457, allocations: 0 / 275.4 MB, free: 6.48 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.011e-05/0.07461, allocations: 8 kB / 275.4 MB, free: 6.473 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.421e-06/0.07463, allocations: 4 kB / 275.4 MB, free: 6.469 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004381/0.07507, allocations: 169.6 kB / 275.6 MB, free: 6.305 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001486/0.07658, allocations: 0.9637 MB / 276.5 MB, free: 5.27 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003617/0.07696, allocations: 155.3 kB / 276.7 MB, free: 5.109 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.077, allocations: 4.188 kB / 276.7 MB, free: 5.105 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002732/0.07728, allocations: 111.5 kB / 276.8 MB, free: 4.984 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 2.771e-06/0.0773, allocations: 0 / 276.8 MB, free: 4.984 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005417/0.07786, allocations: 217.3 kB / 277 MB, free: 4.766 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.101e-05/0.07793, allocations: 59.41 kB / 277.1 MB, free: 4.695 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001701/0.07811, allocations: 153.6 kB / 277.2 MB, free: 4.535 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.892e-05/0.07818, allocations: 37.7 kB / 277.3 MB, free: 4.492 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.07833, allocations: 202.9 kB / 277.5 MB, free: 4.293 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.592e-05/0.07842, allocations: 59.25 kB / 277.5 MB, free: 4.234 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.688e-05/0.07845, allocations: 4 kB / 277.5 MB, free: 4.23 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.07863, allocations: 326.8 kB / 277.8 MB, free: 3.902 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/0.07881, allocations: 64.62 kB / 277.9 MB, free: 3.84 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/0.07905, allocations: 133.9 kB / 278 MB, free: 3.68 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001808/0.07924, allocations: 75.92 kB / 278.1 MB, free: 3.605 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.385e-06/0.07926, allocations: 0 / 278.1 MB, free: 3.605 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005358/0.07981, allocations: 241.2 kB / 278.3 MB, free: 3.363 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.07984, allocations: 15.5 kB / 278.4 MB, free: 3.352 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.07987, allocations: 7.984 kB / 278.4 MB, free: 3.344 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.07989, allocations: 4 kB / 278.4 MB, free: 3.34 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.08007, allocations: 39.86 kB / 278.4 MB, free: 3.301 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/0.0801, allocations: 7.953 kB / 278.4 MB, free: 3.293 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001474/0.08026, allocations: 31.69 kB / 278.5 MB, free: 3.262 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.538e-05/0.08031, allocations: 11.98 kB / 278.5 MB, free: 3.25 MB / 234.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.0001973/0.08052, allocations: 152.4 kB / 278.6 MB, free: 3.094 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.901e-05/0.08056, allocations: 11.91 kB / 278.6 MB, free: 3.082 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004379/0.08101, allocations: 190.3 kB / 278.8 MB, free: 2.891 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.904e-06/0.08103, allocations: 4 kB / 278.8 MB, free: 2.887 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.819e-06/0.08105, allocations: 0 / 278.8 MB, free: 2.887 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.271e-06/0.08107, allocations: 7.891 kB / 278.8 MB, free: 2.879 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/0.08208, allocations: 0.5875 MB / 279.4 MB, free: 2.23 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.265e-06/0.0821, allocations: 4 kB / 279.4 MB, free: 2.227 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.947e-05/0.0822, allocations: 8 kB / 279.4 MB, free: 2.219 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.645e-06/0.08222, allocations: 7.953 kB / 279.4 MB, free: 2.211 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.303e-05/0.08226, allocations: 7.984 kB / 279.4 MB, free: 2.203 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.08227, allocations: 0 / 279.4 MB, free: 2.203 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.096e-06/0.08228, allocations: 4 kB / 279.4 MB, free: 2.199 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004197/0.08271, allocations: 271.6 kB / 279.7 MB, free: 1.918 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.14e-05/0.0828, allocations: 92.94 kB / 279.8 MB, free: 1.809 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.641e-05/0.08285, allocations: 11.95 kB / 279.8 MB, free: 1.797 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.08299, allocations: 8 kB / 279.8 MB, free: 1.789 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.977e-05/0.08308, allocations: 23.95 kB / 279.8 MB, free: 1.766 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.116e-05/0.08312, allocations: 8 kB / 279.8 MB, free: 1.758 MB / 234.7 MB Notification: Performance of sorting global known variables: time 8.567e-05/0.08321, allocations: 99.77 kB / 279.9 MB, free: 1.66 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.16e-07/0.08322, allocations: 0 / 279.9 MB, free: 1.66 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0004074/0.08364, allocations: 55.75 kB / 280 MB, free: 1.605 MB / 234.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,transition1.enableFire,step.localActive,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.0001754/0.08383, allocations: 115.1 kB / 280.1 MB, free: 1.48 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0004213/0.08426, allocations: 183.7 kB / 280.3 MB, free: 1.301 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.08428, allocations: 0 / 280.3 MB, free: 1.301 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001861/0.08448, allocations: 71.92 kB / 280.4 MB, free: 1.23 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002407/0.08473, allocations: 19.98 kB / 280.4 MB, free: 1.211 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007643/0.08551, allocations: 409.2 kB / 280.8 MB, free: 0.7852 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004346/0.08596, allocations: 0.7406 MB / 281.5 MB, free: 20 kB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1648/0.2508, allocations: 26.16 kB / 281.5 MB, free: 15.04 MB / 234.7 MB Notification: Performance of SimCode: time 2.111e-06/0.2508, allocations: 4.984 kB / 281.6 MB, free: 15.04 MB / 234.7 MB Notification: Performance of Templates: time 0.005502/0.2563, allocations: 2.29 MB / 283.8 MB, free: 14.93 MB / 234.7 MB