Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.INV3S.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.INV3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|iNV3S.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.INV3S") Notification: Performance of loadModel(Modelica): time 1.612/1.612, allocations: 171.3 MB / 179.2 MB, free: 7.566 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.948e-05/1.965e-05, allocations: 4 kB / 222.5 MB, free: 8.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07145/0.0715, allocations: 38.77 MB / 261.3 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2928/0.3643, allocations: 71.58 MB / 332.9 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002261/0.3646, allocations: 64.47 kB / 332.9 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1098/0.4745, allocations: 28.28 MB / 361.2 MB, free: 8.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.17e-06/0.4745, allocations: 3.938 kB / 361.2 MB, free: 8.016 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.857e-05/0.4746, allocations: 8.188 kB / 361.2 MB, free: 8.008 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001239/0.4758, allocations: 0.6175 MB / 361.8 MB, free: 7.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.43e-05/0.4759, allocations: 12.03 kB / 361.8 MB, free: 7.309 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001778/0.4761, allocations: 39.47 kB / 361.9 MB, free: 7.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006683/0.4768, allocations: 271.6 kB / 362.2 MB, free: 6.961 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.088e-05/0.4769, allocations: 4 kB / 362.2 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.856e-05/0.477, allocations: 8 kB / 362.2 MB, free: 6.949 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003327/0.4773, allocations: 51.98 kB / 362.2 MB, free: 6.898 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005829/0.4779, allocations: 149.5 kB / 362.4 MB, free: 6.746 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.478, allocations: 0 / 362.4 MB, free: 6.746 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.8e-05/0.4781, allocations: 4 kB / 362.4 MB, free: 6.742 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.4781, allocations: 4 kB / 362.4 MB, free: 6.738 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001545/0.4796, allocations: 437.2 kB / 362.8 MB, free: 6.273 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003859/0.4801, allocations: 98.55 kB / 362.9 MB, free: 6.168 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003349/0.4804, allocations: 84.84 kB / 363 MB, free: 6.082 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.4805, allocations: 8 kB / 363 MB, free: 6.074 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006567/0.4811, allocations: 210.7 kB / 363.2 MB, free: 5.844 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 4.278e-06/0.4812, allocations: 0 / 363.2 MB, free: 5.844 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001506/0.4827, allocations: 317 kB / 363.5 MB, free: 5.527 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001997/0.4829, allocations: 162.2 kB / 363.7 MB, free: 5.332 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001502/0.4845, allocations: 452.9 kB / 364.1 MB, free: 4.887 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.109e-05/0.4846, allocations: 29.7 kB / 364.1 MB, free: 4.852 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001601/0.4848, allocations: 167.8 kB / 364.3 MB, free: 4.688 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.4849, allocations: 31.64 kB / 364.3 MB, free: 4.656 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.572e-05/0.485, allocations: 4 kB / 364.3 MB, free: 4.652 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002446/0.4852, allocations: 322.8 kB / 364.6 MB, free: 4.328 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002989/0.4855, allocations: 59.98 kB / 364.7 MB, free: 4.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002835/0.4859, allocations: 56.08 kB / 364.8 MB, free: 4.215 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/0.4861, allocations: 55.91 kB / 364.8 MB, free: 4.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.231e-06/0.4862, allocations: 0 / 364.8 MB, free: 4.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.001302/0.4875, allocations: 270.4 kB / 365.1 MB, free: 3.891 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001931/0.4877, allocations: 130.8 kB / 365.2 MB, free: 3.738 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.4877, allocations: 4 kB / 365.2 MB, free: 3.734 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.4878, allocations: 0 / 365.2 MB, free: 3.734 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.668e-05/0.4878, allocations: 0 / 365.2 MB, free: 3.734 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.754e-06/0.4878, allocations: 0 / 365.2 MB, free: 3.734 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003868/0.4883, allocations: 23.95 kB / 365.2 MB, free: 3.711 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002805/0.4886, allocations: 115.8 kB / 365.3 MB, free: 3.598 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.x,$PRE.iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0004364/0.489, allocations: 241.5 kB / 365.6 MB, free: 3.328 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.4892, allocations: 47.55 kB / 365.6 MB, free: 3.281 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003211/0.4895, allocations: 67.38 kB / 365.7 MB, free: 3.207 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.008e-06/0.4896, allocations: 0 / 365.7 MB, free: 3.207 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.46e-06/0.4896, allocations: 0 / 365.7 MB, free: 3.207 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.895e-06/0.4896, allocations: 4 kB / 365.7 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002362/0.492, allocations: 0.6746 MB / 366.4 MB, free: 2.484 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.374e-06/0.492, allocations: 3.938 kB / 366.4 MB, free: 2.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.069e-05/0.4921, allocations: 0 / 366.4 MB, free: 2.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.05e-05/0.4921, allocations: 3.953 kB / 366.4 MB, free: 2.477 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.772e-05/0.4922, allocations: 23.98 kB / 366.4 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.4922, allocations: 0 / 366.4 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.4923, allocations: 0 / 366.4 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.4938, allocations: 442.9 kB / 366.8 MB, free: 2.004 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000924/0.4948, allocations: 260.3 kB / 367.1 MB, free: 1.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001741/0.495, allocations: 15.95 kB / 367.1 MB, free: 1.715 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004564/0.4955, allocations: 8 kB / 367.1 MB, free: 1.707 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002531/0.4958, allocations: 39.95 kB / 367.1 MB, free: 1.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003086/0.4961, allocations: 119.8 kB / 367.3 MB, free: 1.551 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001223/0.4973, allocations: 370.7 kB / 367.6 MB, free: 1.191 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.379e-06/0.4974, allocations: 0 / 367.6 MB, free: 1.191 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009057/0.4983, allocations: 40 kB / 367.7 MB, free: 1.152 MB / 298.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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,iNV3S.yy,iNV3S.nextstate,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,iNV3S.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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 Backend phase and start with SimCode phase: time 0.0003027/0.4986, allocations: 115 kB / 367.8 MB, free: 1.031 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001182/0.4998, allocations: 433.5 kB / 368.2 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.998e-06/0.4999, allocations: 0 / 368.2 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007863/0.5007, allocations: 381.7 kB / 368.6 MB, free: 140 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.5019, allocations: 93.91 kB / 368.7 MB, free: 48 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002556/0.5044, allocations: 0.575 MB / 369.2 MB, free: 15.44 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001113/0.5056, allocations: 0.8023 MB / 370 MB, free: 14.61 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.337e-05/0.5057, allocations: 11.44 kB / 370.1 MB, free: 14.6 MB / 314.7 MB Notification: Performance of SimCode: time 2.394e-06/0.5057, allocations: 4 kB / 370.1 MB, free: 14.6 MB / 314.7 MB Notification: Performance of Templates: time 0.01403/0.5197, allocations: 3.782 MB / 373.8 MB, free: 10.77 MB / 314.7 MB