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.001164/0.001164, allocations: 114.1 kB / 17.06 MB, free: 6.016 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.001173/0.001173, allocations: 191 kB / 18 MB, free: 5.098 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.306/1.306, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 47.92 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.3124, allocations: 49.44 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004624/0.3171, allocations: 2.82 MB / 403.1 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002157/0.3193, allocations: 1.226 MB / 404.3 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003148/0.3196, allocations: 7.938 kB / 404.3 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003453/0.32, allocations: 67.41 kB / 404.4 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007627/0.3208, allocations: 234.7 kB / 404.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003374/0.3211, allocations: 115.8 kB / 404.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005758/0.3217, allocations: 475 kB / 405.2 MB, free: 3.914 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002233/0.322, allocations: 72.73 kB / 405.2 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003298/0.3223, allocations: 187.4 kB / 405.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003548/0.3227, allocations: 219.2 kB / 405.6 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.74e-05/0.3228, allocations: 44 kB / 405.7 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003551/0.3231, allocations: 159.9 kB / 405.8 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.3232, allocations: 91.66 kB / 405.9 MB, free: 3.152 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002135/0.3235, allocations: 191.2 kB / 406.1 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000667/0.3241, allocations: 0.5049 MB / 406.6 MB, free: 2.461 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3241, allocations: 3.938 kB / 406.6 MB, free: 2.457 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3242, allocations: 0 / 406.6 MB, free: 2.457 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.448e-05/0.3242, allocations: 0 / 406.6 MB, free: 2.457 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001714/0.3259, allocations: 0.7168 MB / 407.3 MB, free: 1.691 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.3259, allocations: 8.031 kB / 407.3 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.792e-05/0.326, allocations: 58.73 kB / 407.4 MB, free: 1.617 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.942e-05/0.3261, allocations: 40.7 kB / 407.4 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005655/0.3267, allocations: 329.5 kB / 407.8 MB, free: 1.215 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.142e-05/0.3268, allocations: 54.81 kB / 407.8 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001593/0.3269, allocations: 36.31 kB / 407.8 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000592/0.3275, allocations: 320.5 kB / 408.2 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.3276, allocations: 0 / 408.2 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.405e-05/0.3276, allocations: 12 kB / 408.2 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.3276, allocations: 11.94 kB / 408.2 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006364/0.3283, allocations: 298 kB / 408.5 MB, free: 492 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.33, allocations: 1.164 MB / 409.6 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005922/0.3306, allocations: 293 kB / 409.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003307/0.3309, allocations: 169.6 kB / 410.1 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.3309, allocations: 8 kB / 410.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.331, allocations: 38.5 kB / 410.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.583e-06/0.331, allocations: 0 / 410.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.009014/0.34, allocations: 2.413 MB / 412.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.3401, allocations: 85.11 kB / 412.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.3404, allocations: 289 kB / 412.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.702e-05/0.3404, allocations: 37.7 kB / 412.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.3405, allocations: 160.7 kB / 413.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.3407, allocations: 162.6 kB / 413.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.3408, allocations: 82.11 kB / 413.3 MB, free: 11.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.3409, allocations: 338.8 kB / 413.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003858/0.3413, allocations: 164.8 kB / 413.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000409/0.3418, allocations: 230.6 kB / 414.1 MB, free: 10.63 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008104/0.3426, allocations: 407.6 kB / 414.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.3426, allocations: 0 / 414.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009694/0.3436, allocations: 488.4 kB / 414.9 MB, free: 9.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.3436, allocations: 10.34 kB / 414.9 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3436, allocations: 0 / 414.9 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.3436, allocations: 7.938 kB / 415 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005728/0.3442, allocations: 120 kB / 415.1 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.3442, allocations: 4 kB / 415.1 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003697/0.3446, allocations: 35.91 kB / 415.1 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.215e-05/0.3446, allocations: 16 kB / 415.1 MB, free: 9.543 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.0001573/0.3448, allocations: 161.6 kB / 415.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.869e-05/0.3449, allocations: 31.81 kB / 415.3 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001738/0.3466, allocations: 0.6564 MB / 416 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.3467, allocations: 4 kB / 416 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.3467, allocations: 0 / 416 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.3467, allocations: 0 / 416 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003011/0.3497, allocations: 1.276 MB / 417.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.3497, allocations: 4 kB / 417.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004379/0.3502, allocations: 95.88 kB / 417.3 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001507/0.3517, allocations: 268.5 kB / 417.6 MB, free: 6.973 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.448e-05/0.3517, allocations: 11.98 kB / 417.6 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003795/0.3555, allocations: 2.443 MB / 420.1 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.3555, allocations: 0 / 420.1 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002191/0.3577, allocations: 1.015 MB / 421.1 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001772/0.3579, allocations: 144.9 kB / 421.2 MB, free: 3.184 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.813e-05/0.358, allocations: 12 kB / 421.2 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004248/0.3584, allocations: 31.97 kB / 421.3 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.713e-05/0.3585, allocations: 40.33 kB / 421.3 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.011e-05/0.3586, allocations: 11.98 kB / 421.3 MB, free: 3.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002048/0.3588, allocations: 212.4 kB / 421.5 MB, free: 2.879 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3588, allocations: 0 / 421.5 MB, free: 2.879 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005491/0.3593, allocations: 123.9 kB / 421.6 MB, free: 2.758 MB / 334.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.002556/0.3619, allocations: 1.587 MB / 423.2 MB, free: 1.141 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009043/0.3628, allocations: 433.9 kB / 423.7 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3628, allocations: 0 / 423.7 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006575/0.3635, allocations: 389.3 kB / 424 MB, free: 336 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004827/0.364, allocations: 42.16 kB / 424.1 MB, free: 296 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005425/0.3694, allocations: 3.862 MB / 427.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.3698, allocations: 0.7852 MB / 428.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001906/0.37, allocations: 34.97 kB / 428.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002164/0.3702, allocations: 119.4 kB / 428.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3702, allocations: 96 / 428.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03011/0.4003, allocations: 9.68 MB / 438.6 MB, free: 1.855 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.89, allocations: 4.406 kB / 438.6 MB, free: 1.852 MB / 350.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