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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 105.5 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 188 kB / 23.72 MB, free: 4.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.51/1.51, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 43.94 kB / 370.4 MB, free: 9.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3312, allocations: 52.19 MB / 422.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004838/0.336, allocations: 2.864 MB / 425.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002311/0.3384, allocations: 1.234 MB / 426.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001689/0.3385, allocations: 8 kB / 426.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002814/0.3388, allocations: 67.42 kB / 426.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005671/0.3394, allocations: 226.7 kB / 427 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002718/0.3396, allocations: 127.7 kB / 427.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005299/0.3402, allocations: 455.1 kB / 427.6 MB, free: 9.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/0.3403, allocations: 68.27 kB / 427.7 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002705/0.3406, allocations: 191.3 kB / 427.8 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003319/0.3409, allocations: 215.2 kB / 428.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.333e-05/0.341, allocations: 44 kB / 428.1 MB, free: 9.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002961/0.3413, allocations: 167.9 kB / 428.3 MB, free: 8.969 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.721e-05/0.3414, allocations: 91.66 kB / 428.4 MB, free: 8.879 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001826/0.3416, allocations: 183.2 kB / 428.5 MB, free: 8.699 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006783/0.3422, allocations: 0.5068 MB / 429 MB, free: 8.191 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3422, allocations: 0 / 429 MB, free: 8.191 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3422, allocations: 0 / 429 MB, free: 8.191 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.3423, allocations: 0 / 429 MB, free: 8.191 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.001714/0.344, allocations: 0.6453 MB / 429.7 MB, free: 7.516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.344, allocations: 8.031 kB / 429.7 MB, free: 7.508 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.684e-05/0.3441, allocations: 62.73 kB / 429.8 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.675e-05/0.3442, allocations: 36.7 kB / 429.8 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005473/0.3447, allocations: 275.4 kB / 430.1 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.3449, allocations: 106.3 kB / 430.2 MB, free: 6.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001633/0.345, allocations: 40.3 kB / 430.2 MB, free: 6.941 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006221/0.3456, allocations: 321.6 kB / 430.5 MB, free: 6.617 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.3457, allocations: 0 / 430.5 MB, free: 6.617 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.456e-05/0.3457, allocations: 12 kB / 430.5 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.3457, allocations: 4 kB / 430.5 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006955/0.3464, allocations: 309.7 kB / 430.8 MB, free: 6.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001917/0.3483, allocations: 1.116 MB / 431.9 MB, free: 5.113 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006471/0.349, allocations: 293 kB / 432.2 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003299/0.3493, allocations: 157.7 kB / 432.4 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.3493, allocations: 7.938 kB / 432.4 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.764e-05/0.3494, allocations: 42.55 kB / 432.4 MB, free: 4.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.423e-06/0.3494, allocations: 0 / 432.4 MB, free: 4.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.009264/0.3586, allocations: 2.266 MB / 434.7 MB, free: 2.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.372e-05/0.3587, allocations: 81.11 kB / 434.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003628/0.3591, allocations: 293.1 kB / 435.1 MB, free: 1.895 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.848e-05/0.3591, allocations: 29.7 kB / 435.1 MB, free: 1.859 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.3592, allocations: 176.6 kB / 435.3 MB, free: 1.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/0.3594, allocations: 150.7 kB / 435.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/0.3595, allocations: 78.11 kB / 435.5 MB, free: 1.445 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.3597, allocations: 346.7 kB / 435.8 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004029/0.3601, allocations: 160.8 kB / 436 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004515/0.3605, allocations: 226.7 kB / 436.2 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008435/0.3614, allocations: 403.6 kB / 436.6 MB, free: 296 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3614, allocations: 8 kB / 436.6 MB, free: 288 kB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001043/0.3624, allocations: 480.7 kB / 437.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.3624, allocations: 8 kB / 437.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.3625, allocations: 0 / 437.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.447e-05/0.3625, allocations: 8.188 kB / 437.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006115/0.3631, allocations: 119.8 kB / 437.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.3631, allocations: 4 kB / 437.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003879/0.3635, allocations: 31.98 kB / 437.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.201e-05/0.3635, allocations: 19.98 kB / 437.3 MB, free: 15.62 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.0001943/0.3637, allocations: 153.7 kB / 437.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.439e-05/0.3638, allocations: 31.81 kB / 437.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001897/0.3657, allocations: 0.6601 MB / 438.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.3657, allocations: 4 kB / 438.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.3657, allocations: 0 / 438.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.3657, allocations: 3.984 kB / 438.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003256/0.369, allocations: 1.247 MB / 439.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.369, allocations: 0 / 439.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004471/0.3695, allocations: 87.89 kB / 439.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001586/0.371, allocations: 276.5 kB / 439.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.715e-05/0.3711, allocations: 12 kB / 439.7 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004222/0.3753, allocations: 2.336 MB / 442.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.247e-06/0.3753, allocations: 12.02 kB / 442.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002368/0.3777, allocations: 0.9998 MB / 443.1 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001791/0.3779, allocations: 67.8 kB / 443.1 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.769e-05/0.3779, allocations: 8 kB / 443.2 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004383/0.3783, allocations: 35.97 kB / 443.2 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.3785, allocations: 36.36 kB / 443.2 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.14e-05/0.3785, allocations: 12 kB / 443.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002659/0.3788, allocations: 216.5 kB / 443.5 MB, free: 9.223 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3788, allocations: 0 / 443.5 MB, free: 9.223 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005733/0.3793, allocations: 111.9 kB / 443.6 MB, free: 9.113 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.002921/0.3823, allocations: 1.602 MB / 445.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000994/0.3832, allocations: 410.1 kB / 445.6 MB, free: 7.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3833, allocations: 0 / 445.6 MB, free: 7.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007193/0.384, allocations: 369.2 kB / 445.9 MB, free: 6.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004997/0.3845, allocations: 44.59 kB / 446 MB, free: 6.664 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006052/0.3905, allocations: 3.854 MB / 449.8 MB, free: 2.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004886/0.391, allocations: 0.7853 MB / 450.6 MB, free: 1.863 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002064/0.3912, allocations: 42.95 kB / 450.6 MB, free: 1.824 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002483/0.3915, allocations: 119.4 kB / 450.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3915, allocations: 0 / 450.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04436/0.4358, allocations: 10.05 MB / 460.8 MB, free: 7.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.36, allocations: 14.86 kB / 460.8 MB, free: 7.809 MB / 366.1 MB " [Timeout remaining time 647] (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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.0556106849981]