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.6/1.6, allocations: 171.2 MB / 184.3 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.477e-05/2.485e-05, allocations: 4 kB / 228.8 MB, free: 15.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2031/0.2032, allocations: 38.77 MB / 267.6 MB, free: 9.43 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09798/0.3012, allocations: 65.49 MB / 333.1 MB, free: 7.848 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.3015, allocations: 63.97 kB / 333.1 MB, free: 7.785 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0103/0.3118, allocations: 2.783 MB / 335.9 MB, free: 4.973 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.055e-06/0.3118, allocations: 0 / 335.9 MB, free: 4.973 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.775e-05/0.3118, allocations: 4 kB / 335.9 MB, free: 4.969 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.0006296/0.3125, allocations: 436.1 kB / 336.3 MB, free: 4.5 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.3125, allocations: 12.03 kB / 336.4 MB, free: 4.488 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.041e-05/0.3126, allocations: 19.81 kB / 336.4 MB, free: 4.469 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003174/0.313, allocations: 218.9 kB / 336.6 MB, free: 4.215 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.668e-05/0.313, allocations: 24.44 kB / 336.6 MB, free: 4.191 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.948e-05/0.3131, allocations: 20 kB / 336.6 MB, free: 4.172 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005101/0.3136, allocations: 237.8 kB / 336.9 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.3136, allocations: 0 / 336.9 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.854e-05/0.3137, allocations: 4 kB / 336.9 MB, free: 3.922 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.3137, allocations: 12 kB / 336.9 MB, free: 3.91 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003973/0.3141, allocations: 153.7 kB / 337 MB, free: 3.762 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.3154, allocations: 0.686 MB / 337.7 MB, free: 3.016 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003803/0.3158, allocations: 165 kB / 337.9 MB, free: 2.848 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001718/0.316, allocations: 81.27 kB / 338 MB, free: 2.766 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.316, allocations: 192 / 338 MB, free: 2.766 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002485/0.3162, allocations: 119.5 kB / 338.1 MB, free: 2.637 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 5.407e-06/0.3163, allocations: 0 / 338.1 MB, free: 2.637 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004025/0.3167, allocations: 164.8 kB / 338.2 MB, free: 2.473 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.3167, allocations: 55.41 kB / 338.3 MB, free: 2.406 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.3169, allocations: 137 kB / 338.4 MB, free: 2.262 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.853e-05/0.317, allocations: 37.7 kB / 338.5 MB, free: 2.219 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.3171, allocations: 194.8 kB / 338.6 MB, free: 2.027 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.509e-05/0.3172, allocations: 59.23 kB / 338.7 MB, free: 1.969 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.815e-05/0.3173, allocations: 16 kB / 338.7 MB, free: 1.953 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.3174, allocations: 330.8 kB / 339 MB, free: 1.621 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001612/0.3176, allocations: 56.66 kB / 339.1 MB, free: 1.562 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002208/0.3178, allocations: 124.2 kB / 339.2 MB, free: 1.418 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001691/0.318, allocations: 65.66 kB / 339.3 MB, free: 1.355 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.504e-06/0.318, allocations: 7.938 kB / 339.3 MB, free: 1.348 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005067/0.3186, allocations: 233.5 kB / 339.5 MB, free: 1.113 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.3186, allocations: 8 kB / 339.5 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.363e-06/0.3186, allocations: 0 / 339.5 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.3186, allocations: 4 kB / 339.5 MB, free: 1.102 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001615/0.3188, allocations: 27.92 kB / 339.6 MB, free: 1.074 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.379e-05/0.3188, allocations: 7.938 kB / 339.6 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001399/0.319, allocations: 27.83 kB / 339.6 MB, free: 1.039 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.484e-05/0.319, allocations: 8 kB / 339.6 MB, free: 1.031 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.0001357/0.3192, allocations: 144 kB / 339.7 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.376e-05/0.3192, allocations: 7.906 kB / 339.8 MB, free: 0.875 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00044/0.3197, allocations: 186.3 kB / 339.9 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.565e-06/0.3197, allocations: 0 / 339.9 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.797e-06/0.3197, allocations: 3.984 kB / 339.9 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.736e-06/0.3197, allocations: 0 / 339.9 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009917/0.3207, allocations: 0.561 MB / 340.5 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.43e-06/0.3208, allocations: 0 / 340.5 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.3209, allocations: 19.92 kB / 340.5 MB, free: 40 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.421e-06/0.3209, allocations: 0 / 340.5 MB, free: 40 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.596e-05/0.3209, allocations: 4 kB / 340.5 MB, free: 36 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.014e-06/0.321, allocations: 4 kB / 340.5 MB, free: 32 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.808e-06/0.321, allocations: 3.938 kB / 340.5 MB, free: 28 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004358/0.3214, allocations: 275.7 kB / 340.8 MB, free: 15.74 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.625e-05/0.3215, allocations: 96.86 kB / 340.9 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.406e-05/0.3215, allocations: 7.938 kB / 340.9 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.3217, allocations: 15.98 kB / 340.9 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.462e-05/0.3218, allocations: 15.97 kB / 340.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/0.3218, allocations: 15.98 kB / 340.9 MB, free: 15.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.687e-05/0.3219, allocations: 91.23 kB / 341 MB, free: 15.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.89e-07/0.3219, allocations: 0 / 341 MB, free: 15.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003989/0.3223, allocations: 44 kB / 341.1 MB, free: 15.44 MB / 298.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.00018/0.3225, allocations: 123.2 kB / 341.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004069/0.323, allocations: 176 kB / 341.4 MB, free: 15.14 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.84e-06/0.323, allocations: 0 / 341.4 MB, free: 15.14 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001731/0.3232, allocations: 83.88 kB / 341.5 MB, free: 15.06 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.3234, allocations: 22.11 kB / 341.5 MB, free: 15.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005891/0.324, allocations: 248.6 kB / 341.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004112/0.3245, allocations: 0.7326 MB / 342.5 MB, free: 14.01 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.173e-05/0.3246, allocations: 27.42 kB / 342.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of SimCode: time 1.454e-06/0.3246, allocations: 0 / 342.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of Templates: time 0.005091/0.3297, allocations: 2.255 MB / 344.7 MB, free: 11.73 MB / 298.7 MB