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.Analog.Examples.ShowSaturatingInductor.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.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1256,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadModel(Modelica): time 1.763/1.763, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005805/0.0005807, allocations: 11.98 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09939/0.1, allocations: 44.51 MB / 308.5 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3175/0.4175, allocations: 72.71 MB / 381.2 MB, free: 18.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002086/0.4178, allocations: 68.8 kB / 381.2 MB, free: 18.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00981/0.4276, allocations: 2.596 MB / 383.8 MB, free: 18.36 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.276e-06/0.4276, allocations: 0 / 383.8 MB, free: 18.36 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.228e-06/0.4277, allocations: 1.875 kB / 383.8 MB, free: 18.36 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0005271/0.4282, allocations: 435.2 kB / 384.3 MB, free: 17.96 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.4283, allocations: 8.969 kB / 384.3 MB, free: 17.96 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.104e-05/0.4283, allocations: 16 kB / 384.3 MB, free: 17.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.4285, allocations: 199.2 kB / 384.5 MB, free: 17.74 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.4285, allocations: 8.094 kB / 384.5 MB, free: 17.74 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.442e-05/0.4286, allocations: 10.03 kB / 384.5 MB, free: 17.74 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002905/0.4289, allocations: 141.9 kB / 384.6 MB, free: 17.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.4289, allocations: 1.375 kB / 384.6 MB, free: 17.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.4289, allocations: 4.469 kB / 384.6 MB, free: 17.68 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.126e-06/0.4289, allocations: 4.719 kB / 384.6 MB, free: 17.68 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002216/0.4292, allocations: 67.69 kB / 384.7 MB, free: 17.68 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009379/0.4301, allocations: 0.5111 MB / 385.2 MB, free: 17.35 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.4304, allocations: 89.83 kB / 385.3 MB, free: 17.32 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.4305, allocations: 1.375 kB / 385.3 MB, free: 17.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.539e-05/0.4305, allocations: 33.72 kB / 385.3 MB, free: 17.28 MB / 314.7 MB Notification: Performance of pre-optimization done (n=7): time 2.241e-06/0.4305, allocations: 0 / 385.3 MB, free: 17.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=7): time 0.0008645/0.4314, allocations: 258 kB / 385.6 MB, free: 17.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.4314, allocations: 108.1 kB / 385.7 MB, free: 17.01 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.4316, allocations: 140.6 kB / 385.8 MB, free: 16.92 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.4316, allocations: 25.7 kB / 385.9 MB, free: 16.89 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.46e-05/0.4317, allocations: 185.1 kB / 386 MB, free: 16.72 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.673e-05/0.4317, allocations: 24.02 kB / 386.1 MB, free: 16.71 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.503e-06/0.4318, allocations: 12.94 kB / 386.1 MB, free: 16.7 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.004e-05/0.4318, allocations: 318.2 kB / 386.4 MB, free: 16.38 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/0.4319, allocations: 31.58 kB / 386.4 MB, free: 16.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.4321, allocations: 69.66 kB / 386.5 MB, free: 16.34 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001239/0.4322, allocations: 45.72 kB / 386.5 MB, free: 16.33 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.4322, allocations: 1.375 kB / 386.5 MB, free: 16.33 MB / 314.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003056/0.4325, allocations: 119.1 kB / 386.6 MB, free: 16.3 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.4326, allocations: 5.938 kB / 386.7 MB, free: 16.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.624e-06/0.4326, allocations: 0 / 386.7 MB, free: 16.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.4326, allocations: 5.156 kB / 386.7 MB, free: 16.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/0.4338, allocations: 154.5 kB / 386.8 MB, free: 16.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001209/0.435, allocations: 1.39 MB / 388.2 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000185/0.4352, allocations: 20.36 kB / 388.2 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.545e-05/0.4352, allocations: 9.125 kB / 388.2 MB, free: 14.91 MB / 314.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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001092/0.4353, allocations: 129.9 kB / 388.4 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.238e-05/0.4354, allocations: 9.031 kB / 388.4 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004741/0.4359, allocations: 147.2 kB / 388.5 MB, free: 14.74 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.846e-06/0.4359, allocations: 1.812 kB / 388.5 MB, free: 14.74 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-06/0.4359, allocations: 0 / 388.5 MB, free: 14.74 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.4359, allocations: 7.703 kB / 388.5 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002534/0.4362, allocations: 222 kB / 388.7 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.134e-06/0.4362, allocations: 1.219 kB / 388.7 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.4364, allocations: 19.91 kB / 388.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003562/0.4368, allocations: 54.66 kB / 388.8 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.4368, allocations: 1.969 kB / 388.8 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001183/0.438, allocations: 1.379 MB / 390.2 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.136e-06/0.438, allocations: 0 / 390.2 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005827/0.4386, allocations: 282.7 kB / 390.5 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.918e-05/0.4387, allocations: 83.73 kB / 390.5 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.056e-05/0.4387, allocations: 3.219 kB / 390.5 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.4389, allocations: 19.72 kB / 390.6 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.361e-05/0.439, allocations: 5.062 kB / 390.6 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.439, allocations: 8.891 kB / 390.6 MB, free: 12.99 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.45e-05/0.4391, allocations: 118.3 kB / 390.7 MB, free: 12.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.18e-07/0.4391, allocations: 0 / 390.7 MB, free: 12.91 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004107/0.4395, allocations: 44.78 kB / 390.7 MB, free: 12.91 MB / 314.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.0001207/0.4397, allocations: 109.7 kB / 390.8 MB, free: 12.81 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008702/0.4406, allocations: 149.5 kB / 391 MB, free: 12.8 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.956e-06/0.4406, allocations: 1.531 kB / 391 MB, free: 12.8 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003045/0.4409, allocations: 160.1 kB / 391.2 MB, free: 12.7 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001904/0.4411, allocations: 14.19 kB / 391.2 MB, free: 12.69 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008233/0.4419, allocations: 494.1 kB / 391.6 MB, free: 12.34 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001564/0.4421, allocations: 0.7183 MB / 392.4 MB, free: 11.65 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.178e-05/0.4422, allocations: 12.47 kB / 392.4 MB, free: 11.64 MB / 314.7 MB Notification: Performance of SimCode: time 1.358e-06/0.4422, allocations: 4 kB / 392.4 MB, free: 11.64 MB / 314.7 MB Notification: Performance of Templates: time 0.004225/0.4464, allocations: 2.11 MB / 394.5 MB, free: 11.52 MB / 314.7 MB