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.QuasiStationary.SinglePhase.Examples.SeriesResonance.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.QuasiStationary.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance") Notification: Performance of loadModel(Modelica): time 1.725/1.725, allocations: 171.1 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003774/0.0003776, allocations: 8 kB / 233.2 MB, free: 3.008 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07023/0.07064, allocations: 38.77 MB / 272 MB, free: 12.15 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2894/0.3601, allocations: 70.16 MB / 342.2 MB, free: 3.785 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002507/0.3604, allocations: 79.02 kB / 342.3 MB, free: 3.742 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04185/0.4023, allocations: 12.33 MB / 354.6 MB, free: 9.672 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.791e-06/0.4023, allocations: 4 kB / 354.6 MB, free: 9.668 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.952e-05/0.4024, allocations: 4 kB / 354.6 MB, free: 9.664 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.002068/0.4044, allocations: 0.6846 MB / 355.3 MB, free: 8.977 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/0.4045, allocations: 12.03 kB / 355.3 MB, free: 8.965 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003053/0.4048, allocations: 55.03 kB / 355.3 MB, free: 8.914 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004134/0.4053, allocations: 255.1 kB / 355.6 MB, free: 8.656 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.352e-05/0.4053, allocations: 29 kB / 355.6 MB, free: 8.641 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.958e-05/0.4054, allocations: 37.12 kB / 355.7 MB, free: 8.617 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009093/0.4063, allocations: 358.4 kB / 356 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.4064, allocations: 0 / 356 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.822e-05/0.4064, allocations: 18.19 kB / 356 MB, free: 8.367 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.913e-05/0.4065, allocations: 12 kB / 356 MB, free: 8.355 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008119/0.4073, allocations: 287.2 kB / 356.3 MB, free: 8.16 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002512/0.4098, allocations: 1.339 MB / 357.7 MB, free: 7.012 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000665/0.4105, allocations: 200.2 kB / 357.8 MB, free: 6.859 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.954e-05/0.4106, allocations: 3.984 kB / 357.9 MB, free: 6.855 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.832e-05/0.4106, allocations: 42.36 kB / 357.9 MB, free: 6.809 MB / 282.7 MB Notification: Performance of pre-optimization done (n=16): time 3.555e-06/0.4107, allocations: 0 / 357.9 MB, free: 6.809 MB / 282.7 MB Notification: Performance of matching and sorting (n=16): time 0.001775/0.4124, allocations: 0.4925 MB / 358.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/0.4125, allocations: 55.36 kB / 358.4 MB, free: 6.293 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002124/0.4127, allocations: 153.3 kB / 358.6 MB, free: 6.148 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.705e-05/0.4128, allocations: 36.33 kB / 358.6 MB, free: 6.109 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.413, allocations: 277.1 kB / 358.9 MB, free: 5.855 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.029e-05/0.4131, allocations: 53.92 kB / 358.9 MB, free: 5.809 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.336e-05/0.4131, allocations: 3.25 kB / 359 MB, free: 5.809 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.4133, allocations: 318.2 kB / 359.3 MB, free: 5.492 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/0.4135, allocations: 71.84 kB / 359.3 MB, free: 5.441 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000275/0.4138, allocations: 127 kB / 359.5 MB, free: 5.32 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002637/0.4141, allocations: 86.62 kB / 359.5 MB, free: 5.266 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.766e-06/0.4141, allocations: 3.938 kB / 359.5 MB, free: 5.262 MB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000905/0.415, allocations: 313 kB / 359.8 MB, free: 5.02 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.4151, allocations: 8 kB / 359.9 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.4151, allocations: 0 / 359.9 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004409/0.4155, allocations: 95.8 kB / 360 MB, free: 4.934 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002127/0.4158, allocations: 31.98 kB / 360 MB, free: 4.902 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002745/0.4185, allocations: 1.864 MB / 361.8 MB, free: 3.168 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002647/0.4188, allocations: 34.89 kB / 361.9 MB, free: 3.137 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.547e-05/0.4189, allocations: 8 kB / 361.9 MB, free: 3.129 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002575/0.4191, allocations: 149.8 kB / 362 MB, free: 2.996 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.909e-05/0.4192, allocations: 15.81 kB / 362 MB, free: 2.98 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00078/0.42, allocations: 266.9 kB / 362.3 MB, free: 2.773 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.42, allocations: 4 kB / 362.3 MB, free: 2.77 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.4201, allocations: 0 / 362.3 MB, free: 2.77 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.44e-06/0.4201, allocations: 0 / 362.3 MB, free: 2.77 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005403/0.4206, allocations: 332.7 kB / 362.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.989e-06/0.4206, allocations: 8 kB / 362.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001693/0.4208, allocations: 19.92 kB / 362.7 MB, free: 2.43 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003715/0.4212, allocations: 90.8 kB / 362.8 MB, free: 2.355 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.4212, allocations: 0 / 362.8 MB, free: 2.355 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002702/0.424, allocations: 1.873 MB / 364.6 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.524e-06/0.424, allocations: 4.078 kB / 364.6 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.4251, allocations: 433.8 kB / 365.1 MB, free: 260 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.21e-05/0.4252, allocations: 92.91 kB / 365.1 MB, free: 148 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.13e-05/0.4252, allocations: 3.688 kB / 365.2 MB, free: 148 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.4254, allocations: 16.05 kB / 365.2 MB, free: 132 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.459e-05/0.4255, allocations: 15.55 kB / 365.2 MB, free: 120 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.4255, allocations: 4 kB / 365.2 MB, free: 116 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001543/0.4257, allocations: 130.8 kB / 365.3 MB, free: 0 / 282.7 MB Notification: Performance of sort global known variables: time 6.98e-07/0.4257, allocations: 0 / 365.3 MB, free: 0 / 282.7 MB Notification: Performance of remove unused functions: time 0.0007266/0.4265, allocations: 98.61 kB / 365.4 MB, free: 15.91 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002473/0.4267, allocations: 130.8 kB / 365.5 MB, free: 15.78 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009279/0.4277, allocations: 345.1 kB / 365.9 MB, free: 15.49 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.952e-06/0.4277, allocations: 448 / 365.9 MB, free: 15.49 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005186/0.4282, allocations: 254.8 kB / 366.1 MB, free: 15.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/0.4285, allocations: 23.39 kB / 366.1 MB, free: 15.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.43, allocations: 0.7291 MB / 366.9 MB, free: 14.53 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005078/0.4306, allocations: 0.7755 MB / 367.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.31e-05/0.4306, allocations: 19 kB / 367.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of SimCode: time 1.596e-06/0.4307, allocations: 0 / 367.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of Templates: time 0.007886/0.4386, allocations: 3.945 MB / 371.6 MB, free: 9.816 MB / 298.7 MB