Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.INV3S.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.Electrical.Digital.Examples.INV3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|iNV3S.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.INV3S") Notification: Performance of loadModel(Modelica): time 1.8/1.8, allocations: 194.9 MB / 211.7 MB, free: 2.969 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005854/0.0005852, allocations: 16 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1192, allocations: 44.51 MB / 308.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4258/0.5451, allocations: 77.66 MB / 386.1 MB, free: 18.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.5453, allocations: 71.67 kB / 386.2 MB, free: 18.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0719/0.6172, allocations: 27.85 MB / 414 MB, free: 14.24 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.6173, allocations: 0 / 414 MB, free: 14.24 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.697e-05/0.6173, allocations: 7.875 kB / 414 MB, free: 14.24 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005619/0.6179, allocations: 0.6714 MB / 414.7 MB, free: 13.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.6179, allocations: 11.78 kB / 414.7 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.944e-05/0.618, allocations: 35.12 kB / 414.8 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002597/0.6183, allocations: 263.4 kB / 415 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.6183, allocations: 7.594 kB / 415 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.874e-05/0.6184, allocations: 7.594 kB / 415 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003374/0.6187, allocations: 149.8 kB / 415.2 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.335e-06/0.6188, allocations: 0 / 415.2 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.62e-05/0.6188, allocations: 7.438 kB / 415.2 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.914e-06/0.6188, allocations: 3.844 kB / 415.2 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001929/0.619, allocations: 61.08 kB / 415.2 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007023/0.6198, allocations: 484.5 kB / 415.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00023/0.62, allocations: 105.6 kB / 415.8 MB, free: 12.85 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.013e-05/0.62, allocations: 0 / 415.8 MB, free: 12.85 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003361/0.6204, allocations: 228.2 kB / 416 MB, free: 12.69 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.512e-06/0.6204, allocations: 3.938 kB / 416 MB, free: 12.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.001049/0.6215, allocations: 0.6602 MB / 416.7 MB, free: 12.27 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/0.6215, allocations: 165.6 kB / 416.9 MB, free: 12.08 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006198/0.6222, allocations: 467.1 kB / 417.3 MB, free: 11.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.816e-05/0.6222, allocations: 29.61 kB / 417.4 MB, free: 11.81 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.95e-05/0.6223, allocations: 166.8 kB / 417.5 MB, free: 11.66 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.145e-05/0.6223, allocations: 27.05 kB / 417.5 MB, free: 11.64 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.68e-05/0.6224, allocations: 7.875 kB / 417.5 MB, free: 11.64 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.115e-05/0.6224, allocations: 322.3 kB / 417.9 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/0.6226, allocations: 68.45 kB / 417.9 MB, free: 11.3 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001798/0.6228, allocations: 82.52 kB / 418 MB, free: 11.28 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001981/0.623, allocations: 175 kB / 418.2 MB, free: 11.14 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.929e-06/0.6231, allocations: 0 / 418.2 MB, free: 11.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007185/0.6238, allocations: 411.9 kB / 418.6 MB, free: 10.94 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.419e-05/0.6239, allocations: 126.1 kB / 418.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.937e-06/0.6239, allocations: 3.875 kB / 418.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.6239, allocations: 0 / 418.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.871e-05/0.6239, allocations: 0 / 418.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.388e-06/0.624, allocations: 0 / 418.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001899/0.6242, allocations: 15.73 kB / 418.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.6243, allocations: 127.2 kB / 418.9 MB, free: 10.78 MB / 314.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.0003649/0.6247, allocations: 363.8 kB / 419.2 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.441e-05/0.6248, allocations: 42.91 kB / 419.2 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001262/0.6249, allocations: 62.25 kB / 419.3 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.989e-06/0.6249, allocations: 0 / 419.3 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.907e-06/0.6249, allocations: 0 / 419.3 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.659e-06/0.6249, allocations: 3.969 kB / 419.3 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001136/0.6261, allocations: 0.846 MB / 420.2 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.047e-06/0.6261, allocations: 0 / 420.2 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.771e-06/0.6261, allocations: 3.875 kB / 420.2 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.44e-06/0.6261, allocations: 0 / 420.2 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.368e-05/0.6262, allocations: 23.52 kB / 420.2 MB, free: 9.867 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.358e-06/0.6262, allocations: 0 / 420.2 MB, free: 9.867 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.6262, allocations: 3.984 kB / 420.2 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008091/0.627, allocations: 0.5614 MB / 420.8 MB, free: 9.543 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00036/0.6274, allocations: 252.4 kB / 421 MB, free: 9.371 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.993e-05/0.6275, allocations: 15.22 kB / 421 MB, free: 9.367 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002137/0.6277, allocations: 11.83 kB / 421 MB, free: 9.363 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.6279, allocations: 38.52 kB / 421.1 MB, free: 9.348 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/0.628, allocations: 121 kB / 421.2 MB, free: 9.332 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004987/0.6285, allocations: 386.3 kB / 421.6 MB, free: 9.145 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.44e-07/0.6285, allocations: 0 / 421.6 MB, free: 9.145 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004044/0.6289, allocations: 46.34 kB / 421.6 MB, free: 9.145 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: 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.0001339/0.6291, allocations: 113.6 kB / 421.7 MB, free: 9.055 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005709/0.6297, allocations: 453.8 kB / 422.2 MB, free: 8.773 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.532e-06/0.6297, allocations: 4.062 kB / 422.2 MB, free: 8.77 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003322/0.63, allocations: 390 kB / 422.5 MB, free: 8.496 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005253/0.6306, allocations: 106.9 kB / 422.6 MB, free: 8.457 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.6318, allocations: 0.7892 MB / 423.4 MB, free: 7.965 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.6322, allocations: 0.8105 MB / 424.2 MB, free: 7.195 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.93e-05/0.6322, allocations: 11.31 kB / 424.3 MB, free: 7.188 MB / 314.7 MB Notification: Performance of SimCode: time 1.486e-06/0.6322, allocations: 0 / 424.3 MB, free: 7.188 MB / 314.7 MB Notification: Performance of Templates: time 0.005874/0.6381, allocations: 3.847 MB / 428.1 MB, free: 5.262 MB / 314.7 MB