Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",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.001606/0.001606, allocations: 110.2 kB / 16.92 MB, free: 5.785 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.001773/0.001774, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.115/2.115, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001714/0.001714, allocations: 47.83 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1591/0.1609, allocations: 49.45 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.006435/0.1674, allocations: 2.808 MB / 353 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003105/0.1705, allocations: 1.234 MB / 354.2 MB, free: 268 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002583/0.1708, allocations: 4 kB / 354.2 MB, free: 264 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000412/0.1713, allocations: 75.34 kB / 354.3 MB, free: 188 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008859/0.1722, allocations: 227 kB / 354.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004014/0.1726, allocations: 111.8 kB / 354.6 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006552/0.1733, allocations: 462.8 kB / 355.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002619/0.1735, allocations: 80.66 kB / 355.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003507/0.1739, allocations: 191.4 kB / 355.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004211/0.1743, allocations: 219.2 kB / 355.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001048/0.1745, allocations: 43.94 kB / 355.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004449/0.1749, allocations: 155.9 kB / 355.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001315/0.1751, allocations: 95.7 kB / 355.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002554/0.1753, allocations: 183.2 kB / 356 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008401/0.1762, allocations: 0.4945 MB / 356.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1762, allocations: 0 / 356.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1762, allocations: 4 kB / 356.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.1763, allocations: 4 kB / 356.5 MB, free: 13.94 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.002368/0.1786, allocations: 0.6976 MB / 357.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.807e-05/0.1787, allocations: 12.03 kB / 357.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00011/0.1788, allocations: 62.73 kB / 357.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001346/0.179, allocations: 36.56 kB / 357.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006776/0.1797, allocations: 329.2 kB / 357.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000112/0.1798, allocations: 50.83 kB / 357.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002276/0.1801, allocations: 44.23 kB / 357.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009285/0.181, allocations: 324.4 kB / 358.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.181, allocations: 4 kB / 358.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.868e-05/0.1811, allocations: 8 kB / 358.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/0.1811, allocations: 8 kB / 358.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001037/0.1822, allocations: 298 kB / 358.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002628/0.1848, allocations: 1.175 MB / 359.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009488/0.1858, allocations: 295.5 kB / 359.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005292/0.1863, allocations: 172.4 kB / 360 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.657e-05/0.1864, allocations: 4 kB / 360 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.519e-05/0.1864, allocations: 38.56 kB / 360 MB, free: 10.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 2.846e-06/0.1865, allocations: 0 / 360 MB, free: 10.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.01428/0.2007, allocations: 2.413 MB / 362.5 MB, free: 7.707 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.741e-05/0.2009, allocations: 81.11 kB / 362.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005835/0.2015, allocations: 289 kB / 362.8 MB, free: 7.316 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.314e-05/0.2016, allocations: 33.7 kB / 362.9 MB, free: 7.277 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00017/0.2017, allocations: 164.4 kB / 363 MB, free: 7.113 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002005/0.202, allocations: 145.8 kB / 363.2 MB, free: 6.969 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002461/0.2022, allocations: 86.02 kB / 363.2 MB, free: 6.879 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.2024, allocations: 346.7 kB / 363.6 MB, free: 6.531 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006529/0.2031, allocations: 160.8 kB / 363.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007418/0.2038, allocations: 230.7 kB / 364 MB, free: 6.129 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/0.2053, allocations: 411.6 kB / 364.4 MB, free: 5.707 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.2053, allocations: 4 kB / 364.4 MB, free: 5.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00182/0.2071, allocations: 488.3 kB / 364.8 MB, free: 5.219 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.231e-05/0.2072, allocations: 8 kB / 364.9 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.2072, allocations: 0 / 364.9 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.954e-05/0.2072, allocations: 4 kB / 364.9 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009835/0.2082, allocations: 119.8 kB / 365 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.793e-05/0.2083, allocations: 4 kB / 365 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006875/0.209, allocations: 36.08 kB / 365 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.64e-05/0.2091, allocations: 19.98 kB / 365 MB, free: 5.031 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003359/0.2094, allocations: 149.7 kB / 365.2 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001844/0.2096, allocations: 27.72 kB / 365.2 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003087/0.2127, allocations: 0.6563 MB / 365.9 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-05/0.2127, allocations: 8 kB / 365.9 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.2128, allocations: 0 / 365.9 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.2128, allocations: 3.984 kB / 365.9 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005431/0.2182, allocations: 1.283 MB / 367.2 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.2183, allocations: 0 / 367.2 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007904/0.2191, allocations: 91.88 kB / 367.2 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002667/0.2218, allocations: 272.5 kB / 367.5 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.699e-05/0.2219, allocations: 8 kB / 367.5 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3231/0.545, allocations: 2.439 MB / 370 MB, free: 25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/0.5451, allocations: 1.75 kB / 370 MB, free: 25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004198/0.5493, allocations: 1.004 MB / 371 MB, free: 24.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000327/0.5497, allocations: 152 kB / 371.1 MB, free: 24.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.5498, allocations: 13.2 kB / 371.1 MB, free: 24.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007468/0.5505, allocations: 28.2 kB / 371.2 MB, free: 24.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002359/0.5508, allocations: 34.94 kB / 371.2 MB, free: 24.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.571e-05/0.5509, allocations: 17.39 kB / 371.2 MB, free: 24.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000396/0.5513, allocations: 211.2 kB / 371.4 MB, free: 24.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5513, allocations: 0 / 371.4 MB, free: 24.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001105/0.5524, allocations: 117.6 kB / 371.5 MB, free: 24.61 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004388/0.5568, allocations: 1.594 MB / 373.1 MB, free: 23.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001947/0.5588, allocations: 444.4 kB / 373.6 MB, free: 23.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.5588, allocations: 4.281 kB / 373.6 MB, free: 23.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001125/0.56, allocations: 378.8 kB / 373.9 MB, free: 23.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.561, allocations: 48.05 kB / 374 MB, free: 23.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009282/0.5703, allocations: 3.848 MB / 377.8 MB, free: 21.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.5707, allocations: 0.7867 MB / 378.6 MB, free: 20.44 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000435/0.5711, allocations: 46.38 kB / 378.7 MB, free: 20.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003337/0.5715, allocations: 120.9 kB / 378.8 MB, free: 20.34 MB / 302.1 MB Notification: Performance of SimCode: time 1.373e-06/0.5715, allocations: 0 / 378.8 MB, free: 20.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05315/0.6247, allocations: 9.537 MB / 388.3 MB, free: 17.4 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.56/18.18, allocations: 9.625 kB / 388.3 MB, free: 17.39 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches