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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.797/1.797, allocations: 171.2 MB / 186.8 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005749/0.000575, allocations: 19.98 kB / 233.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08806/0.08866, allocations: 38.76 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2875/0.3762, allocations: 72.33 MB / 344.3 MB, free: 1.566 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/0.3765, allocations: 76.33 kB / 344.4 MB, free: 1.523 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0902/0.4667, allocations: 28.28 MB / 372.7 MB, free: 10.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.303e-06/0.4668, allocations: 0 / 372.7 MB, free: 10.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.4668, allocations: 8 kB / 372.7 MB, free: 10.18 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.0008643/0.4677, allocations: 0.6726 MB / 373.4 MB, free: 9.461 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.4677, allocations: 8.031 kB / 373.4 MB, free: 9.453 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.4678, allocations: 39.53 kB / 373.4 MB, free: 9.414 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003966/0.4682, allocations: 256 kB / 373.7 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.767e-05/0.4683, allocations: 7.938 kB / 373.7 MB, free: 9.121 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.797e-05/0.4683, allocations: 11.5 kB / 373.7 MB, free: 9.113 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004226/0.4688, allocations: 157.8 kB / 373.8 MB, free: 8.973 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.722e-06/0.4688, allocations: 3.938 kB / 373.8 MB, free: 8.969 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.932e-05/0.4689, allocations: 11.98 kB / 373.9 MB, free: 8.957 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.856e-06/0.4689, allocations: 0 / 373.9 MB, free: 8.957 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002291/0.4691, allocations: 68.52 kB / 373.9 MB, free: 8.906 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009531/0.4701, allocations: 469.4 kB / 374.4 MB, free: 8.457 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/0.4704, allocations: 100 kB / 374.5 MB, free: 8.379 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.056e-05/0.4704, allocations: 4 kB / 374.5 MB, free: 8.375 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004451/0.4709, allocations: 226.5 kB / 374.7 MB, free: 8.152 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 3.374e-06/0.4709, allocations: 0 / 374.7 MB, free: 8.152 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001383/0.4723, allocations: 0.6551 MB / 375.4 MB, free: 7.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/0.4725, allocations: 173.4 kB / 375.5 MB, free: 7.301 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008516/0.4733, allocations: 456 kB / 376 MB, free: 6.918 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.879e-05/0.4734, allocations: 33.69 kB / 376 MB, free: 6.879 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.4735, allocations: 173.8 kB / 376.2 MB, free: 6.719 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.413e-05/0.4736, allocations: 27.08 kB / 376.2 MB, free: 6.695 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.031e-05/0.4736, allocations: 0 / 376.2 MB, free: 6.695 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.4738, allocations: 326.1 kB / 376.5 MB, free: 6.371 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002107/0.474, allocations: 61.91 kB / 376.6 MB, free: 6.328 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/0.4743, allocations: 80.42 kB / 376.7 MB, free: 6.262 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000281/0.4746, allocations: 171.9 kB / 376.8 MB, free: 6.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.4746, allocations: 4 kB / 376.8 MB, free: 6.086 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009181/0.4755, allocations: 413.7 kB / 377.2 MB, free: 5.707 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001218/0.4757, allocations: 118.7 kB / 377.4 MB, free: 5.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.4757, allocations: 7.984 kB / 377.4 MB, free: 5.562 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.4757, allocations: 0 / 377.4 MB, free: 5.562 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.279e-05/0.4757, allocations: 2.562 kB / 377.4 MB, free: 5.562 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.485e-06/0.4758, allocations: 0 / 377.4 MB, free: 5.562 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.476, allocations: 12 kB / 377.4 MB, free: 5.551 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001796/0.4762, allocations: 123.8 kB / 377.5 MB, free: 5.43 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.iNV3S.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,$PRE.iNV3S.inertialDelaySensitive.x,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: 0 () * Number of clocked 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.0005569/0.4768, allocations: 362 kB / 377.9 MB, free: 5.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.952e-05/0.4769, allocations: 39.58 kB / 377.9 MB, free: 5.031 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001613/0.477, allocations: 66.08 kB / 378 MB, free: 4.973 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.464e-06/0.4771, allocations: 4 kB / 378 MB, free: 4.969 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.386e-06/0.4771, allocations: 0 / 378 MB, free: 4.969 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.929e-06/0.4771, allocations: 0 / 378 MB, free: 4.969 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001537/0.4786, allocations: 0.8454 MB / 378.8 MB, free: 4.156 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.126e-06/0.4787, allocations: 4 kB / 378.8 MB, free: 4.152 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.307e-05/0.4787, allocations: 4 kB / 378.8 MB, free: 4.148 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.675e-06/0.4787, allocations: 3.984 kB / 378.8 MB, free: 4.145 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.733e-05/0.4788, allocations: 23.11 kB / 378.8 MB, free: 4.125 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.661e-06/0.4788, allocations: 3.938 kB / 378.8 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.182e-06/0.4788, allocations: 0 / 378.8 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001116/0.4799, allocations: 0.5672 MB / 379.4 MB, free: 3.582 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004962/0.4804, allocations: 250.2 kB / 379.7 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.543e-05/0.4805, allocations: 7.25 kB / 379.7 MB, free: 3.355 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002251/0.4808, allocations: 23.8 kB / 379.7 MB, free: 3.336 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.4809, allocations: 31.58 kB / 379.7 MB, free: 3.309 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001698/0.4811, allocations: 115.2 kB / 379.8 MB, free: 3.199 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007043/0.4818, allocations: 389.6 kB / 380.2 MB, free: 2.875 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.83e-07/0.4819, allocations: 0 / 380.2 MB, free: 2.875 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004459/0.4823, allocations: 43.75 kB / 380.3 MB, free: 2.836 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) * Number of clocked states: 0 () * 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.0001894/0.4825, allocations: 128.4 kB / 380.4 MB, free: 2.707 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007875/0.4833, allocations: 448.9 kB / 380.8 MB, free: 2.309 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.574e-06/0.4833, allocations: 0 / 380.8 MB, free: 2.309 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004926/0.4839, allocations: 381.7 kB / 381.2 MB, free: 1.965 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006112/0.4845, allocations: 105.8 kB / 381.3 MB, free: 1.883 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/0.4863, allocations: 0.7878 MB / 382.1 MB, free: 1.125 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006345/0.487, allocations: 0.8127 MB / 382.9 MB, free: 304 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.797e-05/0.487, allocations: 15.44 kB / 382.9 MB, free: 288 kB / 298.7 MB Notification: Performance of SimCode: time 1.529e-06/0.487, allocations: 0 / 382.9 MB, free: 288 kB / 298.7 MB Notification: Performance of Templates: time 0.007734/0.4948, allocations: 3.778 MB / 386.7 MB, free: 12.48 MB / 314.7 MB