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_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.579/1.579, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.0003491, allocations: 8 kB / 233.2 MB, free: 3.02 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06751/0.06788, allocations: 38.76 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.275/0.3429, allocations: 66.2 MB / 338.2 MB, free: 7.738 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000195/0.3431, allocations: 66.84 kB / 338.3 MB, free: 7.707 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01064/0.3538, allocations: 2.956 MB / 341.2 MB, free: 5.133 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.238e-06/0.3538, allocations: 0 / 341.2 MB, free: 5.133 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.772e-05/0.3539, allocations: 8.875 kB / 341.2 MB, free: 5.125 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.0006741/0.3546, allocations: 455.2 kB / 341.7 MB, free: 4.648 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.3546, allocations: 8.031 kB / 341.7 MB, free: 4.641 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.411e-05/0.3547, allocations: 23.72 kB / 341.7 MB, free: 4.617 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003056/0.355, allocations: 223.8 kB / 341.9 MB, free: 4.375 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.057e-05/0.3551, allocations: 22.56 kB / 341.9 MB, free: 4.363 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.269e-05/0.3551, allocations: 26.7 kB / 342 MB, free: 4.344 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005475/0.3557, allocations: 263.6 kB / 342.2 MB, free: 4.129 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.3557, allocations: 0 / 342.2 MB, free: 4.129 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.3558, allocations: 10.94 kB / 342.2 MB, free: 4.125 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.998e-06/0.3558, allocations: 8 kB / 342.2 MB, free: 4.117 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004293/0.3562, allocations: 177.8 kB / 342.4 MB, free: 3.996 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001402/0.3576, allocations: 0.9425 MB / 343.4 MB, free: 3.105 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003634/0.358, allocations: 154.2 kB / 343.5 MB, free: 2.992 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.3581, allocations: 8.266 kB / 343.5 MB, free: 2.984 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002377/0.3583, allocations: 115 kB / 343.6 MB, free: 2.887 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 2.646e-06/0.3583, allocations: 0 / 343.6 MB, free: 2.887 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005401/0.3589, allocations: 216.2 kB / 343.8 MB, free: 2.715 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.582e-05/0.359, allocations: 59.03 kB / 343.9 MB, free: 2.648 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.3591, allocations: 143.8 kB / 344 MB, free: 2.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.673e-05/0.3592, allocations: 40.44 kB / 344.1 MB, free: 2.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001477/0.3593, allocations: 206.1 kB / 344.3 MB, free: 2.281 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.985e-05/0.3594, allocations: 58.44 kB / 344.3 MB, free: 2.234 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.853e-05/0.3594, allocations: 10.69 kB / 344.4 MB, free: 2.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.3596, allocations: 317.8 kB / 344.7 MB, free: 1.914 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.3598, allocations: 65.81 kB / 344.7 MB, free: 1.867 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002247/0.36, allocations: 135.7 kB / 344.9 MB, free: 1.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/0.3602, allocations: 81.09 kB / 344.9 MB, free: 1.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.605e-06/0.3602, allocations: 0 / 344.9 MB, free: 1.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005323/0.3608, allocations: 241.1 kB / 345.2 MB, free: 1.492 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.3608, allocations: 4 kB / 345.2 MB, free: 1.488 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.3608, allocations: 4 kB / 345.2 MB, free: 1.484 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.3609, allocations: 4 kB / 345.2 MB, free: 1.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.3611, allocations: 47.27 kB / 345.2 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.3611, allocations: 8 kB / 345.2 MB, free: 1.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001632/0.3613, allocations: 11.75 kB / 345.3 MB, free: 1.422 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.802e-05/0.3613, allocations: 11.12 kB / 345.3 MB, free: 1.414 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,$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,greaterEqual.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.0001946/0.3615, allocations: 156.5 kB / 345.4 MB, free: 1.273 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-05/0.3616, allocations: 19.81 kB / 345.4 MB, free: 1.254 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004517/0.362, allocations: 190.4 kB / 345.6 MB, free: 1.117 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.676e-06/0.3621, allocations: 15.92 kB / 345.6 MB, free: 1.102 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.8e-06/0.3621, allocations: 3.953 kB / 345.6 MB, free: 1.098 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.101e-06/0.3621, allocations: 3.984 kB / 345.6 MB, free: 1.094 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009868/0.3631, allocations: 0.5721 MB / 346.2 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.58e-06/0.3631, allocations: 0 / 346.2 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.574e-05/0.3632, allocations: 15.88 kB / 346.2 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.411e-06/0.3632, allocations: 3.953 kB / 346.2 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.987e-05/0.3633, allocations: 11.06 kB / 346.2 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.584e-06/0.3633, allocations: 3.984 kB / 346.2 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.002e-06/0.3633, allocations: 0 / 346.2 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004266/0.3637, allocations: 271.6 kB / 346.5 MB, free: 284 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.084e-05/0.3638, allocations: 96.84 kB / 346.6 MB, free: 168 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.568e-05/0.3639, allocations: 11.64 kB / 346.6 MB, free: 160 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.364, allocations: 6.938 kB / 346.6 MB, free: 156 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.384e-05/0.3641, allocations: 27.91 kB / 346.7 MB, free: 132 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.209e-05/0.3642, allocations: 7.984 kB / 346.7 MB, free: 124 kB / 266.7 MB Notification: Performance of sorting global known variables: time 8.769e-05/0.3642, allocations: 99.16 kB / 346.8 MB, free: 32 kB / 266.7 MB Notification: Performance of sort global known variables: time 1.041e-06/0.3643, allocations: 0 / 346.8 MB, free: 32 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.000415/0.3647, allocations: 39.25 kB / 346.8 MB, free: 0 / 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.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,greaterEqual.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.0002054/0.3649, allocations: 118.7 kB / 346.9 MB, free: 15.88 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004139/0.3653, allocations: 185.7 kB / 347.1 MB, free: 15.73 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.647e-06/0.3654, allocations: 0 / 347.1 MB, free: 15.73 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001705/0.3655, allocations: 76.48 kB / 347.2 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.3658, allocations: 15.48 kB / 347.2 MB, free: 15.67 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008098/0.3666, allocations: 410.3 kB / 347.6 MB, free: 15.27 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004469/0.3671, allocations: 0.7443 MB / 348.3 MB, free: 14.5 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.282e-05/0.3672, allocations: 27.42 kB / 348.4 MB, free: 14.48 MB / 282.7 MB Notification: Performance of SimCode: time 1.29e-06/0.3672, allocations: 0 / 348.4 MB, free: 14.48 MB / 282.7 MB Notification: Performance of Templates: time 0.005301/0.3725, allocations: 2.327 MB / 350.7 MB, free: 12.17 MB / 282.7 MB