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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.588/1.588, allocations: 171.3 MB / 179.2 MB, free: 7.586 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.216e-05/2.221e-05, allocations: 4 kB / 222.5 MB, free: 8.734 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06866/0.06871, allocations: 38.78 MB / 261.3 MB, free: 1.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2774/0.3462, allocations: 65.46 MB / 326.7 MB, free: 6.531 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001924/0.3464, allocations: 64.91 kB / 326.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01045/0.3569, allocations: 2.886 MB / 329.7 MB, free: 4.031 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.046e-06/0.3569, allocations: 4 kB / 329.7 MB, free: 4.027 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.58e-05/0.357, allocations: 4 kB / 329.7 MB, free: 4.023 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.0006293/0.3576, allocations: 433.9 kB / 330.1 MB, free: 3.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.3577, allocations: 8.031 kB / 330.1 MB, free: 3.562 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.831e-05/0.3578, allocations: 23.72 kB / 330.1 MB, free: 3.539 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003147/0.3581, allocations: 226.1 kB / 330.4 MB, free: 3.293 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.425e-05/0.3581, allocations: 11.38 kB / 330.4 MB, free: 3.285 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.951e-05/0.3582, allocations: 16 kB / 330.4 MB, free: 3.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000384/0.3586, allocations: 151.5 kB / 330.5 MB, free: 3.172 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000466/0.3591, allocations: 226.1 kB / 330.8 MB, free: 2.977 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.3591, allocations: 0 / 330.8 MB, free: 2.977 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.092e-05/0.3591, allocations: 3.984 kB / 330.8 MB, free: 2.973 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.3592, allocations: 8 kB / 330.8 MB, free: 2.965 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00139/0.3606, allocations: 0.8905 MB / 331.7 MB, free: 2.125 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003079/0.3609, allocations: 132.7 kB / 331.8 MB, free: 2.027 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001371/0.361, allocations: 67.73 kB / 331.9 MB, free: 1.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.3611, allocations: 192 / 331.9 MB, free: 1.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002253/0.3613, allocations: 115.3 kB / 332 MB, free: 1.875 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 2.774e-06/0.3613, allocations: 0 / 332 MB, free: 1.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003863/0.3617, allocations: 142.4 kB / 332.1 MB, free: 1.754 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.3618, allocations: 62.58 kB / 332.2 MB, free: 1.684 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001516/0.362, allocations: 146.6 kB / 332.3 MB, free: 1.551 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.061e-05/0.362, allocations: 29.7 kB / 332.3 MB, free: 1.516 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.3622, allocations: 199.8 kB / 332.5 MB, free: 1.324 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.666e-05/0.3623, allocations: 56.58 kB / 332.6 MB, free: 1.277 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.171e-05/0.3623, allocations: 0 / 332.6 MB, free: 1.277 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.3625, allocations: 325.4 kB / 332.9 MB, free: 0.957 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.3626, allocations: 55.64 kB / 333 MB, free: 0.918 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002036/0.3628, allocations: 123.8 kB / 333.1 MB, free: 0.793 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001496/0.363, allocations: 59.66 kB / 333.1 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.562e-06/0.363, allocations: 3.938 kB / 333.1 MB, free: 0.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004693/0.3635, allocations: 218.9 kB / 333.4 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.3635, allocations: 8 kB / 333.4 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.989e-06/0.3636, allocations: 0 / 333.4 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.3636, allocations: 4 kB / 333.4 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001772/0.3638, allocations: 35.3 kB / 333.4 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.3638, allocations: 7.938 kB / 333.4 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001632/0.364, allocations: 12.2 kB / 333.4 MB, free: 0.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.044e-05/0.364, allocations: 23.39 kB / 333.4 MB, free: 492 kB / 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,SetBoolean1.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete 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.0001335/0.3642, allocations: 123.7 kB / 333.6 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.291e-05/0.3642, allocations: 11.81 kB / 333.6 MB, free: 352 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004429/0.3647, allocations: 168.5 kB / 333.7 MB, free: 212 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.587e-06/0.3647, allocations: 4 kB / 333.7 MB, free: 208 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.513e-06/0.3647, allocations: 4 kB / 333.8 MB, free: 204 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.334e-06/0.3647, allocations: 3.984 kB / 333.8 MB, free: 200 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009613/0.3657, allocations: 0.5264 MB / 334.3 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.3657, allocations: 0 / 334.3 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.889e-05/0.3658, allocations: 15.94 kB / 334.3 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.679e-06/0.3659, allocations: 0 / 334.3 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.3659, allocations: 7.859 kB / 334.3 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.604e-06/0.3659, allocations: 4 kB / 334.3 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.637e-06/0.3659, allocations: 3.953 kB / 334.3 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000409/0.3663, allocations: 247.9 kB / 334.6 MB, free: 15.43 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.96e-05/0.3664, allocations: 88.92 kB / 334.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.447e-05/0.3665, allocations: 3.984 kB / 334.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.3666, allocations: 4 kB / 334.7 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.455e-05/0.3667, allocations: 19.41 kB / 334.7 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.29e-05/0.3668, allocations: 19.88 kB / 334.7 MB, free: 15.28 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.642e-05/0.3669, allocations: 93.59 kB / 334.8 MB, free: 15.2 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.19e-07/0.3669, allocations: 4 kB / 334.8 MB, free: 15.19 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004353/0.3673, allocations: 32 kB / 334.8 MB, free: 15.16 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) * 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.0001763/0.3675, allocations: 106.4 kB / 334.9 MB, free: 15.05 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000384/0.3679, allocations: 161.6 kB / 335.1 MB, free: 14.93 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.59e-06/0.3679, allocations: 0 / 335.1 MB, free: 14.93 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001563/0.3681, allocations: 76.56 kB / 335.2 MB, free: 14.88 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.3684, allocations: 15.92 kB / 335.2 MB, free: 14.86 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005779/0.369, allocations: 251.4 kB / 335.4 MB, free: 14.61 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004517/0.3694, allocations: 0.7477 MB / 336.2 MB, free: 13.84 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.903e-05/0.3695, allocations: 22.81 kB / 336.2 MB, free: 13.82 MB / 282.7 MB Notification: Performance of SimCode: time 1.438e-06/0.3695, allocations: 4 kB / 336.2 MB, free: 13.82 MB / 282.7 MB Notification: Performance of Templates: time 0.005311/0.3749, allocations: 2.288 MB / 338.5 MB, free: 11.55 MB / 282.7 MB