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.718/1.718, allocations: 171.2 MB / 184.2 MB, free: 12.09 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.039e-05/3.05e-05, allocations: 4 kB / 228.8 MB, free: 15.45 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.2081, allocations: 38.77 MB / 267.6 MB, free: 9.457 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1505/0.3587, allocations: 72.25 MB / 339.8 MB, free: 1.102 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004165/0.3592, allocations: 67.95 kB / 339.9 MB, free: 1.035 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2977/0.6569, allocations: 28.48 MB / 368.4 MB, free: 77.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.928e-06/0.6569, allocations: 0 / 368.4 MB, free: 77.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.657, allocations: 4 kB / 368.4 MB, free: 77.98 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.0004976/0.6575, allocations: 0.6238 MB / 369 MB, free: 77.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.6575, allocations: 8.031 kB / 369 MB, free: 77.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.576e-05/0.6576, allocations: 35.62 kB / 369.1 MB, free: 77.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002785/0.6579, allocations: 255.2 kB / 369.3 MB, free: 77.01 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.658, allocations: 4 kB / 369.3 MB, free: 77.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.446e-05/0.658, allocations: 22.41 kB / 369.3 MB, free: 76.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003138/0.6583, allocations: 146.1 kB / 369.5 MB, free: 76.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.496e-06/0.6584, allocations: 0 / 369.5 MB, free: 76.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.626e-05/0.6584, allocations: 8 kB / 369.5 MB, free: 76.87 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.278e-06/0.6584, allocations: 3.938 kB / 369.5 MB, free: 76.87 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001639/0.6586, allocations: 63.41 kB / 369.5 MB, free: 76.81 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007305/0.6593, allocations: 483.1 kB / 370 MB, free: 76.35 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002064/0.6596, allocations: 100.8 kB / 370.1 MB, free: 76.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001679/0.6598, allocations: 90.69 kB / 370.2 MB, free: 76.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.025e-05/0.6598, allocations: 0 / 370.2 MB, free: 76.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003099/0.6601, allocations: 233.5 kB / 370.4 MB, free: 75.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 2.627e-06/0.6601, allocations: 0 / 370.4 MB, free: 75.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007626/0.6609, allocations: 439.7 kB / 370.9 MB, free: 75.53 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.75e-05/0.661, allocations: 174.2 kB / 371 MB, free: 75.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006397/0.6616, allocations: 458.5 kB / 371.5 MB, free: 74.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.774e-05/0.6617, allocations: 29.7 kB / 371.5 MB, free: 74.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.824e-05/0.6617, allocations: 159.6 kB / 371.7 MB, free: 74.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.006e-05/0.6618, allocations: 31.22 kB / 371.7 MB, free: 74.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.863e-05/0.6618, allocations: 8 kB / 371.7 MB, free: 74.65 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.17e-05/0.6619, allocations: 314.8 kB / 372 MB, free: 74.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.6621, allocations: 67.98 kB / 372.1 MB, free: 74.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.6622, allocations: 63.97 kB / 372.1 MB, free: 74.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001731/0.6624, allocations: 171.8 kB / 372.3 MB, free: 74.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.647e-06/0.6624, allocations: 0 / 372.3 MB, free: 74.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006544/0.6631, allocations: 415.5 kB / 372.7 MB, free: 73.58 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.896e-05/0.6632, allocations: 120.7 kB / 372.8 MB, free: 73.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.6632, allocations: 0 / 372.8 MB, free: 73.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.6632, allocations: 4 kB / 372.8 MB, free: 73.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.036e-05/0.6633, allocations: 0 / 372.8 MB, free: 73.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.432e-06/0.6633, allocations: 3.984 kB / 372.8 MB, free: 73.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002018/0.6635, allocations: 16.06 kB / 372.9 MB, free: 73.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001349/0.6636, allocations: 122.6 kB / 373 MB, free: 73.3 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.000164/0.6638, allocations: 241.5 kB / 373.2 MB, free: 73.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.545e-05/0.6639, allocations: 39.53 kB / 373.3 MB, free: 72.99 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001633/0.6641, allocations: 67.42 kB / 373.3 MB, free: 72.92 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.825e-06/0.6641, allocations: 0 / 373.3 MB, free: 72.92 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.6641, allocations: 0 / 373.3 MB, free: 72.92 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.755e-06/0.6641, allocations: 4 kB / 373.3 MB, free: 72.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.6652, allocations: 0.8423 MB / 374.2 MB, free: 72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.12e-06/0.6652, allocations: 0 / 374.2 MB, free: 72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.207e-05/0.6653, allocations: 6.047 kB / 374.2 MB, free: 71.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.728e-06/0.6653, allocations: 0 / 374.2 MB, free: 71.99 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.363e-05/0.6653, allocations: 23.92 kB / 374.2 MB, free: 71.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.164e-06/0.6654, allocations: 0 / 374.2 MB, free: 71.97 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.99e-06/0.6654, allocations: 0 / 374.2 MB, free: 71.97 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007559/0.6661, allocations: 0.5519 MB / 374.7 MB, free: 71.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003737/0.6665, allocations: 256.5 kB / 375 MB, free: 71.11 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.8e-05/0.6666, allocations: 12 kB / 375 MB, free: 71.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/0.6669, allocations: 11.98 kB / 375 MB, free: 71.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/0.667, allocations: 31.97 kB / 375 MB, free: 71.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/0.6671, allocations: 115.9 kB / 375.2 MB, free: 70.94 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000542/0.6677, allocations: 388.9 kB / 375.5 MB, free: 70.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.735e-06/0.6677, allocations: 0 / 375.5 MB, free: 70.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004089/0.6681, allocations: 51.94 kB / 375.6 MB, free: 70.52 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.0001481/0.6683, allocations: 124 kB / 375.7 MB, free: 70.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000541/0.6688, allocations: 448.9 kB / 376.2 MB, free: 69.9 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.07e-06/0.6689, allocations: 0 / 376.2 MB, free: 69.9 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003124/0.6692, allocations: 377.6 kB / 376.5 MB, free: 69.48 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005626/0.6698, allocations: 97.45 kB / 376.6 MB, free: 69.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.6709, allocations: 0.5791 MB / 377.2 MB, free: 68.78 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003542/0.6713, allocations: 0.8214 MB / 378 MB, free: 67.93 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.175e-05/0.6713, allocations: 11.44 kB / 378 MB, free: 67.92 MB / 298.7 MB Notification: Performance of SimCode: time 1.852e-06/0.6714, allocations: 0 / 378 MB, free: 67.92 MB / 298.7 MB Notification: Performance of Templates: time 0.005813/0.6772, allocations: 3.773 MB / 381.8 MB, free: 64.14 MB / 298.7 MB