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/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_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.565/1.565, allocations: 171.2 MB / 184.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.723e-05/2.729e-05, allocations: 4 kB / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2033/0.2033, allocations: 38.77 MB / 267.6 MB, free: 9.43 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09912/0.3025, allocations: 66.13 MB / 333.7 MB, free: 7.203 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.3028, allocations: 63.97 kB / 333.8 MB, free: 7.141 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01096/0.3137, allocations: 2.925 MB / 336.7 MB, free: 4.191 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.877e-06/0.3138, allocations: 7.938 kB / 336.7 MB, free: 4.184 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.888e-05/0.3138, allocations: 4 kB / 336.7 MB, free: 4.18 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.0006247/0.3145, allocations: 431.9 kB / 337.1 MB, free: 3.711 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.3145, allocations: 8.031 kB / 337.1 MB, free: 3.703 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.827e-05/0.3146, allocations: 23.72 kB / 337.2 MB, free: 3.68 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003187/0.3149, allocations: 226.8 kB / 337.4 MB, free: 3.418 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.547e-05/0.315, allocations: 24.56 kB / 337.4 MB, free: 3.395 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.741e-05/0.3151, allocations: 31.98 kB / 337.4 MB, free: 3.363 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005472/0.3156, allocations: 254 kB / 337.7 MB, free: 3.09 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.3157, allocations: 0 / 337.7 MB, free: 3.09 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.455e-05/0.3157, allocations: 15.94 kB / 337.7 MB, free: 3.074 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.3157, allocations: 4 kB / 337.7 MB, free: 3.07 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004264/0.3162, allocations: 165.6 kB / 337.9 MB, free: 2.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.3176, allocations: 0.9445 MB / 338.8 MB, free: 1.891 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000353/0.318, allocations: 153.1 kB / 339 MB, free: 1.734 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.3182, allocations: 77.27 kB / 339 MB, free: 1.656 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.3182, allocations: 4.125 kB / 339 MB, free: 1.652 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002301/0.3185, allocations: 107.5 kB / 339.1 MB, free: 1.535 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 5.734e-06/0.3185, allocations: 0 / 339.1 MB, free: 1.535 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004073/0.3189, allocations: 165.3 kB / 339.3 MB, free: 1.367 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.319, allocations: 59.39 kB / 339.4 MB, free: 1.297 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001605/0.3192, allocations: 148.8 kB / 339.5 MB, free: 1.145 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.562e-05/0.3192, allocations: 37.7 kB / 339.6 MB, free: 1.102 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.3194, allocations: 202.7 kB / 339.7 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.525e-05/0.3195, allocations: 59.25 kB / 339.8 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.606e-05/0.3195, allocations: 4 kB / 339.8 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.3197, allocations: 322.8 kB / 340.1 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/0.3199, allocations: 64.59 kB / 340.2 MB, free: 460 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002168/0.3201, allocations: 129.9 kB / 340.3 MB, free: 300 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.3203, allocations: 67.95 kB / 340.4 MB, free: 232 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.544e-06/0.3203, allocations: 4 kB / 340.4 MB, free: 228 kB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005349/0.3208, allocations: 237.2 kB / 340.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.3209, allocations: 8 kB / 340.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.295e-06/0.3209, allocations: 4.219 kB / 340.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.3209, allocations: 12 kB / 340.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.3211, allocations: 31.92 kB / 340.7 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.635e-05/0.3211, allocations: 7.953 kB / 340.7 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001406/0.3213, allocations: 19.88 kB / 340.7 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.068e-05/0.3213, allocations: 15.98 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,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.0001325/0.3215, allocations: 132 kB / 340.8 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.254e-05/0.3215, allocations: 11.81 kB / 340.9 MB, free: 15.74 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000427/0.322, allocations: 186.3 kB / 341 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.328e-06/0.322, allocations: 4 kB / 341 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.343e-06/0.322, allocations: 0 / 341 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.63e-06/0.322, allocations: 7.938 kB / 341 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00098/0.323, allocations: 0.5797 MB / 341.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.323, allocations: 0 / 341.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.3232, allocations: 19.94 kB / 341.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.351e-06/0.3232, allocations: 7.984 kB / 341.7 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.403e-05/0.3232, allocations: 11.95 kB / 341.7 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.83e-06/0.3232, allocations: 4 kB / 341.7 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.668e-06/0.3232, allocations: 3.938 kB / 341.7 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004158/0.3237, allocations: 259.7 kB / 341.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.669e-05/0.3238, allocations: 92.91 kB / 342 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.658e-05/0.3238, allocations: 8 kB / 342 MB, free: 14.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.324, allocations: 15.95 kB / 342 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.492e-05/0.3241, allocations: 23.89 kB / 342.1 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/0.3241, allocations: 8 kB / 342.1 MB, free: 14.42 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.019e-05/0.3242, allocations: 94.38 kB / 342.2 MB, free: 14.33 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.52e-07/0.3242, allocations: 4 kB / 342.2 MB, free: 14.33 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004521/0.3247, allocations: 40 kB / 342.2 MB, free: 14.29 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,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.0001818/0.3249, allocations: 111 kB / 342.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004109/0.3253, allocations: 188 kB / 342.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3253, allocations: 0 / 342.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001635/0.3255, allocations: 67.94 kB / 342.6 MB, free: 13.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002391/0.3257, allocations: 21.08 kB / 342.6 MB, free: 13.9 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005875/0.3263, allocations: 260 kB / 342.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.3268, allocations: 0.7408 MB / 343.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.746e-05/0.3269, allocations: 19.44 kB / 343.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of SimCode: time 1.407e-06/0.3269, allocations: 4 kB / 343.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of Templates: time 0.005099/0.332, allocations: 2.3 MB / 345.9 MB, free: 10.53 MB / 298.7 MB