Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.001807/0.001807, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001849/0.001849, allocations: 211.9 kB / 23.73 MB, free: 4.16 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.456/1.456, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 51.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2556, allocations: 53.37 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005428/0.261, allocations: 3.204 MB / 434.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002944/0.264, allocations: 1.59 MB / 435.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002138/0.2642, allocations: 11.94 kB / 435.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003333/0.2675, allocations: 2.663 MB / 438.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006233/0.2682, allocations: 234.5 kB / 438.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008263/0.269, allocations: 318.4 kB / 439.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001867/0.2708, allocations: 1.817 MB / 440.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002017/0.271, allocations: 94.06 kB / 441 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004349/0.2715, allocations: 332.9 kB / 441.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004295/0.2719, allocations: 330.7 kB / 441.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.272, allocations: 44 kB / 441.7 MB, free: 12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002133/0.2722, allocations: 95.97 kB / 441.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007176/0.2729, allocations: 0.853 MB / 442.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005996/0.2735, allocations: 0.6627 MB / 443.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00247/0.276, allocations: 2.684 MB / 446 MB, free: 7.688 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.276, allocations: 0 / 446 MB, free: 7.688 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.276, allocations: 0 / 446 MB, free: 7.688 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.777e-05/0.276, allocations: 0 / 446 MB, free: 7.688 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004298/0.2803, allocations: 2.836 MB / 448.8 MB, free: 4.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.2804, allocations: 8.031 kB / 448.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.604e-05/0.2805, allocations: 78.72 kB / 448.9 MB, free: 4.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005408/0.281, allocations: 310.9 kB / 449.2 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002833/0.2839, allocations: 1.798 MB / 451 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001094/0.284, allocations: 118.3 kB / 451.1 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001617/0.2841, allocations: 44 kB / 451.2 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007622/0.2849, allocations: 446.4 kB / 451.6 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.2849, allocations: 0 / 451.6 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.896e-05/0.2849, allocations: 16 kB / 451.6 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.285, allocations: 8 kB / 451.6 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007436/0.2857, allocations: 335.7 kB / 452 MB, free: 1.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00405/0.2897, allocations: 2.631 MB / 454.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006452/0.2904, allocations: 297 kB / 454.9 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003248/0.2907, allocations: 164.2 kB / 455 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.501e-05/0.2908, allocations: 4 kB / 455 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.2908, allocations: 42.5 kB / 455.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.934e-06/0.2908, allocations: 0 / 455.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.004899/0.2957, allocations: 2.406 MB / 457.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.35e-05/0.2958, allocations: 85.55 kB / 457.6 MB, free: 11.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00737/0.3031, allocations: 5.455 MB / 463 MB, free: 6.312 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.804e-05/0.3032, allocations: 29.7 kB / 463.1 MB, free: 6.277 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001237/0.3045, allocations: 1.195 MB / 464.3 MB, free: 5.078 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.3046, allocations: 174.5 kB / 464.4 MB, free: 4.906 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.3048, allocations: 90.19 kB / 464.5 MB, free: 4.812 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3049, allocations: 326 kB / 464.8 MB, free: 4.488 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003522/0.3053, allocations: 140.9 kB / 465 MB, free: 4.352 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004517/0.3057, allocations: 221.1 kB / 465.2 MB, free: 4.105 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007347/0.3065, allocations: 384.2 kB / 465.6 MB, free: 3.703 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3065, allocations: 0 / 465.6 MB, free: 3.703 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001406/0.3079, allocations: 0.7011 MB / 466.3 MB, free: 2.996 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.3079, allocations: 7.938 kB / 466.3 MB, free: 2.988 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.3079, allocations: 4.25 kB / 466.3 MB, free: 2.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.3079, allocations: 8 kB / 466.3 MB, free: 2.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005214/0.3085, allocations: 115.9 kB / 466.4 MB, free: 2.863 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/0.3085, allocations: 11.88 kB / 466.4 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00045/0.3089, allocations: 23.94 kB / 466.4 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.304e-05/0.309, allocations: 16 kB / 466.4 MB, free: 2.812 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (62): * Single equations (assignments): 62 * 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.001114/0.3101, allocations: 0.9192 MB / 467.4 MB, free: 1.883 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003382/0.3104, allocations: 290.1 kB / 467.6 MB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001501/0.3119, allocations: 0.7981 MB / 468.4 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.3119, allocations: 8 kB / 468.5 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3119, allocations: 0 / 468.5 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.3119, allocations: 0 / 468.5 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001608/0.3135, allocations: 1.242 MB / 469.7 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.3135, allocations: 7.984 kB / 469.7 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004416/0.314, allocations: 95.89 kB / 469.8 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004039/0.3144, allocations: 96.77 kB / 469.9 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.093e-05/0.3144, allocations: 12 kB / 469.9 MB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006203/0.315, allocations: 0.6343 MB / 470.5 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.315, allocations: 80 / 470.5 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001718/0.3168, allocations: 1.087 MB / 471.6 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.3178, allocations: 434 kB / 472 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001721/0.3179, allocations: 8 kB / 472.1 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004621/0.3184, allocations: 20.11 kB / 472.1 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.286e-05/0.3185, allocations: 32.38 kB / 472.1 MB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-05/0.3185, allocations: 27.92 kB / 472.1 MB, free: 13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004956/0.3235, allocations: 3.986 MB / 476.1 MB, free: 9.023 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3235, allocations: 0 / 476.1 MB, free: 9.023 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007061/0.3242, allocations: 211.9 kB / 476.3 MB, free: 8.816 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * 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 (41): * Single equations (assignments): 40 * 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003586/0.3278, allocations: 1.966 MB / 478.3 MB, free: 7.004 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008166/0.3286, allocations: 356.9 kB / 478.6 MB, free: 6.656 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3286, allocations: 0 / 478.6 MB, free: 6.656 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004508/0.329, allocations: 202.9 kB / 478.8 MB, free: 6.461 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.3301, allocations: 192.9 kB / 479 MB, free: 6.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03827/0.3684, allocations: 19.43 MB / 498.5 MB, free: 2.66 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001813/0.3702, allocations: 1.246 MB / 499.7 MB, free: 1.379 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006463/0.3708, allocations: 275.8 kB / 500 MB, free: 1.105 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00131/0.3721, allocations: 0.9444 MB / 0.4892 GB, free: 164 kB / 398.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3721, allocations: 0 / 0.4892 GB, free: 164 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08624/0.4584, allocations: 39.87 MB / 0.5281 GB, free: 8.461 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.65/16.11, allocations: 6.266 kB / 0.5281 GB, free: 8.457 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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: 19.333473978098482]