Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.799/1.799, allocations: 171.1 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004788/0.0004791, allocations: 8 kB / 233.8 MB, free: 1 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0865/0.08701, allocations: 38.78 MB / 272.5 MB, free: 10.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3697/0.4568, allocations: 66.2 MB / 338.7 MB, free: 0.918 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000255/0.4572, allocations: 71.97 kB / 338.8 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0118/0.469, allocations: 2.942 MB / 341.8 MB, free: 13.9 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.469, allocations: 0 / 341.8 MB, free: 13.9 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.78e-05/0.4691, allocations: 4.875 kB / 341.8 MB, free: 13.89 MB / 282.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.0006843/0.4698, allocations: 447.6 kB / 342.2 MB, free: 13.41 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.4698, allocations: 8.031 kB / 342.2 MB, free: 13.4 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.878e-05/0.4699, allocations: 23.8 kB / 342.2 MB, free: 13.38 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003174/0.4702, allocations: 218.8 kB / 342.4 MB, free: 13.12 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.226e-05/0.4703, allocations: 28.55 kB / 342.5 MB, free: 13.1 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.502e-05/0.4704, allocations: 27.95 kB / 342.5 MB, free: 13.07 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006256/0.471, allocations: 262 kB / 342.8 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.471, allocations: 3.938 kB / 342.8 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.3e-05/0.4711, allocations: 8 kB / 342.8 MB, free: 12.78 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.4711, allocations: 7.984 kB / 342.8 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004892/0.4716, allocations: 169.6 kB / 342.9 MB, free: 12.61 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.4731, allocations: 0.9445 MB / 343.9 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004347/0.4736, allocations: 155.3 kB / 344 MB, free: 11.43 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.4736, allocations: 8.188 kB / 344 MB, free: 11.42 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002789/0.4739, allocations: 115.5 kB / 344.2 MB, free: 11.29 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 2.945e-06/0.4739, allocations: 0 / 344.2 MB, free: 11.29 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006195/0.4745, allocations: 209.3 kB / 344.4 MB, free: 11.08 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.219e-05/0.4746, allocations: 55.41 kB / 344.4 MB, free: 11.02 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001594/0.4748, allocations: 157.6 kB / 344.6 MB, free: 10.85 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.69e-05/0.4748, allocations: 37.69 kB / 344.6 MB, free: 10.81 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.475, allocations: 211 kB / 344.8 MB, free: 10.6 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.955e-05/0.4751, allocations: 55.25 kB / 344.9 MB, free: 10.54 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.73e-05/0.4751, allocations: 4 kB / 344.9 MB, free: 10.54 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.4752, allocations: 328.8 kB / 345.2 MB, free: 10.21 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001901/0.4754, allocations: 64.56 kB / 345.3 MB, free: 10.14 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002566/0.4757, allocations: 133.9 kB / 345.4 MB, free: 9.984 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000201/0.4759, allocations: 71.97 kB / 345.5 MB, free: 9.914 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.4759, allocations: 0 / 345.5 MB, free: 9.914 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005792/0.4765, allocations: 249.3 kB / 345.7 MB, free: 9.664 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.4766, allocations: 4 kB / 345.7 MB, free: 9.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.4766, allocations: 4 kB / 345.7 MB, free: 9.656 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.4766, allocations: 4 kB / 345.7 MB, free: 9.652 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002547/0.4769, allocations: 39.88 kB / 345.7 MB, free: 9.613 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.556e-05/0.4769, allocations: 7.984 kB / 345.8 MB, free: 9.605 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001597/0.4771, allocations: 20.12 kB / 345.8 MB, free: 9.586 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.924e-05/0.4771, allocations: 12 kB / 345.8 MB, free: 9.574 MB / 282.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,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,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.enableFire,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,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.0002008/0.4773, allocations: 156.3 kB / 345.9 MB, free: 9.414 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.62e-05/0.4774, allocations: 23.75 kB / 346 MB, free: 9.391 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005005/0.4779, allocations: 186.4 kB / 346.1 MB, free: 9.203 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.4779, allocations: 0 / 346.1 MB, free: 9.203 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/0.4779, allocations: 7.953 kB / 346.2 MB, free: 9.195 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.4779, allocations: 11.92 kB / 346.2 MB, free: 9.184 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.479, allocations: 0.5681 MB / 346.7 MB, free: 8.555 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.4791, allocations: 0 / 346.7 MB, free: 8.555 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001388/0.4792, allocations: 23.92 kB / 346.8 MB, free: 8.531 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/0.4792, allocations: 3.953 kB / 346.8 MB, free: 8.527 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.4793, allocations: 0 / 346.8 MB, free: 8.527 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.4793, allocations: 4 kB / 346.8 MB, free: 8.523 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.4793, allocations: 4 kB / 346.8 MB, free: 8.52 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006397/0.4799, allocations: 271.6 kB / 347 MB, free: 8.238 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.4801, allocations: 89.02 kB / 347.1 MB, free: 8.133 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.881e-05/0.4801, allocations: 7.953 kB / 347.1 MB, free: 8.125 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002237/0.4804, allocations: 11.98 kB / 347.1 MB, free: 8.113 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.4805, allocations: 19.97 kB / 347.2 MB, free: 8.094 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.83e-05/0.4806, allocations: 7.938 kB / 347.2 MB, free: 8.086 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.00013/0.4807, allocations: 104.1 kB / 347.3 MB, free: 7.984 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.52e-07/0.4807, allocations: 0 / 347.3 MB, free: 7.984 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008628/0.4816, allocations: 51.88 kB / 347.3 MB, free: 7.934 MB / 282.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.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,SetBoolean1.y,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.0002726/0.4819, allocations: 115 kB / 347.4 MB, free: 7.812 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005962/0.4825, allocations: 179.7 kB / 347.6 MB, free: 7.637 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.4825, allocations: 0.5625 kB / 347.6 MB, free: 7.637 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002082/0.4828, allocations: 83.91 kB / 347.7 MB, free: 7.555 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.483, allocations: 16.61 kB / 347.7 MB, free: 7.539 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009151/0.484, allocations: 409 kB / 348.1 MB, free: 7.109 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003929/0.4844, allocations: 0.7444 MB / 348.8 MB, free: 6.34 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.4845, allocations: 23.44 kB / 348.9 MB, free: 6.316 MB / 282.7 MB Notification: Performance of SimCode: time 1.042e-06/0.4845, allocations: 0 / 348.9 MB, free: 6.316 MB / 282.7 MB Notification: Performance of Templates: time 0.006141/0.4907, allocations: 2.309 MB / 351.2 MB, free: 4.008 MB / 282.7 MB