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.55/1.55, allocations: 171.2 MB / 184.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.46e-05/2.468e-05, allocations: 0 / 228.8 MB, free: 15.35 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.2065, allocations: 38.77 MB / 267.6 MB, free: 9.453 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09707/0.3036, allocations: 66.12 MB / 333.7 MB, free: 7.242 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002135/0.3039, allocations: 63.97 kB / 333.8 MB, free: 7.18 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01068/0.3146, allocations: 2.947 MB / 336.7 MB, free: 4.207 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.939e-06/0.3146, allocations: 0 / 336.7 MB, free: 4.207 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.614e-05/0.3147, allocations: 4.875 kB / 336.7 MB, free: 4.203 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0006255/0.3153, allocations: 439 kB / 337.1 MB, free: 3.727 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.3153, allocations: 12.03 kB / 337.1 MB, free: 3.715 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.385e-05/0.3154, allocations: 23.72 kB / 337.2 MB, free: 3.691 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000306/0.3158, allocations: 230.7 kB / 337.4 MB, free: 3.426 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.528e-05/0.3158, allocations: 24.56 kB / 337.4 MB, free: 3.402 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.407e-05/0.3159, allocations: 28 kB / 337.4 MB, free: 3.375 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005375/0.3164, allocations: 254 kB / 337.7 MB, free: 3.102 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.3165, allocations: 3.938 kB / 337.7 MB, free: 3.098 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.426e-05/0.3165, allocations: 16 kB / 337.7 MB, free: 3.082 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.3165, allocations: 8 kB / 337.7 MB, free: 3.074 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004171/0.317, allocations: 157.6 kB / 337.9 MB, free: 2.922 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001437/0.3184, allocations: 0.9523 MB / 338.8 MB, free: 1.895 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003417/0.3188, allocations: 147.3 kB / 339 MB, free: 1.742 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.319, allocations: 77.25 kB / 339 MB, free: 1.664 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.319, allocations: 4.188 kB / 339 MB, free: 1.66 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002297/0.3192, allocations: 113.2 kB / 339.2 MB, free: 1.539 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 2.792e-06/0.3193, allocations: 0 / 339.2 MB, free: 1.539 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003947/0.3197, allocations: 161.4 kB / 339.3 MB, free: 1.375 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.3197, allocations: 59.41 kB / 339.4 MB, free: 1.305 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.3199, allocations: 144 kB / 339.5 MB, free: 1.16 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.675e-05/0.32, allocations: 41.69 kB / 339.6 MB, free: 1.113 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.3201, allocations: 206.6 kB / 339.8 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.968e-05/0.3202, allocations: 55.34 kB / 339.8 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.256e-05/0.3202, allocations: 8 kB / 339.8 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.3204, allocations: 322.8 kB / 340.1 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001631/0.3206, allocations: 64.66 kB / 340.2 MB, free: 468 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002233/0.3208, allocations: 137.9 kB / 340.3 MB, free: 300 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001731/0.321, allocations: 67.95 kB / 340.4 MB, free: 232 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.321, allocations: 3.938 kB / 340.4 MB, free: 228 kB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005373/0.3216, allocations: 241.5 kB / 340.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.3216, allocations: 4 kB / 340.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.705e-06/0.3216, allocations: 4 kB / 340.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.3216, allocations: 4 kB / 340.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/0.3218, allocations: 31.88 kB / 340.7 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.392e-05/0.3219, allocations: 7.953 kB / 340.7 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001376/0.322, allocations: 19.89 kB / 340.7 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.832e-05/0.3221, allocations: 16 kB / 340.7 MB, free: 15.89 MB / 298.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 () * 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.0001381/0.3222, allocations: 143.9 kB / 340.9 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.413e-05/0.3223, allocations: 15.91 kB / 340.9 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004225/0.3227, allocations: 186.2 kB / 341.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.27e-06/0.3227, allocations: 0 / 341.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.673e-06/0.3227, allocations: 0 / 341.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.3227, allocations: 7.938 kB / 341.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009747/0.3237, allocations: 0.5798 MB / 341.7 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.168e-06/0.3238, allocations: 0 / 341.7 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.3239, allocations: 23.92 kB / 341.7 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.268e-06/0.3239, allocations: 3.953 kB / 341.7 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.628e-05/0.3239, allocations: 3.938 kB / 341.7 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.728e-06/0.3239, allocations: 4 kB / 341.7 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.632e-06/0.324, allocations: 0 / 341.7 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004104/0.3244, allocations: 267.7 kB / 341.9 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.373e-05/0.3245, allocations: 92.92 kB / 342 MB, free: 14.47 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.726e-05/0.3245, allocations: 7.953 kB / 342 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.3247, allocations: 15.98 kB / 342.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.06e-05/0.3247, allocations: 19.91 kB / 342.1 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.316e-05/0.3248, allocations: 8 kB / 342.1 MB, free: 14.42 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.629e-05/0.3249, allocations: 103.2 kB / 342.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.15e-07/0.3249, allocations: 0 / 342.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004006/0.3253, allocations: 40 kB / 342.2 MB, free: 14.28 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 (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) * 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.0001748/0.3255, allocations: 115 kB / 342.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004101/0.3259, allocations: 180 kB / 342.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.538e-06/0.3259, allocations: 0 / 342.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.3261, allocations: 79.92 kB / 342.6 MB, free: 13.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.3264, allocations: 17.08 kB / 342.6 MB, free: 13.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005747/0.327, allocations: 252.6 kB / 342.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004305/0.3274, allocations: 0.752 MB / 343.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.8e-05/0.3275, allocations: 19.44 kB / 343.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of SimCode: time 1.401e-06/0.3275, allocations: 0 / 343.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of Templates: time 0.005166/0.3327, allocations: 2.326 MB / 346 MB, free: 10.5 MB / 298.7 MB