Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 1.858/1.858, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000501/0.0005011, allocations: 11.98 kB / 233.8 MB, free: 2.406 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1467, allocations: 38.77 MB / 272.6 MB, free: 11.56 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3711/0.5179, allocations: 66.21 MB / 338.8 MB, free: 7.09 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.5182, allocations: 72.02 kB / 338.9 MB, free: 7.055 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01242/0.5306, allocations: 2.938 MB / 341.8 MB, free: 4.504 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.939e-06/0.5307, allocations: 3.984 kB / 341.8 MB, free: 4.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.738e-05/0.5307, allocations: 8.875 kB / 341.8 MB, free: 4.492 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0008965/0.5316, allocations: 442.5 kB / 342.3 MB, free: 4.027 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.5317, allocations: 8.031 kB / 342.3 MB, free: 4.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.5318, allocations: 23.75 kB / 342.3 MB, free: 3.996 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000455/0.5323, allocations: 222.9 kB / 342.5 MB, free: 3.754 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.911e-05/0.5324, allocations: 19.94 kB / 342.5 MB, free: 3.742 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.389e-05/0.5325, allocations: 34.02 kB / 342.6 MB, free: 3.719 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008384/0.5333, allocations: 267.1 kB / 342.8 MB, free: 3.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.5334, allocations: 0 / 342.8 MB, free: 3.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.694e-05/0.5334, allocations: 11.56 kB / 342.8 MB, free: 3.496 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.753e-05/0.5335, allocations: 4 kB / 342.8 MB, free: 3.492 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006277/0.5341, allocations: 170 kB / 343 MB, free: 3.379 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001905/0.536, allocations: 0.9429 MB / 344 MB, free: 2.484 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005166/0.5366, allocations: 155.9 kB / 344.1 MB, free: 2.367 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.576e-05/0.5366, allocations: 7.125 kB / 344.1 MB, free: 2.363 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003936/0.537, allocations: 103.7 kB / 344.2 MB, free: 2.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 3.697e-06/0.5371, allocations: 0 / 344.2 MB, free: 2.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008358/0.5379, allocations: 222 kB / 344.4 MB, free: 2.094 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.116e-05/0.538, allocations: 59.22 kB / 344.5 MB, free: 2.027 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002225/0.5382, allocations: 151.4 kB / 344.6 MB, free: 1.887 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.206e-05/0.5383, allocations: 40.95 kB / 344.7 MB, free: 1.848 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.5385, allocations: 135.8 kB / 344.8 MB, free: 1.715 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.97e-05/0.5386, allocations: 57.19 kB / 344.9 MB, free: 1.668 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.828e-05/0.5386, allocations: 10.94 kB / 344.9 MB, free: 1.664 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.5388, allocations: 325.8 kB / 345.2 MB, free: 1.344 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002756/0.5391, allocations: 64.06 kB / 345.3 MB, free: 1.297 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003671/0.5395, allocations: 134.9 kB / 345.4 MB, free: 1.164 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002987/0.5398, allocations: 78.47 kB / 345.5 MB, free: 1.113 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.5399, allocations: 0 / 345.5 MB, free: 1.113 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000884/0.5407, allocations: 240 kB / 345.7 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.222e-05/0.5408, allocations: 10.31 kB / 345.7 MB, free: 0.918 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.5408, allocations: 4 kB / 345.7 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.784e-05/0.5409, allocations: 8 kB / 345.7 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003519/0.5412, allocations: 39.06 kB / 345.8 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.024e-05/0.5413, allocations: 11.92 kB / 345.8 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002666/0.5416, allocations: 15.75 kB / 345.8 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.847e-05/0.5416, allocations: 11.75 kB / 345.8 MB, free: 0.8398 MB / 266.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 () * Number of clocked 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.0002968/0.5419, allocations: 156.5 kB / 346 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.363e-05/0.542, allocations: 15.81 kB / 346 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007599/0.5428, allocations: 192.2 kB / 346.2 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.5428, allocations: 4 kB / 346.2 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.5429, allocations: 7.891 kB / 346.2 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.5429, allocations: 3.984 kB / 346.2 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001607/0.5445, allocations: 0.5729 MB / 346.7 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.5445, allocations: 4 kB / 346.7 MB, free: 15.97 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/0.5447, allocations: 19.73 kB / 346.8 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/0.5448, allocations: 3.953 kB / 346.8 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.996e-05/0.5448, allocations: 4 kB / 346.8 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.713e-06/0.5448, allocations: 3.984 kB / 346.8 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.5448, allocations: 0 / 346.8 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006597/0.5515, allocations: 273.1 kB / 347 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.927e-05/0.5516, allocations: 88.92 kB / 347.1 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.081e-05/0.5516, allocations: 14.83 kB / 347.1 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.5519, allocations: 11.17 kB / 347.2 MB, free: 15.58 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.552, allocations: 19.09 kB / 347.2 MB, free: 15.56 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.383e-05/0.5521, allocations: 8 kB / 347.2 MB, free: 15.55 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001107/0.5522, allocations: 95.2 kB / 347.3 MB, free: 15.47 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.5522, allocations: 0 / 347.3 MB, free: 15.47 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007322/0.5529, allocations: 45.86 kB / 347.3 MB, free: 15.43 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 (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) * Number of clocked states: 0 () * 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.000246/0.5532, allocations: 120.7 kB / 347.4 MB, free: 15.31 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006381/0.5539, allocations: 175.6 kB / 347.6 MB, free: 15.18 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.5539, allocations: 3.375 kB / 347.6 MB, free: 15.18 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002775/0.5542, allocations: 77.34 kB / 347.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000401/0.5546, allocations: 23.48 kB / 347.7 MB, free: 15.1 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.5558, allocations: 388.5 kB / 348.1 MB, free: 14.73 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005076/0.5563, allocations: 0.7444 MB / 348.8 MB, free: 13.96 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002066/0.5565, allocations: 33.86 kB / 348.9 MB, free: 13.93 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001263/0.5567, allocations: 19.44 kB / 348.9 MB, free: 13.91 MB / 282.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5567, allocations: 4 kB / 348.9 MB, free: 13.91 MB / 282.7 MB Notification: Performance of Templates: time 0.02355/0.5803, allocations: 1.638 MB / 350.5 MB, free: 12.29 MB / 282.7 MB