Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.773/1.773, allocations: 171.2 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005301/0.0005304, allocations: 12 kB / 233.4 MB, free: 2.262 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09725/0.09783, allocations: 38.78 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4029/0.5008, allocations: 67.62 MB / 339.8 MB, free: 5.543 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.5011, allocations: 70.83 kB / 339.8 MB, free: 5.504 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01265/0.5138, allocations: 2.628 MB / 342.4 MB, free: 3.266 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.985e-06/0.5139, allocations: 0 / 342.4 MB, free: 3.266 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.509e-05/0.5139, allocations: 4 kB / 342.5 MB, free: 3.262 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.0008815/0.5148, allocations: 448.3 kB / 342.9 MB, free: 2.785 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.5148, allocations: 8.031 kB / 342.9 MB, free: 2.777 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.777e-05/0.5149, allocations: 42.3 kB / 342.9 MB, free: 2.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.05e-05/0.515, allocations: 15.81 kB / 343 MB, free: 2.715 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002224/0.5152, allocations: 186.7 kB / 343.1 MB, free: 2.496 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.5153, allocations: 15.52 kB / 343.2 MB, free: 2.484 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.124e-05/0.5153, allocations: 15.88 kB / 343.2 MB, free: 2.473 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000389/0.5157, allocations: 137 kB / 343.3 MB, free: 2.352 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.5158, allocations: 0 / 343.3 MB, free: 2.352 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.388e-05/0.5158, allocations: 4.188 kB / 343.3 MB, free: 2.352 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.5158, allocations: 4 kB / 343.3 MB, free: 2.348 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002737/0.5161, allocations: 71.2 kB / 343.4 MB, free: 2.301 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001379/0.5175, allocations: 0.5207 MB / 343.9 MB, free: 1.793 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003852/0.5179, allocations: 83.5 kB / 344 MB, free: 1.723 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.89e-05/0.5179, allocations: 0 / 344 MB, free: 1.723 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.77e-05/0.518, allocations: 42.5 kB / 344 MB, free: 1.672 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 1.764e-06/0.518, allocations: 0 / 344 MB, free: 1.672 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.001166/0.5192, allocations: 257.5 kB / 344.3 MB, free: 1.418 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.36e-05/0.5193, allocations: 110.8 kB / 344.4 MB, free: 1.289 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001915/0.5195, allocations: 135.8 kB / 344.5 MB, free: 1.164 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.301e-05/0.5195, allocations: 29.7 kB / 344.5 MB, free: 1.129 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.5197, allocations: 117.8 kB / 344.7 MB, free: 1.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.931e-05/0.5197, allocations: 31.19 kB / 344.7 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.787e-06/0.5197, allocations: 0 / 344.7 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.5199, allocations: 325.7 kB / 345 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.52, allocations: 27.17 kB / 345 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.5202, allocations: 69.77 kB / 345.1 MB, free: 0.582 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001537/0.5204, allocations: 46.98 kB / 345.1 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.5204, allocations: 0 / 345.1 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0007288/0.5211, allocations: 158.3 kB / 345.3 MB, free: 428 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.731e-05/0.5212, allocations: 17.11 kB / 345.3 MB, free: 412 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.5212, allocations: 0 / 345.3 MB, free: 412 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004746/0.5217, allocations: 48.75 kB / 345.4 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001713/0.5234, allocations: 135.9 kB / 345.5 MB, free: 228 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003917/0.5274, allocations: 2.798 MB / 348.3 MB, free: 13.25 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000278/0.5277, allocations: 19.08 kB / 348.3 MB, free: 13.24 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.5277, allocations: 11.92 kB / 348.3 MB, free: 13.23 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.0001725/0.5279, allocations: 133.4 kB / 348.5 MB, free: 13.09 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.051e-05/0.528, allocations: 11.81 kB / 348.5 MB, free: 13.08 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006469/0.5286, allocations: 151.4 kB / 348.6 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.5287, allocations: 0 / 348.6 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.5287, allocations: 12 kB / 348.6 MB, free: 12.94 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.5287, allocations: 3.953 kB / 348.6 MB, free: 12.94 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000402/0.5291, allocations: 225.2 kB / 348.9 MB, free: 12.7 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.5291, allocations: 0 / 348.9 MB, free: 12.7 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002115/0.5294, allocations: 15.98 kB / 348.9 MB, free: 12.68 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004525/0.5298, allocations: 56.55 kB / 348.9 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.5299, allocations: 7.938 kB / 348.9 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001941/0.5318, allocations: 1.364 MB / 350.3 MB, free: 11.19 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.5319, allocations: 0 / 350.3 MB, free: 11.19 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000858/0.5327, allocations: 291.6 kB / 350.6 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.5329, allocations: 100.7 kB / 350.7 MB, free: 10.81 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.047e-05/0.533, allocations: 11.08 kB / 350.7 MB, free: 10.8 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/0.5332, allocations: 11.98 kB / 350.7 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.096e-05/0.5333, allocations: 7.984 kB / 350.7 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.5333, allocations: 3.312 kB / 350.7 MB, free: 10.79 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001544/0.5335, allocations: 122.9 kB / 350.8 MB, free: 10.68 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.815e-06/0.5335, allocations: 4 kB / 350.8 MB, free: 10.67 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000435/0.5339, allocations: 47.59 kB / 350.9 MB, free: 10.63 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.001303/0.5353, allocations: 0.8149 MB / 351.7 MB, free: 9.824 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001769/0.5371, allocations: 286.3 kB / 352 MB, free: 9.555 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/0.5371, allocations: 0 / 352 MB, free: 9.555 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004216/0.5376, allocations: 169.6 kB / 352.1 MB, free: 9.387 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.5378, allocations: 10.69 kB / 352.2 MB, free: 9.383 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/0.5395, allocations: 0.993 MB / 353.1 MB, free: 8.359 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003658/0.5399, allocations: 0.7165 MB / 353.9 MB, free: 7.617 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.667e-05/0.54, allocations: 12.41 kB / 353.9 MB, free: 7.602 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.577e-05/0.5401, allocations: 42.61 kB / 353.9 MB, free: 7.582 MB / 282.7 MB Notification: Performance of SimCode: time 1.343e-06/0.5401, allocations: 7.938 kB / 353.9 MB, free: 7.574 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0281/0.5682, allocations: 3.063 MB / 357 MB, free: 4.574 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003765/0.5687, allocations: 218.7 kB / 357.2 MB, free: 4.332 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.519/3.088, allocations: 4 kB / 357.2 MB, free: 4.328 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat does not exist to compare? outputFormat=mat