Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.918/1.918, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003582/0.0003584, allocations: 12 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07963/0.08002, allocations: 44.51 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.385/0.4651, allocations: 71.5 MB / 379.9 MB, free: 18.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/0.4653, allocations: 64.2 kB / 380 MB, free: 18.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009992/0.4753, allocations: 2.961 MB / 383 MB, free: 18.31 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.133e-06/0.4754, allocations: 1.156 kB / 383 MB, free: 18.31 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.735e-05/0.4754, allocations: 4.344 kB / 383 MB, free: 18.31 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.0005427/0.476, allocations: 447.5 kB / 383.4 MB, free: 17.92 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.476, allocations: 8.781 kB / 383.4 MB, free: 17.92 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.283e-05/0.4761, allocations: 24.12 kB / 383.4 MB, free: 17.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002437/0.4764, allocations: 232 kB / 383.7 MB, free: 17.7 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.067e-05/0.4764, allocations: 24.16 kB / 383.7 MB, free: 17.69 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.204e-05/0.4765, allocations: 30.86 kB / 383.7 MB, free: 17.69 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005163/0.477, allocations: 258 kB / 384 MB, free: 17.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.477, allocations: 0 / 384 MB, free: 17.61 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.133e-05/0.4771, allocations: 9.469 kB / 384 MB, free: 17.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.4771, allocations: 6.719 kB / 384 MB, free: 17.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003995/0.4775, allocations: 177 kB / 384.2 MB, free: 17.6 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001153/0.4787, allocations: 0.9415 MB / 385.1 MB, free: 16.96 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000334/0.479, allocations: 151.5 kB / 385.3 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.4791, allocations: 6.891 kB / 385.3 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002153/0.4793, allocations: 114 kB / 385.4 MB, free: 16.88 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.426e-06/0.4793, allocations: 0 / 385.4 MB, free: 16.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.000506/0.4798, allocations: 208.3 kB / 385.6 MB, free: 16.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/0.4799, allocations: 54.16 kB / 385.6 MB, free: 16.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.48, allocations: 152.4 kB / 385.8 MB, free: 16.67 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.312e-05/0.4801, allocations: 42.19 kB / 385.8 MB, free: 16.63 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.054e-05/0.4802, allocations: 208.1 kB / 386 MB, free: 16.46 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.093e-05/0.4802, allocations: 55.66 kB / 386.1 MB, free: 16.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.464e-05/0.4802, allocations: 6.625 kB / 386.1 MB, free: 16.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.732e-05/0.4803, allocations: 324.5 kB / 386.4 MB, free: 16.12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.4805, allocations: 62.91 kB / 386.5 MB, free: 16.11 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001908/0.4807, allocations: 139.4 kB / 386.6 MB, free: 16.03 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001785/0.4809, allocations: 62.81 kB / 386.7 MB, free: 16.03 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.4809, allocations: 5.375 kB / 386.7 MB, free: 16.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004913/0.4814, allocations: 256.6 kB / 386.9 MB, free: 15.95 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.4814, allocations: 6.094 kB / 386.9 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.058e-06/0.4815, allocations: 2.438 kB / 386.9 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.4815, allocations: 4 kB / 386.9 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.4817, allocations: 38.72 kB / 387 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.4817, allocations: 4.688 kB / 387 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00014/0.4818, allocations: 21.16 kB / 387 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.851e-05/0.4819, allocations: 15.67 kB / 387 MB, free: 15.94 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,greaterEqual.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.0001582/0.4821, allocations: 162.5 kB / 387.2 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.367e-05/0.4821, allocations: 13.83 kB / 387.2 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000419/0.4825, allocations: 192.4 kB / 387.4 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.78e-06/0.4826, allocations: 2.312 kB / 387.4 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.438e-06/0.4826, allocations: 5.719 kB / 387.4 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.285e-06/0.4826, allocations: 1.641 kB / 387.4 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008734/0.4835, allocations: 0.5841 MB / 388 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.908e-06/0.4835, allocations: 1.781 kB / 388 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.4836, allocations: 16.98 kB / 388 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.904e-06/0.4836, allocations: 1.438 kB / 388 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.4837, allocations: 6.766 kB / 388 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.155e-06/0.4837, allocations: 5.406 kB / 388 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.052e-06/0.4837, allocations: 0 / 388 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003791/0.4841, allocations: 276.4 kB / 388.3 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.301e-05/0.4841, allocations: 94.06 kB / 388.4 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.4e-05/0.4842, allocations: 5.188 kB / 388.4 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.4843, allocations: 10.97 kB / 388.4 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.965e-05/0.4844, allocations: 16.89 kB / 388.4 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.331e-05/0.4845, allocations: 16.17 kB / 388.4 MB, free: 15.13 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.943e-05/0.4845, allocations: 99.08 kB / 388.5 MB, free: 15.05 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.89e-07/0.4845, allocations: 0 / 388.5 MB, free: 15.05 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000438/0.485, allocations: 46.25 kB / 388.5 MB, free: 15.05 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,greaterEqual.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.000147/0.4852, allocations: 109.7 kB / 388.6 MB, free: 14.96 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004075/0.4856, allocations: 172.3 kB / 388.8 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.706e-06/0.4856, allocations: 8.062 kB / 388.8 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001827/0.4858, allocations: 79.77 kB / 388.9 MB, free: 14.94 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002415/0.486, allocations: 18.27 kB / 388.9 MB, free: 14.94 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006913/0.4868, allocations: 408.5 kB / 389.3 MB, free: 14.67 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001944/0.487, allocations: 0.7413 MB / 390.1 MB, free: 13.97 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.375e-05/0.4871, allocations: 23.08 kB / 390.1 MB, free: 13.96 MB / 314.7 MB Notification: Performance of SimCode: time 1.474e-06/0.4871, allocations: 0 / 390.1 MB, free: 13.96 MB / 314.7 MB Notification: Performance of Templates: time 0.004727/0.4918, allocations: 2.325 MB / 392.4 MB, free: 13.76 MB / 314.7 MB