Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 2.236/2.236, allocations: 194.8 MB / 212.3 MB, free: 3.02 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003701/0.0003702, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0963/0.0967, allocations: 44.51 MB / 309 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4648/0.5616, allocations: 70.87 MB / 379.8 MB, free: 14.92 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/0.5619, allocations: 68.73 kB / 379.9 MB, free: 14.92 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01089/0.5728, allocations: 2.79 MB / 382.7 MB, free: 14.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.5728, allocations: 0 / 382.7 MB, free: 14.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.031e-05/0.5729, allocations: 4.344 kB / 382.7 MB, free: 14.43 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.0007187/0.5736, allocations: 441 kB / 383.1 MB, free: 14.05 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.5737, allocations: 10.16 kB / 383.1 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.997e-05/0.5737, allocations: 21.97 kB / 383.2 MB, free: 14.04 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002729/0.574, allocations: 229.1 kB / 383.4 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.525e-05/0.5741, allocations: 21.09 kB / 383.4 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.324e-05/0.5742, allocations: 24.53 kB / 383.4 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005876/0.5748, allocations: 237.9 kB / 383.7 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.5748, allocations: 0 / 383.7 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.353e-05/0.5749, allocations: 11.92 kB / 383.7 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.5749, allocations: 5.281 kB / 383.7 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004543/0.5753, allocations: 162.5 kB / 383.8 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.5766, allocations: 0.6799 MB / 384.5 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004156/0.5771, allocations: 165.4 kB / 384.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.985e-05/0.5771, allocations: 1.656 kB / 384.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002628/0.5774, allocations: 128.2 kB / 384.8 MB, free: 13.29 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.575e-06/0.5774, allocations: 4 kB / 384.8 MB, free: 13.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006333/0.5781, allocations: 214.2 kB / 385 MB, free: 13.24 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.887e-05/0.5781, allocations: 57.88 kB / 385.1 MB, free: 13.18 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.5783, allocations: 142.5 kB / 385.2 MB, free: 13.07 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.254e-05/0.5784, allocations: 43.91 kB / 385.2 MB, free: 13.03 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.571e-05/0.5785, allocations: 192.7 kB / 385.4 MB, free: 12.86 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.025e-05/0.5785, allocations: 58.47 kB / 385.5 MB, free: 12.83 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.768e-05/0.5786, allocations: 9.531 kB / 385.5 MB, free: 12.83 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.925e-05/0.5786, allocations: 325.6 kB / 385.8 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001869/0.5788, allocations: 63.02 kB / 385.9 MB, free: 12.51 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002291/0.5791, allocations: 125.9 kB / 386 MB, free: 12.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002022/0.5793, allocations: 67.34 kB / 386.1 MB, free: 12.44 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.5793, allocations: 1.219 kB / 386.1 MB, free: 12.44 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000545/0.5799, allocations: 239.6 kB / 386.3 MB, free: 12.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.5799, allocations: 6.031 kB / 386.3 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.5799, allocations: 1.312 kB / 386.3 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.5799, allocations: 8.562 kB / 386.3 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/0.5802, allocations: 34.3 kB / 386.4 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.5802, allocations: 6.078 kB / 386.4 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001611/0.5804, allocations: 22.5 kB / 386.4 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.014e-05/0.5804, allocations: 9.344 kB / 386.4 MB, free: 12.36 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.0001898/0.5806, allocations: 156.3 kB / 386.5 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.372e-05/0.5807, allocations: 8.281 kB / 386.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004955/0.5812, allocations: 204.4 kB / 386.8 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.5812, allocations: 2.75 kB / 386.8 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.5812, allocations: 12.42 kB / 386.8 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.5812, allocations: 0 / 386.8 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.5822, allocations: 0.5542 MB / 387.3 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.728e-06/0.5823, allocations: 0 / 387.3 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000134/0.5824, allocations: 26.61 kB / 387.3 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.5824, allocations: 5.328 kB / 387.4 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.5825, allocations: 5 kB / 387.4 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.5825, allocations: 1.375 kB / 387.4 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.5825, allocations: 8.172 kB / 387.4 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004114/0.5829, allocations: 268.2 kB / 387.6 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.83e-05/0.583, allocations: 96.92 kB / 387.7 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.981e-05/0.583, allocations: 12.8 kB / 387.7 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001387/0.5832, allocations: 14.03 kB / 387.8 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.693e-05/0.5833, allocations: 21.84 kB / 387.8 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.492e-05/0.5833, allocations: 8.125 kB / 387.8 MB, free: 11.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.915e-05/0.5834, allocations: 99.22 kB / 387.9 MB, free: 11.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.5834, allocations: 0 / 387.9 MB, free: 11.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004248/0.5838, allocations: 44.62 kB / 387.9 MB, free: 11.51 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.0001552/0.584, allocations: 113.6 kB / 388 MB, free: 11.42 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004639/0.5845, allocations: 176.5 kB / 388.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.5845, allocations: 0 / 388.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002005/0.5847, allocations: 82.31 kB / 388.3 MB, free: 11.4 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002642/0.585, allocations: 15.64 kB / 388.3 MB, free: 11.4 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008108/0.5858, allocations: 403.1 kB / 388.7 MB, free: 11.13 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002011/0.586, allocations: 0.7337 MB / 389.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.976e-05/0.5861, allocations: 27.56 kB / 389.5 MB, free: 10.43 MB / 314.7 MB Notification: Performance of SimCode: time 7.12e-07/0.5861, allocations: 1.656 kB / 389.5 MB, free: 10.43 MB / 314.7 MB Notification: Performance of Templates: time 0.006223/0.5924, allocations: 2.245 MB / 391.7 MB, free: 10.24 MB / 314.7 MB