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/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,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.714/1.714, allocations: 171.3 MB / 179.2 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 1.88e-05/1.892e-05, allocations: 4 kB / 222.5 MB, free: 4.773 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2094/0.2095, allocations: 38.77 MB / 261.3 MB, free: 13 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1018/0.3114, allocations: 64.82 MB / 326.1 MB, free: 12.73 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001858/0.3116, allocations: 67.97 kB / 326.2 MB, free: 12.66 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009997/0.3216, allocations: 2.733 MB / 328.9 MB, free: 9.91 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.248e-06/0.3217, allocations: 0 / 328.9 MB, free: 9.91 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.634e-05/0.3217, allocations: 4 kB / 328.9 MB, free: 9.906 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006605/0.3224, allocations: 438.7 kB / 329.3 MB, free: 9.426 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.3224, allocations: 12.03 kB / 329.3 MB, free: 9.414 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.671e-05/0.3225, allocations: 15.81 kB / 329.3 MB, free: 9.398 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/0.3228, allocations: 219.1 kB / 329.6 MB, free: 9.145 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.426e-05/0.3229, allocations: 12 kB / 329.6 MB, free: 9.133 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.951e-05/0.3229, allocations: 19.94 kB / 329.6 MB, free: 9.113 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004094/0.3234, allocations: 148.8 kB / 329.7 MB, free: 8.969 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004567/0.3238, allocations: 196.9 kB / 329.9 MB, free: 8.762 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.3239, allocations: 0 / 329.9 MB, free: 8.762 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.418e-05/0.3239, allocations: 0 / 329.9 MB, free: 8.762 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/0.3239, allocations: 8 kB / 329.9 MB, free: 8.754 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001201/0.3251, allocations: 0.6311 MB / 330.6 MB, free: 8.078 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003576/0.3255, allocations: 155.1 kB / 330.7 MB, free: 7.918 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.3257, allocations: 73.31 kB / 330.8 MB, free: 7.844 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.3257, allocations: 192 / 330.8 MB, free: 7.844 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000226/0.326, allocations: 103.5 kB / 330.9 MB, free: 7.73 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 2.645e-06/0.326, allocations: 4 kB / 330.9 MB, free: 7.727 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003972/0.3264, allocations: 153.3 kB / 331 MB, free: 7.57 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.737e-05/0.3265, allocations: 55.41 kB / 331.1 MB, free: 7.504 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000152/0.3266, allocations: 133 kB / 331.2 MB, free: 7.363 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.917e-05/0.3267, allocations: 29.7 kB / 331.3 MB, free: 7.328 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.3268, allocations: 194.8 kB / 331.4 MB, free: 7.137 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.394e-05/0.3269, allocations: 63.17 kB / 331.5 MB, free: 7.074 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.237e-05/0.3269, allocations: 0 / 331.5 MB, free: 7.074 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.3271, allocations: 330.8 kB / 331.8 MB, free: 6.742 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.3273, allocations: 52.66 kB / 331.9 MB, free: 6.688 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.3275, allocations: 115.8 kB / 332 MB, free: 6.551 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001544/0.3277, allocations: 63.91 kB / 332.1 MB, free: 6.488 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.703e-06/0.3277, allocations: 0 / 332.1 MB, free: 6.488 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004684/0.3282, allocations: 201.4 kB / 332.3 MB, free: 6.285 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.3282, allocations: 8 kB / 332.3 MB, free: 6.277 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.3282, allocations: 0 / 332.3 MB, free: 6.277 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.3282, allocations: 11.88 kB / 332.3 MB, free: 6.266 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001617/0.3284, allocations: 27.92 kB / 332.3 MB, free: 6.238 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.192e-06/0.3284, allocations: 4.219 kB / 332.3 MB, free: 6.234 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000135/0.3286, allocations: 19.83 kB / 332.3 MB, free: 6.215 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.688e-05/0.3286, allocations: 16 kB / 332.3 MB, free: 6.199 MB / 282.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 () * 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.0001373/0.3288, allocations: 128 kB / 332.5 MB, free: 6.066 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.181e-05/0.3288, allocations: 7.906 kB / 332.5 MB, free: 6.059 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004585/0.3293, allocations: 174.2 kB / 332.6 MB, free: 5.883 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.3293, allocations: 7.938 kB / 332.7 MB, free: 5.875 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.506e-06/0.3293, allocations: 4 kB / 332.7 MB, free: 5.871 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.3294, allocations: 3.984 kB / 332.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009584/0.3303, allocations: 0.4913 MB / 333.2 MB, free: 5.332 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.88e-06/0.3304, allocations: 3.938 kB / 333.2 MB, free: 5.328 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.3305, allocations: 23.98 kB / 333.2 MB, free: 5.305 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.629e-06/0.3305, allocations: 0 / 333.2 MB, free: 5.305 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.3305, allocations: 4 kB / 333.2 MB, free: 5.301 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.821e-06/0.3305, allocations: 0 / 333.2 MB, free: 5.301 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.646e-06/0.3306, allocations: 7.984 kB / 333.2 MB, free: 5.293 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000426/0.331, allocations: 259.2 kB / 333.4 MB, free: 5.023 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.132e-05/0.3311, allocations: 92.86 kB / 333.5 MB, free: 4.914 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.215e-05/0.3311, allocations: 4 kB / 333.5 MB, free: 4.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.3313, allocations: 7.984 kB / 333.5 MB, free: 4.902 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.869e-05/0.3314, allocations: 23.97 kB / 333.6 MB, free: 4.879 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.3314, allocations: 8 kB / 333.6 MB, free: 4.871 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.326e-05/0.3315, allocations: 91.77 kB / 333.7 MB, free: 4.781 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.31e-07/0.3315, allocations: 0 / 333.7 MB, free: 4.781 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004228/0.332, allocations: 32 kB / 333.7 MB, free: 4.75 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 (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) * 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.0001936/0.3322, allocations: 107.2 kB / 333.8 MB, free: 4.633 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004143/0.3326, allocations: 156.2 kB / 334 MB, free: 4.48 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.299e-06/0.3326, allocations: 4.062 kB / 334 MB, free: 4.477 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001782/0.3328, allocations: 80.52 kB / 334 MB, free: 4.398 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.3331, allocations: 27.77 kB / 334.1 MB, free: 4.371 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006207/0.3337, allocations: 239.5 kB / 334.3 MB, free: 4.109 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004508/0.3342, allocations: 0.7362 MB / 335 MB, free: 3.348 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.324e-05/0.3343, allocations: 23.44 kB / 335.1 MB, free: 3.324 MB / 282.7 MB Notification: Performance of SimCode: time 1.782e-06/0.3343, allocations: 0 / 335.1 MB, free: 3.324 MB / 282.7 MB Notification: Performance of Templates: time 0.005541/0.3399, allocations: 2.235 MB / 337.3 MB, free: 1.094 MB / 282.7 MB