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.001252/0.001252, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001107/0.001107, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.394/1.394, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000958/0.0009581, allocations: 50.27 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08966/0.09063, allocations: 49.44 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.00313/0.0938, allocations: 2.022 MB / 352.2 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008569/0.09467, allocations: 0.5766 MB / 352.8 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.645e-05/0.09475, allocations: 4 kB / 352.8 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.542e-05/0.09483, allocations: 19.78 kB / 352.8 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001302/0.09496, allocations: 43.64 kB / 352.8 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002958/0.09527, allocations: 92.5 kB / 352.9 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001736/0.09545, allocations: 187.2 kB / 353.1 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.09559, allocations: 45.45 kB / 353.1 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000144/0.09574, allocations: 79.66 kB / 353.2 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000106/0.09586, allocations: 79.73 kB / 353.3 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.558e-05/0.0959, allocations: 12 kB / 353.3 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.279e-05/0.09594, allocations: 16 kB / 353.3 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.477e-05/0.09598, allocations: 35.84 kB / 353.4 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.263e-05/0.09607, allocations: 83.58 kB / 353.4 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001809/0.09626, allocations: 175.7 kB / 353.6 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.09627, allocations: 0 / 353.6 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.09628, allocations: 0 / 353.6 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.09629, allocations: 0 / 353.6 MB, free: 0.8242 MB / 286.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.0007332/0.09702, allocations: 474.8 kB / 354.1 MB, free: 320 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.09707, allocations: 11.89 kB / 354.1 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.211e-05/0.09712, allocations: 42.75 kB / 354.1 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.165e-05/0.09717, allocations: 16.75 kB / 354.2 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001489/0.09733, allocations: 192.1 kB / 354.3 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/0.09737, allocations: 12.42 kB / 354.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.091e-05/0.09741, allocations: 8.375 kB / 354.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003036/0.09772, allocations: 157.8 kB / 354.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.09774, allocations: 0 / 354.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.09777, allocations: 4 kB / 354.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.09778, allocations: 4 kB / 354.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002749/0.09806, allocations: 99.88 kB / 354.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008658/0.09894, allocations: 0.5109 MB / 355.1 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003104/0.09926, allocations: 102.5 kB / 355.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001898/0.09946, allocations: 68.83 kB / 355.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.09949, allocations: 3.938 kB / 355.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.09952, allocations: 38.5 kB / 355.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 3.376e-06/0.09953, allocations: 0 / 355.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.000482/0.1, allocations: 153.4 kB / 355.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.494e-05/0.1001, allocations: 110.8 kB / 355.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.1002, allocations: 153.9 kB / 355.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.1003, allocations: 29.7 kB / 355.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.26e-05/0.1003, allocations: 127.7 kB / 355.9 MB, free: 14.31 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.713e-05/0.1004, allocations: 27.64 kB / 355.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.422e-05/0.1004, allocations: 25.7 kB / 356 MB, free: 14.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.949e-05/0.1005, allocations: 326.8 kB / 356.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.1007, allocations: 35.98 kB / 356.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001535/0.1008, allocations: 84.25 kB / 356.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002454/0.1011, allocations: 98.62 kB / 356.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1011, allocations: 0 / 356.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003323/0.1014, allocations: 153.4 kB / 356.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.1015, allocations: 4 kB / 356.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.1015, allocations: 4 kB / 356.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.1015, allocations: 0 / 356.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005818/0.1021, allocations: 95.88 kB / 356.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/0.1034, allocations: 1.484 MB / 358.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001786/0.1036, allocations: 27.86 kB / 358.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.1036, allocations: 8.125 kB / 358.3 MB, free: 11.76 MB / 302.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 9.418e-05/0.1037, allocations: 113.8 kB / 358.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.05e-05/0.1038, allocations: 19.89 kB / 358.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004607/0.1042, allocations: 151.1 kB / 358.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1043, allocations: 7.938 kB / 358.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-06/0.1043, allocations: 0 / 358.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1043, allocations: 0 / 358.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007131/0.105, allocations: 468 kB / 359 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.105, allocations: 0 / 359 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000143/0.1052, allocations: 23.98 kB / 359 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002062/0.1054, allocations: 32.77 kB / 359.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.1054, allocations: 0 / 359.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009982/0.1064, allocations: 1.402 MB / 360.5 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.1064, allocations: 3.938 kB / 360.5 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005609/0.107, allocations: 297 kB / 360.7 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.815e-05/0.107, allocations: 89.05 kB / 360.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.569e-05/0.1071, allocations: 7.922 kB / 360.8 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.1073, allocations: 16.05 kB / 360.9 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.787e-05/0.1073, allocations: 19.88 kB / 360.9 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.1073, allocations: 0 / 360.9 MB, free: 8.867 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.262e-05/0.1074, allocations: 123.3 kB / 361 MB, free: 8.746 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1074, allocations: 0 / 361 MB, free: 8.746 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002909/0.1077, allocations: 39.94 kB / 361 MB, free: 8.707 MB / 302.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.0008412/0.1086, allocations: 0.8316 MB / 361.9 MB, free: 7.844 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006816/0.1092, allocations: 143.9 kB / 362 MB, free: 7.703 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1093, allocations: 0 / 362 MB, free: 7.703 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003041/0.1096, allocations: 166.8 kB / 362.2 MB, free: 7.527 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.1098, allocations: 8 kB / 362.2 MB, free: 7.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003037/0.1129, allocations: 2.099 MB / 364.3 MB, free: 5.328 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.1131, allocations: 0.708 MB / 365 MB, free: 4.594 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.656e-05/0.1132, allocations: 12.56 kB / 365 MB, free: 4.582 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.173e-05/0.1133, allocations: 43.42 kB / 365 MB, free: 4.539 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1133, allocations: 3.938 kB / 365 MB, free: 4.535 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02441/0.1377, allocations: 3.265 MB / 368.3 MB, free: 1.402 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/11.79, allocations: 11.73 kB / 368.3 MB, free: 1.391 MB / 302.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