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.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.851/1.851, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003619/0.0003622, allocations: 8 kB / 233.8 MB, free: 2.402 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08755/0.08794, allocations: 38.76 MB / 272.6 MB, free: 11.56 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4382/0.5262, allocations: 65.56 MB / 338.2 MB, free: 7.816 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00035/0.5267, allocations: 74.64 kB / 338.2 MB, free: 7.777 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01607/0.5427, allocations: 2.794 MB / 341 MB, free: 5.348 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.477e-06/0.5428, allocations: 0 / 341 MB, free: 5.348 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.784e-05/0.5429, allocations: 4.875 kB / 341 MB, free: 5.344 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001163/0.544, allocations: 453.4 kB / 341.5 MB, free: 4.863 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.258e-05/0.5441, allocations: 12.03 kB / 341.5 MB, free: 4.852 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.5443, allocations: 15.81 kB / 341.5 MB, free: 4.836 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004916/0.5448, allocations: 222 kB / 341.7 MB, free: 4.594 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.684e-05/0.5449, allocations: 22.19 kB / 341.8 MB, free: 4.582 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.272e-05/0.545, allocations: 26.08 kB / 341.8 MB, free: 4.562 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008992/0.5459, allocations: 234.2 kB / 342 MB, free: 4.383 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/0.5459, allocations: 0 / 342 MB, free: 4.383 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.6e-05/0.546, allocations: 5.812 kB / 342 MB, free: 4.383 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.183e-05/0.5461, allocations: 8 kB / 342 MB, free: 4.375 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000695/0.5468, allocations: 160.7 kB / 342.2 MB, free: 4.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001964/0.5488, allocations: 0.6812 MB / 342.9 MB, free: 3.648 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006269/0.5494, allocations: 169.9 kB / 343 MB, free: 3.523 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.934e-05/0.5495, allocations: 7.938 kB / 343 MB, free: 3.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004023/0.5499, allocations: 112.1 kB / 343.1 MB, free: 3.418 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 4.449e-06/0.55, allocations: 0 / 343.1 MB, free: 3.418 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009986/0.551, allocations: 221.6 kB / 343.4 MB, free: 3.246 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.508e-05/0.5511, allocations: 59.34 kB / 343.4 MB, free: 3.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002695/0.5514, allocations: 145.7 kB / 343.6 MB, free: 3.039 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.326e-05/0.5515, allocations: 35.14 kB / 343.6 MB, free: 3.004 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.5516, allocations: 130.3 kB / 343.7 MB, free: 2.879 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.5518, allocations: 61.73 kB / 343.8 MB, free: 2.828 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.802e-05/0.5518, allocations: 7.25 kB / 343.8 MB, free: 2.824 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002192/0.5521, allocations: 325.5 kB / 344.1 MB, free: 2.504 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002899/0.5524, allocations: 65.06 kB / 344.2 MB, free: 2.457 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003679/0.5528, allocations: 127.4 kB / 344.3 MB, free: 2.336 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.5531, allocations: 72.11 kB / 344.4 MB, free: 2.293 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.5531, allocations: 0 / 344.4 MB, free: 2.293 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000896/0.554, allocations: 237.8 kB / 344.6 MB, free: 2.105 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/0.5541, allocations: 4 kB / 344.6 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/0.5541, allocations: 4 kB / 344.6 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.78e-05/0.5542, allocations: 7.984 kB / 344.6 MB, free: 2.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003365/0.5545, allocations: 31.67 kB / 344.6 MB, free: 2.062 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.791e-05/0.5546, allocations: 3.984 kB / 344.6 MB, free: 2.059 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002535/0.5548, allocations: 22.28 kB / 344.7 MB, free: 2.043 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-05/0.5549, allocations: 12 kB / 344.7 MB, free: 2.031 MB / 266.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.0003222/0.5553, allocations: 164.7 kB / 344.8 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.304e-05/0.5553, allocations: 7.906 kB / 344.8 MB, free: 1.871 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007527/0.5561, allocations: 201.4 kB / 345 MB, free: 1.719 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.5562, allocations: 4 kB / 345 MB, free: 1.715 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.5562, allocations: 0 / 345 MB, free: 1.715 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.5562, allocations: 0 / 345 MB, free: 1.715 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001789/0.558, allocations: 0.5655 MB / 345.6 MB, free: 1.184 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.5581, allocations: 0 / 345.6 MB, free: 1.184 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002032/0.5583, allocations: 15.98 kB / 345.6 MB, free: 1.168 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.491e-05/0.5583, allocations: 4 kB / 345.6 MB, free: 1.164 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.052e-05/0.5583, allocations: 3.438 kB / 345.6 MB, free: 1.164 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.5584, allocations: 3.938 kB / 345.6 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/0.5584, allocations: 3.953 kB / 345.6 MB, free: 1.156 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006804/0.5591, allocations: 279.8 kB / 345.9 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.632e-05/0.5592, allocations: 95.92 kB / 346 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.662e-05/0.5593, allocations: 7.938 kB / 346 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.5595, allocations: 7.984 kB / 346 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.5597, allocations: 27.55 kB / 346.1 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.66e-05/0.5597, allocations: 11.31 kB / 346.1 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001166/0.5599, allocations: 99.02 kB / 346.2 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.5599, allocations: 0 / 346.2 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007181/0.5606, allocations: 47.73 kB / 346.2 MB, free: 0.625 MB / 266.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.0002776/0.5609, allocations: 122.3 kB / 346.3 MB, free: 0.5 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007076/0.5616, allocations: 178.1 kB / 346.5 MB, free: 376 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.5617, allocations: 0 / 346.5 MB, free: 376 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003037/0.562, allocations: 77.16 kB / 346.6 MB, free: 316 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004449/0.5624, allocations: 20.22 kB / 346.6 MB, free: 304 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.5637, allocations: 374.4 kB / 347 MB, free: 15.94 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005247/0.5642, allocations: 0.7328 MB / 347.7 MB, free: 15.18 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000202/0.5644, allocations: 29.94 kB / 347.7 MB, free: 15.15 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.5646, allocations: 25.92 kB / 347.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of SimCode: time 1.413e-06/0.5646, allocations: 0 / 347.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of Templates: time 0.009896/0.5745, allocations: 1.648 MB / 349.4 MB, free: 13.5 MB / 282.7 MB