Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001525/0.001525, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001662/0.001662, allocations: 202 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3049, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004348/0.3093, allocations: 2.838 MB / 411.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002685/0.312, allocations: 1.285 MB / 412.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003671/0.3124, allocations: 7.938 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004047/0.3129, allocations: 67.42 kB / 412.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007849/0.3137, allocations: 230.7 kB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004003/0.3141, allocations: 127.8 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006221/0.3148, allocations: 471 kB / 413.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002409/0.315, allocations: 84.69 kB / 413.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003343/0.3154, allocations: 191.4 kB / 414 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000293/0.3157, allocations: 219.2 kB / 414.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.663e-05/0.3157, allocations: 40 kB / 414.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003313/0.3161, allocations: 167.9 kB / 414.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.678e-05/0.3162, allocations: 91.73 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001758/0.3164, allocations: 195 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006406/0.317, allocations: 0.5088 MB / 415.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.317, allocations: 0 / 415.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.317, allocations: 0 / 415.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.317, allocations: 0 / 415.2 MB, free: 11.03 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001746/0.3188, allocations: 0.7168 MB / 416 MB, free: 10.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.856e-05/0.3189, allocations: 12.02 kB / 416 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.68e-05/0.319, allocations: 66.67 kB / 416 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002754/0.3193, allocations: 48.73 kB / 416.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006952/0.32, allocations: 333.4 kB / 416.4 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.318e-05/0.3201, allocations: 50.83 kB / 416.5 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001725/0.3202, allocations: 40.3 kB / 416.5 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006171/0.3209, allocations: 328.3 kB / 416.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.3209, allocations: 0 / 416.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.46e-05/0.3209, allocations: 12 kB / 416.8 MB, free: 9.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.321, allocations: 8 kB / 416.8 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006551/0.3216, allocations: 302 kB / 417.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.3234, allocations: 1.156 MB / 418.3 MB, free: 7.785 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005778/0.324, allocations: 291.3 kB / 418.6 MB, free: 7.484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003084/0.3243, allocations: 161.7 kB / 418.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.352e-05/0.3244, allocations: 4 kB / 418.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.3244, allocations: 42.48 kB / 418.8 MB, free: 7.266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.442e-06/0.3244, allocations: 0 / 418.8 MB, free: 7.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.009136/0.3336, allocations: 2.439 MB / 421.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.559e-05/0.3336, allocations: 85.05 kB / 421.3 MB, free: 4.652 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003595/0.334, allocations: 293 kB / 421.6 MB, free: 4.359 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.987e-05/0.3341, allocations: 33.7 kB / 421.6 MB, free: 4.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.3342, allocations: 172.6 kB / 421.8 MB, free: 4.148 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.3343, allocations: 158.6 kB / 421.9 MB, free: 3.992 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.3345, allocations: 78.11 kB / 422 MB, free: 3.906 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.3346, allocations: 342.8 kB / 422.3 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003877/0.335, allocations: 160.8 kB / 422.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004009/0.3354, allocations: 226.7 kB / 422.7 MB, free: 3.168 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007811/0.3362, allocations: 403.8 kB / 423.1 MB, free: 2.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3362, allocations: 0 / 423.1 MB, free: 2.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009718/0.3372, allocations: 496.4 kB / 423.6 MB, free: 2.262 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.3372, allocations: 4 kB / 423.6 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.3372, allocations: 4 kB / 423.6 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.3373, allocations: 4 kB / 423.6 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000591/0.3379, allocations: 116 kB / 423.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.3379, allocations: 7.938 kB / 423.7 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003718/0.3382, allocations: 35.97 kB / 423.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.401e-05/0.3383, allocations: 8 kB / 423.8 MB, free: 2.086 MB / 334.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.0001803/0.3385, allocations: 157.7 kB / 423.9 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.282e-05/0.3386, allocations: 35.81 kB / 424 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001788/0.3404, allocations: 0.6564 MB / 424.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3404, allocations: 4 kB / 424.6 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.3404, allocations: 4 kB / 424.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-06/0.3404, allocations: 0 / 424.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002968/0.3434, allocations: 1.279 MB / 425.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.3434, allocations: 0 / 425.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004291/0.3438, allocations: 87.88 kB / 426 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001505/0.3454, allocations: 272.5 kB / 426.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.906e-05/0.3454, allocations: 15.98 kB / 426.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003758/0.3492, allocations: 2.439 MB / 428.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3492, allocations: 0 / 428.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002125/0.3513, allocations: 1.023 MB / 429.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001623/0.3515, allocations: 148.8 kB / 429.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.526e-05/0.3516, allocations: 8 kB / 429.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004208/0.352, allocations: 31.97 kB / 429.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.3521, allocations: 32.39 kB / 430 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.401e-05/0.3521, allocations: 19.98 kB / 430 MB, free: 11.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000204/0.3524, allocations: 212.5 kB / 430.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.3524, allocations: 0 / 430.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005373/0.3529, allocations: 115.9 kB / 430.3 MB, free: 11.3 MB / 350.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.002577/0.3555, allocations: 1.59 MB / 431.9 MB, free: 9.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009308/0.3564, allocations: 430 kB / 432.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3565, allocations: 0 / 432.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006692/0.3571, allocations: 393.2 kB / 432.7 MB, free: 8.867 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004624/0.3576, allocations: 44.23 kB / 432.7 MB, free: 8.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005241/0.3629, allocations: 3.874 MB / 436.6 MB, free: 4.824 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003206/0.3632, allocations: 0.7852 MB / 437.4 MB, free: 4.008 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001777/0.3634, allocations: 38.95 kB / 437.4 MB, free: 3.973 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002138/0.3636, allocations: 123.4 kB / 437.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3636, allocations: 0 / 437.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03446/0.3981, allocations: 9.696 MB / 447.2 MB, free: 10.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/11.99, allocations: 18.72 kB / 447.3 MB, free: 10.35 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches