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.001183/0.001183, allocations: 107.9 kB / 17.06 MB, free: 6.008 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.001163/0.001163, allocations: 191 kB / 18 MB, free: 5.09 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.332/1.332, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 47.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.273, allocations: 49.44 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.004082/0.2772, allocations: 2.027 MB / 402.3 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.2785, allocations: 0.5649 MB / 402.8 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.285e-05/0.2786, allocations: 3.938 kB / 402.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.899e-05/0.2787, allocations: 23.8 kB / 402.9 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001517/0.2789, allocations: 43.62 kB / 402.9 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003428/0.2792, allocations: 95.25 kB / 403 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002005/0.2794, allocations: 183.2 kB / 403.2 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001526/0.2796, allocations: 49.47 kB / 403.2 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001751/0.2798, allocations: 87.69 kB / 403.3 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.2799, allocations: 79.62 kB / 403.4 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.931e-05/0.2799, allocations: 12 kB / 403.4 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.808e-05/0.2799, allocations: 16 kB / 403.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.362e-05/0.28, allocations: 35.89 kB / 403.5 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.598e-05/0.2801, allocations: 75.66 kB / 403.5 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002214/0.2803, allocations: 166.3 kB / 403.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.2803, allocations: 0 / 403.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2803, allocations: 0 / 403.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.2803, allocations: 0 / 403.7 MB, free: 5.352 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.0009661/0.2813, allocations: 478.7 kB / 404.2 MB, free: 4.836 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.2814, allocations: 11.97 kB / 404.2 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.674e-05/0.2814, allocations: 42.73 kB / 404.2 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.093e-05/0.2815, allocations: 20.84 kB / 404.2 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001887/0.2817, allocations: 200.1 kB / 404.4 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/0.2817, allocations: 8.375 kB / 404.4 MB, free: 4.512 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.423e-05/0.2817, allocations: 12.38 kB / 404.5 MB, free: 4.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003205/0.2821, allocations: 152.1 kB / 404.6 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.2821, allocations: 0 / 404.6 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.2821, allocations: 4 kB / 404.6 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.2821, allocations: 4 kB / 404.6 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002615/0.2824, allocations: 95.92 kB / 404.7 MB, free: 4.234 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009466/0.2834, allocations: 0.5072 MB / 405.2 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002921/0.2837, allocations: 106.5 kB / 405.3 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001853/0.2839, allocations: 68.81 kB / 405.4 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.2839, allocations: 4 kB / 405.4 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.2839, allocations: 34.5 kB / 405.4 MB, free: 3.441 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 2.335e-06/0.2839, allocations: 0 / 405.4 MB, free: 3.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004563/0.2844, allocations: 153.6 kB / 405.6 MB, free: 3.285 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.977e-05/0.2845, allocations: 114.7 kB / 405.7 MB, free: 3.148 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001501/0.2846, allocations: 151.9 kB / 405.8 MB, free: 2.988 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.736e-05/0.2847, allocations: 25.7 kB / 405.9 MB, free: 2.957 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.706e-05/0.2847, allocations: 124 kB / 406 MB, free: 2.832 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.684e-05/0.2848, allocations: 27.75 kB / 406 MB, free: 2.805 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.808e-05/0.2848, allocations: 29.69 kB / 406 MB, free: 2.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.285, allocations: 322.8 kB / 406.3 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.2851, allocations: 43.91 kB / 406.4 MB, free: 2.402 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.2853, allocations: 80.2 kB / 406.5 MB, free: 2.309 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003245/0.2856, allocations: 106.8 kB / 406.6 MB, free: 2.195 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.2856, allocations: 4 kB / 406.6 MB, free: 2.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003308/0.286, allocations: 145.5 kB / 406.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.286, allocations: 8 kB / 406.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.286, allocations: 0 / 406.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.286, allocations: 0 / 406.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005575/0.2866, allocations: 83.92 kB / 406.8 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001666/0.2882, allocations: 1.512 MB / 408.3 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.2884, allocations: 27.75 kB / 408.3 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.2885, allocations: 8 kB / 408.4 MB, free: 264 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.0001335/0.2886, allocations: 120.7 kB / 408.5 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.074e-05/0.2886, allocations: 7.953 kB / 408.5 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004782/0.2891, allocations: 167.2 kB / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.2891, allocations: 3.938 kB / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-06/0.2892, allocations: 0 / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2892, allocations: 0 / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007651/0.2899, allocations: 471.9 kB / 409.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.2899, allocations: 0 / 409.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001377/0.2901, allocations: 19.98 kB / 409.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000217/0.2903, allocations: 40.8 kB / 409.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.2903, allocations: 0 / 409.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00131/0.2917, allocations: 1.395 MB / 410.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.2917, allocations: 4.031 kB / 410.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005717/0.2923, allocations: 293.1 kB / 410.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.117e-05/0.2923, allocations: 89 kB / 410.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.6e-05/0.2923, allocations: 7.938 kB / 410.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.2925, allocations: 16.05 kB / 411 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.065e-05/0.2926, allocations: 11.98 kB / 411 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-06/0.2926, allocations: 4 kB / 411 MB, free: 13.37 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.695e-05/0.2927, allocations: 115.2 kB / 411.1 MB, free: 13.26 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2927, allocations: 0 / 411.1 MB, free: 13.26 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002872/0.293, allocations: 35.95 kB / 411.1 MB, free: 13.22 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.001013/0.294, allocations: 0.8428 MB / 412 MB, free: 12.35 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006948/0.2947, allocations: 135.8 kB / 412.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.2947, allocations: 8.062 kB / 412.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003398/0.2951, allocations: 163.1 kB / 412.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002527/0.2954, allocations: 8 kB / 412.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003396/0.2988, allocations: 2.113 MB / 414.4 MB, free: 9.816 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/0.2991, allocations: 0.7119 MB / 415.1 MB, free: 9.078 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.669e-05/0.2991, allocations: 12.55 kB / 415.1 MB, free: 9.066 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.499e-05/0.2992, allocations: 39.42 kB / 415.2 MB, free: 9.027 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2992, allocations: 3.938 kB / 415.2 MB, free: 9.023 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02614/0.3254, allocations: 3.358 MB / 418.5 MB, free: 5.824 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.35, allocations: 7.734 kB / 418.5 MB, free: 5.816 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