Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 2.355/2.355, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005098/0.00051, allocations: 8 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1055, allocations: 44.5 MB / 309 MB, free: 392 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4315/0.5371, allocations: 70.87 MB / 379.9 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/0.5374, allocations: 68.92 kB / 380 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01096/0.5484, allocations: 2.797 MB / 382.8 MB, free: 14.96 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5485, allocations: 1.906 kB / 382.8 MB, free: 14.96 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.656e-05/0.5485, allocations: 3.594 kB / 382.8 MB, free: 14.96 MB / 314.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.0006807/0.5492, allocations: 442.8 kB / 383.2 MB, free: 14.57 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.5492, allocations: 9.719 kB / 383.2 MB, free: 14.57 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.895e-05/0.5493, allocations: 22.19 kB / 383.2 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002818/0.5496, allocations: 229.1 kB / 383.5 MB, free: 14.35 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.434e-05/0.5497, allocations: 18.03 kB / 383.5 MB, free: 14.35 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.785e-05/0.5497, allocations: 27.02 kB / 383.5 MB, free: 14.35 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005652/0.5503, allocations: 228.6 kB / 383.7 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.5503, allocations: 0 / 383.7 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.279e-05/0.5504, allocations: 9.219 kB / 383.7 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.5504, allocations: 5.5 kB / 383.7 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004638/0.5509, allocations: 167.8 kB / 383.9 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.5522, allocations: 0.6768 MB / 384.6 MB, free: 13.9 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004162/0.5526, allocations: 169.2 kB / 384.8 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.503e-05/0.5527, allocations: 2.062 kB / 384.8 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002693/0.5529, allocations: 117.1 kB / 384.9 MB, free: 13.82 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.827e-06/0.553, allocations: 7.938 kB / 384.9 MB, free: 13.81 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006609/0.5536, allocations: 217.4 kB / 385.1 MB, free: 13.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.765e-05/0.5537, allocations: 61.98 kB / 385.2 MB, free: 13.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001643/0.5539, allocations: 147.5 kB / 385.3 MB, free: 13.59 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.504e-05/0.5539, allocations: 36.42 kB / 385.3 MB, free: 13.56 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.412e-05/0.554, allocations: 130.5 kB / 385.5 MB, free: 13.46 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.904e-05/0.5541, allocations: 60.02 kB / 385.5 MB, free: 13.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.685e-05/0.5541, allocations: 4.906 kB / 385.5 MB, free: 13.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.063e-05/0.5542, allocations: 325.3 kB / 385.8 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001756/0.5544, allocations: 67.95 kB / 385.9 MB, free: 13.11 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.5546, allocations: 122.5 kB / 386 MB, free: 13.04 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001927/0.5548, allocations: 67.06 kB / 386.1 MB, free: 13.04 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.5548, allocations: 1.375 kB / 386.1 MB, free: 13.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005628/0.5554, allocations: 240.9 kB / 386.3 MB, free: 12.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.5554, allocations: 5.5 kB / 386.3 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.5555, allocations: 1.375 kB / 386.3 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.761e-05/0.5555, allocations: 4.125 kB / 386.3 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002406/0.5558, allocations: 39.64 kB / 386.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/0.5558, allocations: 6.688 kB / 386.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002087/0.556, allocations: 21.25 kB / 386.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.307e-05/0.5561, allocations: 9.625 kB / 386.4 MB, free: 12.96 MB / 314.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 () * Number of clocked 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.000227/0.5563, allocations: 157 kB / 386.6 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.348e-05/0.5564, allocations: 17.78 kB / 386.6 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005177/0.5569, allocations: 187.2 kB / 386.8 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.5569, allocations: 10.75 kB / 386.8 MB, free: 12.78 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.5569, allocations: 5.328 kB / 386.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.5569, allocations: 0 / 386.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001038/0.558, allocations: 0.5567 MB / 387.3 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.558, allocations: 1.188 kB / 387.3 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/0.5582, allocations: 21.92 kB / 387.4 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.917e-06/0.5582, allocations: 9.078 kB / 387.4 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.087e-05/0.5582, allocations: 5.688 kB / 387.4 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.5582, allocations: 0 / 387.4 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.5582, allocations: 1.406 kB / 387.4 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004245/0.5587, allocations: 281.6 kB / 387.7 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.378e-05/0.5587, allocations: 91.75 kB / 387.7 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.01e-05/0.5588, allocations: 12.92 kB / 387.8 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.5589, allocations: 12.47 kB / 387.8 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.562e-05/0.559, allocations: 24.52 kB / 387.8 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/0.5591, allocations: 5.562 kB / 387.8 MB, free: 12.19 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.322e-05/0.5591, allocations: 92.75 kB / 387.9 MB, free: 12.12 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5592, allocations: 1.656 kB / 387.9 MB, free: 12.12 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000461/0.5596, allocations: 50.5 kB / 387.9 MB, free: 12.11 MB / 314.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) * Number of clocked states: 0 () * 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.0001746/0.5598, allocations: 114.3 kB / 388 MB, free: 12.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005106/0.5603, allocations: 177.1 kB / 388.2 MB, free: 12 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.5604, allocations: 1 kB / 388.2 MB, free: 12 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002082/0.5606, allocations: 80.34 kB / 388.3 MB, free: 12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/0.5609, allocations: 16.72 kB / 388.3 MB, free: 12 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008815/0.5618, allocations: 370.7 kB / 388.7 MB, free: 11.77 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.562, allocations: 0.7407 MB / 389.4 MB, free: 11.07 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001665/0.5622, allocations: 21.5 kB / 389.4 MB, free: 11.07 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.36e-05/0.5623, allocations: 23.41 kB / 389.5 MB, free: 11.07 MB / 314.7 MB Notification: Performance of SimCode: time 1.172e-06/0.5623, allocations: 0 / 389.5 MB, free: 11.07 MB / 314.7 MB Notification: Performance of Templates: time 0.007518/0.5699, allocations: 1.652 MB / 391.1 MB, free: 10.93 MB / 314.7 MB