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.001217/0.001217, allocations: 117.2 kB / 17.78 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.001303/0.001303, allocations: 207.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2799, allocations: 50.53 MB / 408.7 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.00401/0.284, allocations: 2.842 MB / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002021/0.286, allocations: 1.285 MB / 412.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001883/0.2862, allocations: 7.938 kB / 412.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002677/0.2865, allocations: 71.38 kB / 413 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005405/0.2871, allocations: 226.7 kB / 413.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002764/0.2874, allocations: 127.8 kB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005496/0.2879, allocations: 467 kB / 413.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002253/0.2882, allocations: 92.67 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002686/0.2884, allocations: 183.5 kB / 414 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002659/0.2887, allocations: 219.2 kB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.724e-05/0.2888, allocations: 40 kB / 414.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002733/0.2891, allocations: 175.8 kB / 414.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.956e-05/0.2891, allocations: 91.72 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001576/0.2893, allocations: 183.1 kB / 414.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005628/0.2899, allocations: 0.5205 MB / 415.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2899, allocations: 0 / 415.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2899, allocations: 0 / 415.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.2899, allocations: 0 / 415.2 MB, free: 11.05 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.001567/0.2915, allocations: 0.7129 MB / 416 MB, free: 10.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.812e-05/0.2916, allocations: 12.02 kB / 416 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.899e-05/0.2916, allocations: 62.73 kB / 416 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/0.2918, allocations: 48.73 kB / 416.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005183/0.2924, allocations: 337.3 kB / 416.4 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.478e-05/0.2925, allocations: 50.83 kB / 416.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001558/0.2926, allocations: 40.3 kB / 416.5 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006061/0.2932, allocations: 320.5 kB / 416.8 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.2933, allocations: 7.875 kB / 416.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.369e-05/0.2933, allocations: 12 kB / 416.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.2933, allocations: 8 kB / 416.8 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006572/0.294, allocations: 294 kB / 417.1 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/0.2957, allocations: 1.16 MB / 418.3 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005882/0.2963, allocations: 295.2 kB / 418.6 MB, free: 7.512 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003151/0.2966, allocations: 164.6 kB / 418.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.2967, allocations: 7.938 kB / 418.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.2967, allocations: 42.48 kB / 418.8 MB, free: 7.289 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.333e-06/0.2967, allocations: 0 / 418.8 MB, free: 7.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.008991/0.3057, allocations: 2.427 MB / 421.2 MB, free: 4.785 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.258e-05/0.3058, allocations: 81.11 kB / 421.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003479/0.3061, allocations: 293 kB / 421.6 MB, free: 4.395 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.065e-05/0.3062, allocations: 29.7 kB / 421.6 MB, free: 4.359 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.3063, allocations: 176.6 kB / 421.8 MB, free: 4.184 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.3064, allocations: 158.6 kB / 421.9 MB, free: 4.027 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000142/0.3066, allocations: 78.11 kB / 422 MB, free: 3.941 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.3067, allocations: 342.8 kB / 422.3 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003803/0.3071, allocations: 160.8 kB / 422.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004148/0.3075, allocations: 234.6 kB / 422.7 MB, free: 3.195 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007911/0.3083, allocations: 395.8 kB / 423.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3084, allocations: 0 / 423.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009844/0.3093, allocations: 496.4 kB / 423.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.3094, allocations: 7.938 kB / 423.6 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3094, allocations: 4 kB / 423.6 MB, free: 2.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.3094, allocations: 4 kB / 423.6 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006505/0.3101, allocations: 116 kB / 423.7 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.709e-06/0.3101, allocations: 4 kB / 423.7 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003701/0.3105, allocations: 35.97 kB / 423.8 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.367e-05/0.3105, allocations: 12 kB / 423.8 MB, free: 2.117 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.0001605/0.3107, allocations: 161.6 kB / 423.9 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.639e-05/0.3108, allocations: 35.81 kB / 424 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001753/0.3125, allocations: 0.6525 MB / 424.6 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.3125, allocations: 4 kB / 424.6 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.3126, allocations: 4 kB / 424.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.3126, allocations: 0 / 424.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003006/0.3156, allocations: 1.287 MB / 425.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.3156, allocations: 0 / 425.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004408/0.316, allocations: 87.88 kB / 426 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0015/0.3176, allocations: 268.5 kB / 426.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.877e-05/0.3176, allocations: 15.98 kB / 426.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003928/0.3215, allocations: 2.451 MB / 428.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.3216, allocations: 0 / 428.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002232/0.3238, allocations: 1.019 MB / 429.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000179/0.324, allocations: 148.8 kB / 429.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.851e-05/0.3241, allocations: 8 kB / 429.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004332/0.3245, allocations: 31.97 kB / 429.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.3246, allocations: 36.33 kB / 430 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.201e-05/0.3247, allocations: 19.98 kB / 430 MB, free: 11.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002196/0.3249, allocations: 212.5 kB / 430.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3249, allocations: 0 / 430.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005468/0.3254, allocations: 115.9 kB / 430.3 MB, free: 11.32 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.002671/0.3281, allocations: 1.583 MB / 431.9 MB, free: 9.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009288/0.3291, allocations: 433.9 kB / 432.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3291, allocations: 0 / 432.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006655/0.3297, allocations: 397.3 kB / 432.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004635/0.3302, allocations: 39.92 kB / 432.7 MB, free: 8.848 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005581/0.3358, allocations: 3.866 MB / 436.6 MB, free: 4.852 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003805/0.3362, allocations: 0.7852 MB / 437.4 MB, free: 4.035 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002081/0.3364, allocations: 42.94 kB / 437.4 MB, free: 3.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002159/0.3366, allocations: 123.4 kB / 437.6 MB, free: 3.875 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3367, allocations: 0 / 437.6 MB, free: 3.875 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03287/0.3695, allocations: 9.696 MB / 447.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.92, allocations: 11.86 kB / 447.3 MB, free: 10.38 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