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_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 2.031/2.031, allocations: 194.8 MB / 212.3 MB, free: 3.02 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003588/0.000359, allocations: 8 kB / 264.4 MB, free: 13.65 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09678/0.09717, allocations: 44.5 MB / 309 MB, free: 1.082 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4651/0.5623, allocations: 71.52 MB / 380.5 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002673/0.5626, allocations: 69.7 kB / 380.5 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0119/0.5746, allocations: 2.939 MB / 383.5 MB, free: 14.36 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5746, allocations: 4 kB / 383.5 MB, free: 14.36 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.547e-05/0.5747, allocations: 4.312 kB / 383.5 MB, free: 14.36 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0006547/0.5753, allocations: 445.4 kB / 383.9 MB, free: 13.97 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.5754, allocations: 9.969 kB / 383.9 MB, free: 13.97 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.64e-05/0.5755, allocations: 22.84 kB / 384 MB, free: 13.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002835/0.5758, allocations: 217.9 kB / 384.2 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.55e-05/0.5758, allocations: 22.34 kB / 384.2 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.856e-05/0.5759, allocations: 26.56 kB / 384.2 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006203/0.5765, allocations: 267.8 kB / 384.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.5766, allocations: 2 kB / 384.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.548e-05/0.5766, allocations: 12.8 kB / 384.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.5766, allocations: 5.938 kB / 384.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004576/0.5771, allocations: 168.2 kB / 384.7 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.5785, allocations: 0.9474 MB / 385.6 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004129/0.5789, allocations: 153.4 kB / 385.8 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-05/0.579, allocations: 10.41 kB / 385.8 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002594/0.5793, allocations: 117.6 kB / 385.9 MB, free: 12.92 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.477e-06/0.5793, allocations: 0 / 385.9 MB, free: 12.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005881/0.5799, allocations: 211.3 kB / 386.1 MB, free: 12.88 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.5799, allocations: 60.73 kB / 386.1 MB, free: 12.81 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.5801, allocations: 151.3 kB / 386.3 MB, free: 12.71 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.013e-05/0.5802, allocations: 39.7 kB / 386.3 MB, free: 12.67 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.223e-05/0.5803, allocations: 202.3 kB / 386.5 MB, free: 12.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.871e-05/0.5803, allocations: 64.98 kB / 386.6 MB, free: 12.46 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.74e-05/0.5804, allocations: 8.25 kB / 386.6 MB, free: 12.46 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.941e-05/0.5804, allocations: 324 kB / 386.9 MB, free: 12.15 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.5806, allocations: 58.62 kB / 387 MB, free: 12.15 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.5808, allocations: 135.8 kB / 387.1 MB, free: 12.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001911/0.5811, allocations: 69.97 kB / 387.2 MB, free: 12.06 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.5811, allocations: 0 / 387.2 MB, free: 12.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005555/0.5816, allocations: 258.6 kB / 387.4 MB, free: 11.99 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.5817, allocations: 5.469 kB / 387.4 MB, free: 11.99 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.5817, allocations: 2 kB / 387.4 MB, free: 11.99 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.48e-05/0.5817, allocations: 4.656 kB / 387.4 MB, free: 11.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002444/0.582, allocations: 38.7 kB / 387.5 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.327e-05/0.582, allocations: 4.094 kB / 387.5 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001739/0.5822, allocations: 17.94 kB / 387.5 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.011e-05/0.5822, allocations: 17.81 kB / 387.5 MB, free: 11.98 MB / 314.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.0001921/0.5824, allocations: 150.8 kB / 387.7 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.649e-05/0.5825, allocations: 19.33 kB / 387.7 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005072/0.583, allocations: 199 kB / 387.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.583, allocations: 2.469 kB / 387.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.583, allocations: 1.188 kB / 387.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.5831, allocations: 2.719 kB / 387.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009936/0.5841, allocations: 0.5869 MB / 388.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.5841, allocations: 0 / 388.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001314/0.5842, allocations: 13.95 kB / 388.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-06/0.5843, allocations: 1.938 kB / 388.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.064e-05/0.5843, allocations: 6.688 kB / 388.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.5843, allocations: 1.188 kB / 388.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.5843, allocations: 0 / 388.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004116/0.5847, allocations: 281.2 kB / 388.8 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.247e-05/0.5848, allocations: 92.98 kB / 388.9 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.033e-05/0.5848, allocations: 8.734 kB / 388.9 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000145/0.585, allocations: 9.109 kB / 388.9 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.565e-05/0.5851, allocations: 17.83 kB / 388.9 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.644e-05/0.5851, allocations: 9.094 kB / 388.9 MB, free: 11.18 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.653e-05/0.5852, allocations: 99.23 kB / 389 MB, free: 11.1 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5852, allocations: 4 kB / 389 MB, free: 11.1 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004483/0.5857, allocations: 44 kB / 389 MB, free: 11.1 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 (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.0001666/0.5858, allocations: 113.1 kB / 389.2 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004884/0.5863, allocations: 172.1 kB / 389.3 MB, free: 10.99 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.5864, allocations: 0 / 389.3 MB, free: 10.99 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001947/0.5866, allocations: 81.59 kB / 389.4 MB, free: 10.99 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.5869, allocations: 18.14 kB / 389.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008702/0.5878, allocations: 422.6 kB / 389.8 MB, free: 10.7 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.588, allocations: 0.7387 MB / 390.6 MB, free: 10 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.5881, allocations: 23.48 kB / 390.6 MB, free: 9.996 MB / 314.7 MB Notification: Performance of SimCode: time 1.362e-06/0.5881, allocations: 1.312 kB / 390.6 MB, free: 9.996 MB / 314.7 MB Notification: Performance of Templates: time 0.006432/0.5946, allocations: 2.295 MB / 392.9 MB, free: 9.801 MB / 314.7 MB