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_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 1.87/1.87, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003578/0.000358, allocations: 8 kB / 263.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08132/0.0817, allocations: 44.52 MB / 308.3 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002306/0.08406, allocations: 1.378 MB / 309.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007036/0.0848, allocations: 263.2 kB / 310 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.08493, allocations: 4 kB / 310 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001056/0.08505, allocations: 19.8 kB / 310 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.362e-05/0.08513, allocations: 11.98 kB / 310 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003887/0.08553, allocations: 95.81 kB / 310.1 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002966/0.08585, allocations: 167.7 kB / 310.3 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002983/0.08616, allocations: 145.8 kB / 310.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.792e-05/0.08628, allocations: 59.78 kB / 310.5 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001355/0.08643, allocations: 79.61 kB / 310.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.284e-05/0.08647, allocations: 8 kB / 310.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.789e-05/0.08655, allocations: 12 kB / 310.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.156e-05/0.08664, allocations: 43.89 kB / 310.6 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.991e-05/0.08672, allocations: 57.58 kB / 310.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002527/0.08699, allocations: 151.7 kB / 310.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.017e-06/0.087, allocations: 0 / 310.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.103e-06/0.08702, allocations: 0 / 310.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.08703, allocations: 4 kB / 310.8 MB, free: 14.55 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.0006965/0.08774, allocations: 442.3 kB / 311.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.08779, allocations: 12.03 kB / 311.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.248e-05/0.08789, allocations: 27.66 kB / 311.3 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003166/0.08822, allocations: 230.7 kB / 311.5 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.264e-05/0.08828, allocations: 20.56 kB / 311.5 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.516e-05/0.08835, allocations: 28 kB / 311.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000577/0.08893, allocations: 262 kB / 311.8 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.08897, allocations: 0 / 311.8 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.046e-05/0.08902, allocations: 15.98 kB / 311.8 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.08904, allocations: 4 kB / 311.8 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004448/0.0895, allocations: 169.5 kB / 312 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00152/0.09103, allocations: 0.956 MB / 313 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003757/0.09143, allocations: 155.4 kB / 313.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.104e-05/0.09147, allocations: 192 / 313.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002829/0.09176, allocations: 119.4 kB / 313.2 MB, free: 11.94 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 5.447e-06/0.09179, allocations: 4 kB / 313.2 MB, free: 11.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005596/0.09236, allocations: 217.2 kB / 313.4 MB, free: 11.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.09243, allocations: 55.41 kB / 313.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.09261, allocations: 149.6 kB / 313.6 MB, free: 11.49 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.623e-05/0.09267, allocations: 33.7 kB / 313.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.09284, allocations: 214.9 kB / 313.9 MB, free: 11.24 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.979e-05/0.09292, allocations: 55.25 kB / 313.9 MB, free: 11.19 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.868e-05/0.09295, allocations: 4 kB / 313.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.09314, allocations: 330.8 kB / 314.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001686/0.09332, allocations: 60.62 kB / 314.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000251/0.09358, allocations: 137.8 kB / 314.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001816/0.09378, allocations: 64 kB / 314.5 MB, free: 10.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.937e-06/0.0938, allocations: 0 / 314.5 MB, free: 10.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00058/0.0944, allocations: 257.5 kB / 314.8 MB, free: 10.31 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.09444, allocations: 7.953 kB / 314.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.09446, allocations: 4 kB / 314.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.09449, allocations: 4 kB / 314.8 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001754/0.09467, allocations: 31.92 kB / 314.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.0947, allocations: 4 kB / 314.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.09487, allocations: 35.67 kB / 314.9 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.779e-05/0.09492, 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.0002047/0.09514, allocations: 152.4 kB / 315 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.544e-05/0.09519, allocations: 11.89 kB / 315 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004621/0.09566, allocations: 202.2 kB / 315.2 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.09569, allocations: 4 kB / 315.2 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.0957, allocations: 0 / 315.2 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.944e-06/0.09572, allocations: 0 / 315.2 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/0.09676, allocations: 0.5915 MB / 315.8 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.615e-06/0.09679, allocations: 3.938 kB / 315.8 MB, free: 9.168 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.09691, allocations: 19.98 kB / 315.9 MB, free: 9.148 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.513e-06/0.09693, allocations: 11.92 kB / 315.9 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.09696, allocations: 0 / 315.9 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.438e-06/0.09697, allocations: 0 / 315.9 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.831e-06/0.09698, allocations: 0 / 315.9 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004399/0.09743, allocations: 275.3 kB / 316.1 MB, free: 8.852 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.872e-05/0.09752, allocations: 96.86 kB / 316.2 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.339e-05/0.09756, allocations: 0 / 316.2 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.09771, allocations: 15.92 kB / 316.2 MB, free: 8.723 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.217e-05/0.09781, allocations: 27.91 kB / 316.3 MB, free: 8.695 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.113e-05/0.09784, allocations: 4 kB / 316.3 MB, free: 8.691 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.883e-05/0.09794, allocations: 99.83 kB / 316.4 MB, free: 8.594 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.43e-07/0.09795, allocations: 0 / 316.4 MB, free: 8.594 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004362/0.0984, allocations: 47.84 kB / 316.4 MB, free: 8.547 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,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.000177/0.09859, allocations: 115.2 kB / 316.5 MB, free: 8.426 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000442/0.09905, allocations: 171.8 kB / 316.7 MB, free: 8.258 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.633e-06/0.09907, allocations: 0 / 316.7 MB, free: 8.258 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001833/0.09926, allocations: 83.84 kB / 316.8 MB, free: 8.176 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002369/0.09951, allocations: 12 kB / 316.8 MB, free: 8.164 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008014/0.1003, allocations: 421.9 kB / 317.2 MB, free: 7.723 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000441/0.1008, allocations: 0.7367 MB / 317.9 MB, free: 6.961 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.384e-05/0.1009, allocations: 23.44 kB / 318 MB, free: 6.938 MB / 266.7 MB Notification: Performance of SimCode: time 1.841e-06/0.1009, allocations: 0 / 318 MB, free: 6.938 MB / 266.7 MB Notification: Performance of Templates: time 0.005434/0.1063, allocations: 2.317 MB / 320.3 MB, free: 4.621 MB / 266.7 MB