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.001726/0.001726, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002114/0.002114, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.49/1.49, allocations: 230.6 MB / 257.5 MB, free: 8 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.001563/0.001563, allocations: 51.91 kB / 377.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.2998, allocations: 53.35 MB / 431.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004564/0.3043, allocations: 2.874 MB / 434 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00235/0.3067, allocations: 1.308 MB / 435.3 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001767/0.3069, allocations: 4 kB / 435.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002993/0.3072, allocations: 67.42 kB / 435.4 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005762/0.3077, allocations: 230.7 kB / 435.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003101/0.3081, allocations: 135.7 kB / 435.7 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005275/0.3086, allocations: 455.1 kB / 436.2 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000177/0.3088, allocations: 73.86 kB / 436.3 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003242/0.3091, allocations: 191.4 kB / 436.5 MB, free: 1.516 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003397/0.3094, allocations: 219.2 kB / 436.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.601e-05/0.3095, allocations: 40 kB / 436.7 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003364/0.3098, allocations: 175.8 kB / 436.9 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.3099, allocations: 95.66 kB / 437 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002092/0.3101, allocations: 183.2 kB / 437.1 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007388/0.3109, allocations: 0.5131 MB / 437.7 MB, free: 312 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.3109, allocations: 0 / 437.7 MB, free: 312 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.572e-06/0.3109, allocations: 4 kB / 437.7 MB, free: 308 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.3109, allocations: 0 / 437.7 MB, free: 308 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.001852/0.3127, allocations: 0.6414 MB / 438.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.3128, allocations: 8.031 kB / 438.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.376e-05/0.3129, allocations: 62.72 kB / 438.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000219/0.3131, allocations: 48.75 kB / 438.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006204/0.3137, allocations: 291.2 kB / 438.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001531/0.3139, allocations: 110.2 kB / 438.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001716/0.3141, allocations: 36.31 kB / 438.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006749/0.3147, allocations: 321.6 kB / 439.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.3147, allocations: 0 / 439.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.3148, allocations: 12 kB / 439.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.987e-05/0.3148, allocations: 8 kB / 439.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007079/0.3155, allocations: 301.7 kB / 439.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.3174, allocations: 1.116 MB / 440.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006368/0.318, allocations: 277 kB / 440.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003423/0.3184, allocations: 160.5 kB / 441 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.935e-05/0.3184, allocations: 4 kB / 441 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.3184, allocations: 38.56 kB / 441.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.503e-06/0.3184, allocations: 0 / 441.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.009164/0.3276, allocations: 2.276 MB / 443.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.749e-05/0.3277, allocations: 85.11 kB / 443.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003778/0.3281, allocations: 297 kB / 443.7 MB, free: 9.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.109e-05/0.3281, allocations: 33.64 kB / 443.7 MB, free: 9.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.3282, allocations: 168.7 kB / 443.9 MB, free: 9.781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.3284, allocations: 158.6 kB / 444.1 MB, free: 9.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.3285, allocations: 82.11 kB / 444.1 MB, free: 9.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.3287, allocations: 342.8 kB / 444.5 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004043/0.3291, allocations: 160.8 kB / 444.6 MB, free: 9.035 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004462/0.3296, allocations: 230.7 kB / 444.9 MB, free: 8.793 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008457/0.3304, allocations: 403.8 kB / 445.3 MB, free: 8.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.3304, allocations: 0 / 445.3 MB, free: 8.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00103/0.3314, allocations: 484.8 kB / 445.7 MB, free: 7.898 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.3315, allocations: 7.984 kB / 445.7 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.3315, allocations: 4 kB / 445.7 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.3315, allocations: 4 kB / 445.7 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005988/0.3321, allocations: 115.8 kB / 445.9 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.3321, allocations: 8.125 kB / 445.9 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003843/0.3325, allocations: 31.98 kB / 445.9 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.685e-05/0.3325, allocations: 15.98 kB / 445.9 MB, free: 7.715 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.0001877/0.3327, allocations: 157.7 kB / 446.1 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.191e-05/0.3328, allocations: 31.81 kB / 446.1 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001924/0.3347, allocations: 0.6485 MB / 446.7 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.3347, allocations: 12 kB / 446.8 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3347, allocations: 3.938 kB / 446.8 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.3347, allocations: 0 / 446.8 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003254/0.338, allocations: 1.247 MB / 448 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.338, allocations: 0 / 448 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004449/0.3384, allocations: 91.88 kB / 448.1 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001562/0.34, allocations: 264.6 kB / 448.4 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.882e-05/0.34, allocations: 15.98 kB / 448.4 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004132/0.3442, allocations: 2.34 MB / 450.7 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.331e-05/0.3442, allocations: 4.031 kB / 450.7 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002291/0.3465, allocations: 1.011 MB / 451.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001743/0.3466, allocations: 71.72 kB / 451.8 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.631e-05/0.3467, allocations: 12 kB / 451.8 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000431/0.3471, allocations: 27.98 kB / 451.8 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.3473, allocations: 36.36 kB / 451.9 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.109e-05/0.3473, allocations: 16 kB / 451.9 MB, free: 1.527 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002538/0.3475, allocations: 216.5 kB / 452.1 MB, free: 1.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3475, allocations: 0 / 452.1 MB, free: 1.312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005709/0.3481, allocations: 115.9 kB / 452.2 MB, free: 1.199 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.00282/0.3509, allocations: 1.588 MB / 453.8 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009699/0.3519, allocations: 410 kB / 454.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3519, allocations: 3.938 kB / 454.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007003/0.3526, allocations: 373.2 kB / 454.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005029/0.3531, allocations: 44.48 kB / 454.6 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006043/0.3592, allocations: 3.871 MB / 458.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004539/0.3596, allocations: 0.7892 MB / 459.3 MB, free: 9.941 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002059/0.3598, allocations: 43.05 kB / 459.3 MB, free: 9.902 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002355/0.36, allocations: 123.2 kB / 459.4 MB, free: 9.781 MB / 366.1 MB Notification: Performance of SimCode: time 1.273e-06/0.36, allocations: 0 / 459.4 MB, free: 9.781 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04301/0.4031, allocations: 10.09 MB / 469.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.92/13.32, allocations: 3.984 kB / 469.5 MB, free: 15.85 MB / 382.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: 16.02774670099825]