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.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.593/1.593, allocations: 171.2 MB / 186.8 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003586/0.0003587, allocations: 8 kB / 233.2 MB, free: 3.031 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0688/0.06918, allocations: 38.78 MB / 272 MB, free: 12.18 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.289/0.3582, allocations: 65.57 MB / 337.6 MB, free: 8.324 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003752/0.3587, allocations: 63.41 kB / 337.6 MB, free: 8.293 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01926/0.3779, allocations: 2.794 MB / 340.4 MB, free: 5.855 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.885e-06/0.378, allocations: 0 / 340.4 MB, free: 5.855 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.688e-05/0.3781, allocations: 8.875 kB / 340.4 MB, free: 5.848 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001293/0.3794, allocations: 451.5 kB / 340.9 MB, free: 5.371 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.505e-05/0.3795, allocations: 8.031 kB / 340.9 MB, free: 5.363 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.3797, allocations: 19.81 kB / 340.9 MB, free: 5.344 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006091/0.3803, allocations: 221.3 kB / 341.1 MB, free: 5.102 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.283e-05/0.3804, allocations: 22 kB / 341.1 MB, free: 5.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.3805, allocations: 26.45 kB / 341.2 MB, free: 5.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/0.3816, allocations: 231 kB / 341.4 MB, free: 4.895 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/0.3817, allocations: 4 kB / 341.4 MB, free: 4.891 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.911e-05/0.3818, allocations: 11.69 kB / 341.4 MB, free: 4.887 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.746e-05/0.3818, allocations: 4 kB / 341.4 MB, free: 4.883 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009087/0.3827, allocations: 166.1 kB / 341.6 MB, free: 4.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002494/0.3853, allocations: 0.6775 MB / 342.3 MB, free: 4.152 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008198/0.3861, allocations: 170.3 kB / 342.4 MB, free: 4.031 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.402e-05/0.3862, allocations: 8.188 kB / 342.4 MB, free: 4.023 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005211/0.3867, allocations: 115.7 kB / 342.5 MB, free: 3.926 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 6.915e-06/0.3868, allocations: 4 kB / 342.5 MB, free: 3.922 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.001176/0.388, allocations: 214.2 kB / 342.8 MB, free: 3.754 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.591e-05/0.3881, allocations: 59.39 kB / 342.8 MB, free: 3.684 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002772/0.3884, allocations: 132.1 kB / 342.9 MB, free: 3.559 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.221e-05/0.3885, allocations: 36.45 kB / 343 MB, free: 3.523 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.3887, allocations: 198.1 kB / 343.2 MB, free: 3.336 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.3888, allocations: 55 kB / 343.2 MB, free: 3.289 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.459e-05/0.3889, allocations: 6.5 kB / 343.2 MB, free: 3.289 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002951/0.3892, allocations: 326.4 kB / 343.5 MB, free: 2.965 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003764/0.3896, allocations: 61.12 kB / 343.6 MB, free: 2.922 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004892/0.3901, allocations: 134.7 kB / 343.7 MB, free: 2.793 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003915/0.3906, allocations: 74.48 kB / 343.8 MB, free: 2.746 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.574e-06/0.3906, allocations: 0 / 343.8 MB, free: 2.746 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001136/0.3917, allocations: 235.8 kB / 344 MB, free: 2.562 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.565e-05/0.3918, allocations: 8 kB / 344 MB, free: 2.555 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.3918, allocations: 0 / 344 MB, free: 2.555 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.11e-05/0.3919, allocations: 4 kB / 344.1 MB, free: 2.551 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003538/0.3923, allocations: 31.36 kB / 344.1 MB, free: 2.523 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.803e-05/0.3923, allocations: 4 kB / 344.1 MB, free: 2.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003023/0.3926, allocations: 22.48 kB / 344.1 MB, free: 2.504 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-05/0.3927, allocations: 8 kB / 344.1 MB, free: 2.496 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0003868/0.3931, allocations: 162.7 kB / 344.3 MB, free: 2.348 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.038e-05/0.3932, allocations: 15.81 kB / 344.3 MB, free: 2.332 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008941/0.3942, allocations: 193.7 kB / 344.5 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.707e-05/0.3942, allocations: 7.984 kB / 344.5 MB, free: 2.176 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.3943, allocations: 0 / 344.5 MB, free: 2.176 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.752e-05/0.3943, allocations: 7.922 kB / 344.5 MB, free: 2.168 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002083/0.3964, allocations: 0.5652 MB / 345.1 MB, free: 1.637 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.297e-05/0.3964, allocations: 3.984 kB / 345.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002133/0.3967, allocations: 12 kB / 345.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.624e-06/0.3967, allocations: 0 / 345.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.562e-05/0.3968, allocations: 3.312 kB / 345.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.03e-05/0.3968, allocations: 7.984 kB / 345.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-05/0.3968, allocations: 7.891 kB / 345.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008922/0.3977, allocations: 273.4 kB / 345.4 MB, free: 1.363 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.3979, allocations: 96.84 kB / 345.5 MB, free: 1.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.656e-05/0.398, allocations: 3.062 kB / 345.5 MB, free: 1.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000307/0.3983, allocations: 10.88 kB / 345.5 MB, free: 1.242 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.3985, allocations: 23.08 kB / 345.5 MB, free: 1.223 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.383e-05/0.3986, allocations: 14.83 kB / 345.5 MB, free: 1.211 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001565/0.3988, allocations: 94.14 kB / 345.6 MB, free: 1.125 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.029e-06/0.3988, allocations: 0 / 345.6 MB, free: 1.125 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001003/0.3998, allocations: 42.06 kB / 345.6 MB, free: 1.09 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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0003209/0.4002, allocations: 117 kB / 345.8 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008908/0.4011, allocations: 180.9 kB / 345.9 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.914e-06/0.4011, allocations: 0 / 345.9 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000389/0.4015, allocations: 82.84 kB / 346 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005316/0.4021, allocations: 13.88 kB / 346 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001528/0.4036, allocations: 404.2 kB / 346.4 MB, free: 380 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008073/0.4045, allocations: 0.7289 MB / 347.1 MB, free: 15.62 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.4047, allocations: 27.38 kB / 347.2 MB, free: 15.59 MB / 282.7 MB Notification: Performance of SimCode: time 2.839e-06/0.4047, allocations: 0 / 347.2 MB, free: 15.59 MB / 282.7 MB Notification: Performance of Templates: time 0.007287/0.412, allocations: 2.268 MB / 349.4 MB, free: 13.35 MB / 282.7 MB