Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 109.7 kB / 17.06 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 191 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001062, allocations: 51.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2734, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003387/0.2768, allocations: 2.03 MB / 402.3 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009595/0.2778, allocations: 0.5687 MB / 402.8 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.569e-05/0.2779, allocations: 7.938 kB / 402.9 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.401e-05/0.278, allocations: 15.84 kB / 402.9 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001363/0.2781, allocations: 47.58 kB / 402.9 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003387/0.2785, allocations: 91.44 kB / 403 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001942/0.2787, allocations: 187.3 kB / 403.2 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001529/0.2788, allocations: 49.45 kB / 403.2 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001605/0.279, allocations: 75.7 kB / 403.3 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000103/0.2791, allocations: 79.62 kB / 403.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.879e-05/0.2791, allocations: 20 kB / 403.4 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.556e-05/0.2792, allocations: 16 kB / 403.4 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.507e-05/0.2792, allocations: 31.91 kB / 403.5 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.703e-05/0.2793, allocations: 79.58 kB / 403.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001954/0.2795, allocations: 177.1 kB / 403.7 MB, free: 5.344 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2795, allocations: 0 / 403.7 MB, free: 5.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2795, allocations: 0 / 403.7 MB, free: 5.344 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.2795, allocations: 0 / 403.7 MB, free: 5.344 MB / 318.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.000774/0.2803, allocations: 466.9 kB / 404.2 MB, free: 4.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.2803, allocations: 12.03 kB / 404.2 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.607e-05/0.2804, allocations: 38.73 kB / 404.2 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.915e-05/0.2805, allocations: 24.75 kB / 404.2 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000188/0.2807, allocations: 196 kB / 404.4 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.2807, allocations: 8.375 kB / 404.4 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.268e-05/0.2807, allocations: 16.38 kB / 404.4 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002997/0.281, allocations: 152.2 kB / 404.6 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.281, allocations: 4 kB / 404.6 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.2811, allocations: 0 / 404.6 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.2811, allocations: 4 kB / 404.6 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002577/0.2813, allocations: 95.94 kB / 404.7 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009249/0.2823, allocations: 0.5031 MB / 405.2 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003127/0.2826, allocations: 106.5 kB / 405.3 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002079/0.2828, allocations: 64.83 kB / 405.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/0.2829, allocations: 0 / 405.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/0.2829, allocations: 38.5 kB / 405.4 MB, free: 3.453 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.2829, allocations: 0 / 405.4 MB, free: 3.453 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005122/0.2834, allocations: 149.5 kB / 405.6 MB, free: 3.301 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.828e-05/0.2835, allocations: 106.8 kB / 405.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.2836, allocations: 162.7 kB / 405.8 MB, free: 3.004 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.2837, allocations: 25.7 kB / 405.8 MB, free: 2.973 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.307e-05/0.2837, allocations: 119.9 kB / 406 MB, free: 2.852 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.911e-05/0.2838, allocations: 35.69 kB / 406 MB, free: 2.816 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.17e-05/0.2838, allocations: 25.7 kB / 406 MB, free: 2.785 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.2839, allocations: 322.8 kB / 406.3 MB, free: 2.461 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.2841, allocations: 47.91 kB / 406.4 MB, free: 2.414 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.2842, allocations: 72.27 kB / 406.5 MB, free: 2.328 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002395/0.2845, allocations: 106.8 kB / 406.6 MB, free: 2.215 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2845, allocations: 0 / 406.6 MB, free: 2.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003268/0.2848, allocations: 145.4 kB / 406.7 MB, free: 2.066 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.2848, allocations: 4 kB / 406.7 MB, free: 2.062 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.2849, allocations: 4.031 kB / 406.7 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.2849, allocations: 7.938 kB / 406.7 MB, free: 2.051 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005611/0.2854, allocations: 87.91 kB / 406.8 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00144/0.2869, allocations: 1.508 MB / 408.3 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/0.2871, allocations: 28.05 kB / 408.3 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.2871, allocations: 4 kB / 408.3 MB, free: 284 kB / 318.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.0001173/0.2872, allocations: 121.8 kB / 408.5 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.58e-05/0.2873, allocations: 7.906 kB / 408.5 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004694/0.2877, allocations: 163.1 kB / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.2878, allocations: 3.938 kB / 408.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.2878, allocations: 0 / 408.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.87e-06/0.2878, allocations: 7.984 kB / 408.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00073/0.2885, allocations: 460 kB / 409.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.2885, allocations: 0 / 409.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001342/0.2887, allocations: 19.98 kB / 409.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002093/0.2889, allocations: 32.83 kB / 409.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.2889, allocations: 4.031 kB / 409.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/0.29, allocations: 1.402 MB / 410.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2901, allocations: 0 / 410.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005608/0.2906, allocations: 289.1 kB / 410.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.841e-05/0.2907, allocations: 96.97 kB / 410.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.389e-05/0.2907, allocations: 3.938 kB / 410.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/0.2909, allocations: 11.98 kB / 410.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.532e-05/0.2909, allocations: 12.06 kB / 410.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.291, allocations: 7.984 kB / 411 MB, free: 13.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.298e-05/0.291, allocations: 115.3 kB / 411.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.291, allocations: 0 / 411.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002968/0.2913, allocations: 35.91 kB / 411.1 MB, free: 13.25 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.0008557/0.2922, allocations: 0.831 MB / 411.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006747/0.2929, allocations: 143.8 kB / 412.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2929, allocations: 3.938 kB / 412.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003273/0.2933, allocations: 167.3 kB / 412.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002486/0.2935, allocations: 8 kB / 412.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003183/0.2967, allocations: 2.129 MB / 414.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002709/0.297, allocations: 0.7119 MB / 415.1 MB, free: 9.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.535e-05/0.2971, allocations: 8.562 kB / 415.1 MB, free: 9.082 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.052e-05/0.2971, allocations: 39.42 kB / 415.1 MB, free: 9.043 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2971, allocations: 0 / 415.1 MB, free: 9.043 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02223/0.3194, allocations: 3.345 MB / 418.5 MB, free: 5.844 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.46, allocations: 10.31 kB / 418.5 MB, free: 5.836 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches