Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001489/0.001489, allocations: 118.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001786/0.001786, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 59.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2617, allocations: 50.53 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003632/0.2653, allocations: 2.063 MB / 410.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.2665, allocations: 0.6584 MB / 411.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.891e-05/0.2666, allocations: 0 / 411.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.461e-05/0.2666, allocations: 19.78 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001234/0.2668, allocations: 51.58 kB / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003366/0.2671, allocations: 99.3 kB / 411.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001872/0.2673, allocations: 187.3 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.2674, allocations: 49.53 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/0.2676, allocations: 91.62 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.183e-05/0.2677, allocations: 75.69 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.359e-05/0.2678, allocations: 12 kB / 412.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.776e-05/0.2678, allocations: 24 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.527e-05/0.2679, allocations: 39.83 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.273e-05/0.2679, allocations: 79.59 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002115/0.2682, allocations: 182.2 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2682, allocations: 0 / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2682, allocations: 4 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.2682, allocations: 0 / 412.4 MB, free: 13.91 MB / 334.1 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.0006874/0.2689, allocations: 474.7 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.2689, allocations: 12.03 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.203e-05/0.269, allocations: 50.73 kB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003546/0.2693, allocations: 52.75 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002639/0.2696, allocations: 216.1 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.2696, allocations: 8.375 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.864e-05/0.2697, allocations: 8.375 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002919/0.27, allocations: 163.2 kB / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.27, allocations: 0 / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.27, allocations: 7.938 kB / 413.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.27, allocations: 4 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002687/0.2703, allocations: 95.94 kB / 413.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008126/0.2711, allocations: 0.5033 MB / 414 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002764/0.2714, allocations: 110.5 kB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001828/0.2716, allocations: 68.97 kB / 414.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.2716, allocations: 4 kB / 414.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.2717, allocations: 38.5 kB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.2717, allocations: 0 / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004414/0.2721, allocations: 141.6 kB / 414.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.754e-05/0.2722, allocations: 102.8 kB / 414.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.2723, allocations: 166.2 kB / 414.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.2723, allocations: 29.64 kB / 414.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.384e-05/0.2724, allocations: 119.9 kB / 414.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.75e-05/0.2724, allocations: 35.67 kB / 414.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.226e-05/0.2725, allocations: 29.7 kB / 414.8 MB, free: 11.26 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.045e-05/0.2726, allocations: 322.8 kB / 415.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.2727, allocations: 39.97 kB / 415.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.2729, allocations: 76.27 kB / 415.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002342/0.2731, allocations: 118.8 kB / 415.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2731, allocations: 0 / 415.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000311/0.2734, allocations: 145.5 kB / 415.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.2735, allocations: 4 kB / 415.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2735, allocations: 0 / 415.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.2735, allocations: 4 kB / 415.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005382/0.274, allocations: 87.94 kB / 415.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001319/0.2754, allocations: 1.496 MB / 417.1 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.2755, allocations: 31.97 kB / 417.1 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.2756, allocations: 0 / 417.1 MB, free: 8.766 MB / 334.1 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001087/0.2757, allocations: 133.7 kB / 417.2 MB, free: 8.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.66e-05/0.2757, allocations: 7.953 kB / 417.2 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004329/0.2762, allocations: 155.2 kB / 417.4 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.2762, allocations: 7.875 kB / 417.4 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-06/0.2762, allocations: 4 kB / 417.4 MB, free: 8.449 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2762, allocations: 3.984 kB / 417.4 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000673/0.2769, allocations: 460 kB / 417.8 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2769, allocations: 0 / 417.8 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001328/0.277, allocations: 23.98 kB / 417.9 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001968/0.2772, allocations: 28.83 kB / 417.9 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.2773, allocations: 0 / 417.9 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009481/0.2782, allocations: 1.41 MB / 419.3 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2782, allocations: 0 / 419.3 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005334/0.2788, allocations: 297 kB / 419.6 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.358e-05/0.2788, allocations: 97.02 kB / 419.7 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.2788, allocations: 3.938 kB / 419.7 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.279, allocations: 15.98 kB / 419.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.245e-05/0.2791, allocations: 8.062 kB / 419.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-06/0.2791, allocations: 7.984 kB / 419.7 MB, free: 5.867 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.911e-05/0.2792, allocations: 120.1 kB / 419.8 MB, free: 5.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2792, allocations: 0 / 419.8 MB, free: 5.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002822/0.2795, allocations: 43.89 kB / 419.9 MB, free: 5.707 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008109/0.2803, allocations: 0.8272 MB / 420.7 MB, free: 4.848 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006436/0.2809, allocations: 131.9 kB / 420.8 MB, free: 4.719 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.2809, allocations: 0 / 420.8 MB, free: 4.719 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002927/0.2812, allocations: 175.2 kB / 421 MB, free: 4.535 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000237/0.2815, allocations: 14.22 kB / 421 MB, free: 4.523 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002832/0.2843, allocations: 2.113 MB / 423.1 MB, free: 2.316 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.2846, allocations: 0.7119 MB / 423.8 MB, free: 1.578 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.515e-05/0.2846, allocations: 12.55 kB / 423.9 MB, free: 1.566 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.925e-05/0.2847, allocations: 39.42 kB / 423.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2847, allocations: 0 / 423.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0216/0.3063, allocations: 3.375 MB / 427.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.22, allocations: 4.516 kB / 427.3 MB, free: 14.29 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.csv --start-time 0 --stop-time 6.2832 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0100051 Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches