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.Analog.Examples.ShowSaturatingInductor.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.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1256,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadModel(Modelica): time 1.693/1.693, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005534/0.0005535, allocations: 8 kB / 233.2 MB, free: 3.027 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08715/0.08774, allocations: 38.78 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.286/0.3737, allocations: 67.62 MB / 339.6 MB, free: 6.344 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001925/0.374, allocations: 68.84 kB / 339.7 MB, free: 6.309 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01071/0.3847, allocations: 2.624 MB / 342.3 MB, free: 4.066 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.028e-06/0.3847, allocations: 4 kB / 342.3 MB, free: 4.062 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.631e-06/0.3848, allocations: 0 / 342.3 MB, free: 4.062 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0006998/0.3855, allocations: 436.8 kB / 342.8 MB, free: 3.598 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.3855, allocations: 16.03 kB / 342.8 MB, free: 3.582 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.341e-05/0.3856, allocations: 15.81 kB / 342.8 MB, free: 3.566 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002238/0.3858, allocations: 194.9 kB / 343 MB, free: 3.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.419e-05/0.3859, allocations: 7.953 kB / 343 MB, free: 3.332 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.394e-05/0.3859, allocations: 7.812 kB / 343 MB, free: 3.328 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003253/0.3862, allocations: 136.6 kB / 343.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.3863, allocations: 3.938 kB / 343.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.564e-05/0.3863, allocations: 10.94 kB / 343.1 MB, free: 3.199 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.285e-06/0.3863, allocations: 0 / 343.1 MB, free: 3.199 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000239/0.3866, allocations: 70.39 kB / 343.2 MB, free: 3.148 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001121/0.3877, allocations: 0.5196 MB / 343.7 MB, free: 2.645 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003272/0.3881, allocations: 80.92 kB / 343.8 MB, free: 2.574 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.528e-05/0.3881, allocations: 4.438 kB / 343.8 MB, free: 2.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.3881, allocations: 42.06 kB / 343.9 MB, free: 2.523 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 2.497e-06/0.3882, allocations: 0 / 343.9 MB, free: 2.523 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0009201/0.3891, allocations: 260.1 kB / 344.1 MB, free: 2.266 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.96e-05/0.3892, allocations: 114 kB / 344.2 MB, free: 2.133 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001867/0.3894, allocations: 139.6 kB / 344.4 MB, free: 2.004 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.3894, allocations: 25.7 kB / 344.4 MB, free: 1.973 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.3896, allocations: 181.1 kB / 344.6 MB, free: 1.801 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.811e-05/0.3896, allocations: 31.36 kB / 344.6 MB, free: 1.773 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.56e-06/0.3896, allocations: 3.938 kB / 344.6 MB, free: 1.773 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.3898, allocations: 318.8 kB / 344.9 MB, free: 1.453 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.3899, allocations: 30.67 kB / 344.9 MB, free: 1.434 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001564/0.3901, allocations: 67.02 kB / 345 MB, free: 1.363 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001315/0.3903, allocations: 38.03 kB / 345 MB, free: 1.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3903, allocations: 0 / 345 MB, free: 1.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005688/0.3909, allocations: 150.6 kB / 345.2 MB, free: 1.211 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.3909, allocations: 15.92 kB / 345.2 MB, free: 1.195 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.874e-06/0.3909, allocations: 0 / 345.2 MB, free: 1.195 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003451/0.3913, allocations: 48.16 kB / 345.2 MB, free: 1.148 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/0.3924, allocations: 143.4 kB / 345.4 MB, free: 1.012 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00346/0.3958, allocations: 2.797 MB / 348.2 MB, free: 14.05 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/0.3961, allocations: 19.36 kB / 348.2 MB, free: 14.03 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/0.3961, allocations: 4 kB / 348.2 MB, free: 14.03 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000176/0.3963, allocations: 134.2 kB / 348.3 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.582e-05/0.3964, allocations: 19.81 kB / 348.4 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005256/0.3969, allocations: 149.6 kB / 348.5 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.191e-06/0.3969, allocations: 0 / 348.5 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.397, allocations: 0 / 348.5 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/0.397, allocations: 3.953 kB / 348.5 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003421/0.3973, allocations: 229.9 kB / 348.7 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.933e-06/0.3974, allocations: 4 kB / 348.7 MB, free: 13.49 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001513/0.3975, allocations: 15.98 kB / 348.7 MB, free: 13.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003374/0.3979, allocations: 54.05 kB / 348.8 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.962e-05/0.3979, allocations: 2.688 kB / 348.8 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001742/0.3997, allocations: 1.378 MB / 350.2 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3997, allocations: 4.062 kB / 350.2 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006943/0.4004, allocations: 284.2 kB / 350.5 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.4005, allocations: 100.2 kB / 350.6 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.405e-05/0.4006, allocations: 4 kB / 350.6 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001946/0.4008, allocations: 15.94 kB / 350.6 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.4009, allocations: 11.36 kB / 350.6 MB, free: 11.58 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.823e-06/0.4009, allocations: 0 / 350.6 MB, free: 11.58 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001383/0.401, allocations: 122.7 kB / 350.7 MB, free: 11.47 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.07e-07/0.401, allocations: 0 / 350.7 MB, free: 11.47 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004343/0.4015, allocations: 43.47 kB / 350.8 MB, free: 11.43 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.i) * 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 (6): * Single equations (assignments): 5 * 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: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001638/0.4017, allocations: 111.1 kB / 350.9 MB, free: 11.32 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001206/0.4029, allocations: 284.1 kB / 351.1 MB, free: 11.05 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.66e-06/0.4029, allocations: 0 / 351.1 MB, free: 11.05 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003295/0.4032, allocations: 161.4 kB / 351.3 MB, free: 10.89 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002027/0.4035, allocations: 10.44 kB / 351.3 MB, free: 10.89 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.4045, allocations: 0.4953 MB / 351.8 MB, free: 10.38 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004136/0.405, allocations: 0.7165 MB / 352.5 MB, free: 9.633 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.564e-05/0.405, allocations: 11.44 kB / 352.5 MB, free: 9.621 MB / 282.7 MB Notification: Performance of SimCode: time 1.747e-06/0.4051, allocations: 4 kB / 352.5 MB, free: 9.617 MB / 282.7 MB Notification: Performance of Templates: time 0.005348/0.4104, allocations: 2.431 MB / 355 MB, free: 7.199 MB / 282.7 MB