Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00192/0.00192, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002363/0.002363, allocations: 207.4 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.472/1.472, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001653, allocations: 51.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2653, allocations: 53.37 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004382/0.2697, allocations: 2.683 MB / 433.8 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.2718, allocations: 1.195 MB / 435 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001744/0.272, allocations: 11.94 kB / 435 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002835/0.2723, allocations: 65.11 kB / 435 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000571/0.2729, allocations: 226.7 kB / 435.3 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003076/0.2732, allocations: 135.7 kB / 435.4 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004936/0.2737, allocations: 463.1 kB / 435.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.2738, allocations: 60.81 kB / 435.9 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002951/0.2741, allocations: 203.3 kB / 436.1 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002978/0.2744, allocations: 191.2 kB / 436.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.108e-05/0.2745, allocations: 40 kB / 436.3 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000293/0.2748, allocations: 167.9 kB / 436.5 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.008e-05/0.2748, allocations: 91.66 kB / 436.6 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001604/0.275, allocations: 155.3 kB / 436.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006254/0.2756, allocations: 0.5175 MB / 437.3 MB, free: 452 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.2756, allocations: 0 / 437.3 MB, free: 452 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2756, allocations: 0 / 437.3 MB, free: 452 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.2756, allocations: 0 / 437.3 MB, free: 452 kB / 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.001614/0.2773, allocations: 0.6414 MB / 437.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.2773, allocations: 8.031 kB / 437.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.932e-05/0.2774, allocations: 62.72 kB / 438 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001822/0.2776, allocations: 44.73 kB / 438 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005088/0.2781, allocations: 291.2 kB / 438.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.946e-05/0.2782, allocations: 98.33 kB / 438.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000155/0.2783, allocations: 44.3 kB / 438.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006401/0.279, allocations: 347.3 kB / 438.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.279, allocations: 0 / 438.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.157e-05/0.279, allocations: 8 kB / 438.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.279, allocations: 8 kB / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007005/0.2797, allocations: 297.7 kB / 439.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001791/0.2815, allocations: 1.042 MB / 440.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006148/0.2821, allocations: 273 kB / 440.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003328/0.2824, allocations: 161.6 kB / 440.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.699e-05/0.2825, allocations: 8 kB / 440.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.2825, allocations: 38.48 kB / 440.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.724e-06/0.2825, allocations: 4 kB / 440.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.009253/0.2918, allocations: 2.276 MB / 442.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/0.2918, allocations: 81.11 kB / 442.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003807/0.2922, allocations: 293 kB / 443.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.277e-05/0.2922, allocations: 33.7 kB / 443.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.2924, allocations: 164.7 kB / 443.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001341/0.2925, allocations: 158.6 kB / 443.6 MB, free: 9.828 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.2927, allocations: 78.11 kB / 443.7 MB, free: 9.742 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.2928, allocations: 354.7 kB / 444 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003991/0.2932, allocations: 160.7 kB / 444.2 MB, free: 9.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004446/0.2937, allocations: 230.6 kB / 444.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008787/0.2945, allocations: 403.8 kB / 444.8 MB, free: 8.574 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2945, allocations: 0 / 444.8 MB, free: 8.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001118/0.2957, allocations: 488.7 kB / 445.3 MB, free: 8.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.2957, allocations: 4 kB / 445.3 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.2957, allocations: 0 / 445.3 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.2957, allocations: 4 kB / 445.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006238/0.2963, allocations: 124 kB / 445.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.799e-05/0.2964, allocations: 11.97 kB / 445.4 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004009/0.2968, allocations: 27.98 kB / 445.4 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.893e-05/0.2968, allocations: 23.98 kB / 445.4 MB, free: 7.898 MB / 350.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.0002216/0.297, allocations: 157.7 kB / 445.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/0.2971, allocations: 35.77 kB / 445.6 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002002/0.2991, allocations: 0.6408 MB / 446.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.2991, allocations: 8 kB / 446.3 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.2992, allocations: 4 kB / 446.3 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.2992, allocations: 3.984 kB / 446.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003324/0.3025, allocations: 1.173 MB / 447.5 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.3025, allocations: 0 / 447.5 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000453/0.3029, allocations: 95.88 kB / 447.6 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001578/0.3045, allocations: 264.6 kB / 447.8 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.136e-05/0.3046, allocations: 12 kB / 447.8 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004298/0.3089, allocations: 2.305 MB / 450.1 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3089, allocations: 0 / 450.1 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002439/0.3113, allocations: 1.011 MB / 451.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002247/0.3115, allocations: 75.73 kB / 451.2 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.655e-05/0.3116, allocations: 12 kB / 451.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004415/0.312, allocations: 23.98 kB / 451.3 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.3122, allocations: 44.3 kB / 451.3 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.225e-05/0.3122, allocations: 8 kB / 451.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000258/0.3124, allocations: 220.4 kB / 451.5 MB, free: 1.609 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3124, allocations: 0 / 451.5 MB, free: 1.609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005763/0.313, allocations: 115.9 kB / 451.6 MB, free: 1.496 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.002852/0.3159, allocations: 1.583 MB / 453.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.3169, allocations: 417.9 kB / 453.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3169, allocations: 0 / 453.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007379/0.3176, allocations: 364.9 kB / 454 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005116/0.3181, allocations: 47.09 kB / 454 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006234/0.3244, allocations: 3.871 MB / 457.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.3246, allocations: 183.1 kB / 458.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002227/0.3248, allocations: 46.94 kB / 458.1 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002281/0.325, allocations: 119.4 kB / 458.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.325, allocations: 3.938 kB / 458.2 MB, free: 10.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04397/0.369, allocations: 10.1 MB / 468.3 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.12, allocations: 7.234 kB / 468.4 MB, free: 0.7656 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.793259380850941]