Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.98/1.98, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003599/0.00036, allocations: 16 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09257/0.09295, allocations: 44.5 MB / 309 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.401/0.494, allocations: 72.71 MB / 381.7 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002799/0.4943, allocations: 77.41 kB / 381.8 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01207/0.5064, allocations: 2.583 MB / 384.3 MB, free: 14.42 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5065, allocations: 0 / 384.3 MB, free: 14.42 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.5065, allocations: 2.75 kB / 384.3 MB, free: 14.42 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.0007614/0.5073, allocations: 434.7 kB / 384.8 MB, free: 14.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.5073, allocations: 9.625 kB / 384.8 MB, free: 14.03 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.216e-05/0.5074, allocations: 16.06 kB / 384.8 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001858/0.5076, allocations: 207.7 kB / 385 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.5076, allocations: 11.88 kB / 385 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.19e-05/0.5077, allocations: 12.83 kB / 385 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003701/0.5081, allocations: 130.4 kB / 385.1 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.5081, allocations: 0 / 385.1 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.5081, allocations: 7.062 kB / 385.2 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.575e-06/0.5082, allocations: 2.75 kB / 385.2 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002682/0.5084, allocations: 75.14 kB / 385.2 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001229/0.5097, allocations: 0.5164 MB / 385.7 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003785/0.5101, allocations: 79.59 kB / 385.8 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.082e-05/0.5101, allocations: 1.219 kB / 385.8 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.5102, allocations: 39.34 kB / 385.9 MB, free: 13.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=7): time 2.475e-06/0.5102, allocations: 0 / 385.9 MB, free: 13.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=7): time 0.001195/0.5114, allocations: 261.2 kB / 386.1 MB, free: 13.19 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.58e-05/0.5115, allocations: 102.8 kB / 386.2 MB, free: 13.07 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000194/0.5117, allocations: 157.5 kB / 386.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.5117, allocations: 25.7 kB / 386.4 MB, free: 12.93 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.975e-05/0.5118, allocations: 185.5 kB / 386.6 MB, free: 12.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.565e-05/0.5119, allocations: 30.77 kB / 386.6 MB, free: 12.75 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.011e-05/0.5119, allocations: 1.25 kB / 386.6 MB, free: 12.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.049e-05/0.5119, allocations: 319 kB / 386.9 MB, free: 12.44 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.5121, allocations: 33.86 kB / 387 MB, free: 12.43 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.5123, allocations: 70.83 kB / 387 MB, free: 12.39 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001602/0.5125, allocations: 39.77 kB / 387.1 MB, free: 12.39 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.5125, allocations: 0 / 387.1 MB, free: 12.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003867/0.5129, allocations: 123.5 kB / 387.2 MB, free: 12.35 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.5129, allocations: 5.062 kB / 387.2 MB, free: 12.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.5129, allocations: 1.219 kB / 387.2 MB, free: 12.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/0.513, allocations: 1.438 kB / 387.2 MB, free: 12.35 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001845/0.5148, allocations: 154.5 kB / 387.3 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001871/0.5167, allocations: 1.415 MB / 388.8 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003016/0.5171, allocations: 25.05 kB / 388.8 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.5171, allocations: 2.875 kB / 388.8 MB, free: 10.96 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.0001472/0.5173, allocations: 127.4 kB / 388.9 MB, free: 10.84 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.149e-05/0.5173, allocations: 11.81 kB / 388.9 MB, free: 10.84 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006374/0.518, allocations: 154.9 kB / 389.1 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.518, allocations: 1.281 kB / 389.1 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.518, allocations: 1.5 kB / 389.1 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.518, allocations: 7.953 kB / 389.1 MB, free: 10.78 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003177/0.5183, allocations: 219.2 kB / 389.3 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.5184, allocations: 0 / 389.3 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002119/0.5186, allocations: 19.84 kB / 389.3 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000508/0.5191, allocations: 51.52 kB / 389.4 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.5191, allocations: 4.969 kB / 389.4 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001576/0.5207, allocations: 1.372 MB / 390.7 MB, free: 9.301 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.5208, allocations: 1.094 kB / 390.7 MB, free: 9.301 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008056/0.5216, allocations: 290.7 kB / 391 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.281e-05/0.5217, allocations: 83.92 kB / 391.1 MB, free: 9.047 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.412e-05/0.5217, allocations: 9.328 kB / 391.1 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002454/0.522, allocations: 17 kB / 391.1 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.441e-05/0.5221, allocations: 7.125 kB / 391.1 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.5221, allocations: 1.469 kB / 391.1 MB, free: 9.039 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001183/0.5222, allocations: 115.2 kB / 391.3 MB, free: 8.965 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.275e-06/0.5222, allocations: 64 / 391.3 MB, free: 8.965 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004708/0.5227, allocations: 53.66 kB / 391.3 MB, free: 8.949 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.0001607/0.5229, allocations: 110.9 kB / 391.4 MB, free: 8.859 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001585/0.5245, allocations: 165.1 kB / 391.6 MB, free: 8.852 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.5245, allocations: 0 / 391.6 MB, free: 8.852 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004593/0.525, allocations: 162.3 kB / 391.7 MB, free: 8.738 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002544/0.5253, allocations: 10.12 kB / 391.7 MB, free: 8.738 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.5264, allocations: 0.4895 MB / 392.2 MB, free: 8.391 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001761/0.5266, allocations: 0.7134 MB / 393 MB, free: 7.695 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.063e-05/0.5267, allocations: 12.69 kB / 393 MB, free: 7.688 MB / 314.7 MB Notification: Performance of SimCode: time 8.02e-07/0.5267, allocations: 0 / 393 MB, free: 7.688 MB / 314.7 MB Notification: Performance of Templates: time 0.005606/0.5323, allocations: 2.11 MB / 395.1 MB, free: 7.574 MB / 314.7 MB