Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.001896/0.001896, 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.002455/0.002455, allocations: 210 kB / 23.73 MB, free: 4.387 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.446/1.446, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 51.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2571, allocations: 53.37 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.006269/0.2634, allocations: 3.98 MB / 435.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003332/0.2667, allocations: 1.555 MB / 436.6 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005576/0.2672, allocations: 11.94 kB / 436.6 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005371/0.2678, allocations: 120.5 kB / 436.8 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001152/0.2689, allocations: 369.6 kB / 437.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005648/0.2695, allocations: 247.6 kB / 437.4 MB, free: 376 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.2707, allocations: 0.9785 MB / 438.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003067/0.271, allocations: 158 kB / 438.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005609/0.2715, allocations: 386.8 kB / 438.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005451/0.2721, allocations: 386.2 kB / 439.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001406/0.2722, allocations: 96 kB / 439.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004084/0.2726, allocations: 207.9 kB / 439.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001899/0.2728, allocations: 199.3 kB / 439.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003807/0.2732, allocations: 346.5 kB / 440.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001502/0.2747, allocations: 1.183 MB / 441.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.2747, allocations: 0 / 441.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2747, allocations: 0 / 441.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.468e-05/0.2747, allocations: 0 / 441.3 MB, free: 12.45 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003069/0.2778, allocations: 1.046 MB / 442.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.702e-05/0.2779, allocations: 8.031 kB / 442.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001599/0.278, allocations: 98.7 kB / 442.4 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003785/0.2784, allocations: 88.45 kB / 442.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.2795, allocations: 473.5 kB / 443 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001607/0.2796, allocations: 130.9 kB / 443.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002085/0.2799, allocations: 68.31 kB / 443.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.2811, allocations: 0.6985 MB / 443.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.2812, allocations: 0 / 443.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.868e-05/0.2812, allocations: 24 kB / 443.9 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.2812, allocations: 16 kB / 443.9 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.2825, allocations: 0.5204 MB / 444.4 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004033/0.2865, allocations: 2.056 MB / 446.5 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.2876, allocations: 457.2 kB / 446.9 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005527/0.2881, allocations: 254 kB / 447.2 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.901e-05/0.2881, allocations: 4 kB / 447.2 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.553e-05/0.2882, allocations: 46.44 kB / 447.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.655e-06/0.2882, allocations: 4 kB / 447.2 MB, free: 6.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.01341/0.3016, allocations: 3.321 MB / 450.5 MB, free: 2.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.885e-05/0.3017, allocations: 93.53 kB / 450.6 MB, free: 2.762 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008957/0.3026, allocations: 0.5448 MB / 451.2 MB, free: 2.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.118e-05/0.3026, allocations: 37.7 kB / 451.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000277/0.3029, allocations: 312.9 kB / 451.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000221/0.3031, allocations: 230.1 kB / 451.7 MB, free: 1.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002102/0.3034, allocations: 106.3 kB / 451.8 MB, free: 1.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002172/0.3036, allocations: 370.8 kB / 452.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006196/0.3042, allocations: 249.2 kB / 452.4 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006819/0.3049, allocations: 352.5 kB / 452.8 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001338/0.3062, allocations: 0.6032 MB / 453.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3062, allocations: 3.938 kB / 453.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001714/0.3079, allocations: 0.7435 MB / 454.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.3079, allocations: 8 kB / 454.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.308, allocations: 0 / 454.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002104/0.3082, allocations: 32.83 kB / 454.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008239/0.309, allocations: 168.1 kB / 454.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001426/0.3104, allocations: 1.33 MB / 455.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006404/0.3111, allocations: 43.98 kB / 455.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.918e-05/0.3111, allocations: 23.98 kB / 455.7 MB, free: 13.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000368/0.3115, allocations: 201.7 kB / 455.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001697/0.3117, allocations: 63.62 kB / 456 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002029/0.3137, allocations: 0.8319 MB / 456.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.3137, allocations: 11.94 kB / 456.8 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.3137, allocations: 0 / 456.8 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.3137, allocations: 3.984 kB / 456.8 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00403/0.3178, allocations: 1.668 MB / 458.5 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.3178, allocations: 4 kB / 458.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000542/0.3183, allocations: 103.9 kB / 458.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002433/0.3207, allocations: 483 kB / 459.1 MB, free: 9.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.803e-05/0.3208, allocations: 12 kB / 459.1 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005644/0.3264, allocations: 2.981 MB / 462.1 MB, free: 6.875 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3264, allocations: 0 / 462.1 MB, free: 6.875 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003244/0.3297, allocations: 1.366 MB / 463.4 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00042/0.3301, allocations: 139.5 kB / 463.6 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/0.3302, allocations: 12 kB / 463.6 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006553/0.3309, allocations: 43.97 kB / 463.6 MB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.331, allocations: 56.55 kB / 463.7 MB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.512e-05/0.3311, allocations: 16 kB / 463.7 MB, free: 5.223 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005736/0.3316, allocations: 394.8 kB / 464.1 MB, free: 4.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3316, allocations: 0 / 464.1 MB, free: 4.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007667/0.3324, allocations: 192 kB / 464.3 MB, free: 4.652 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003747/0.3362, allocations: 1.965 MB / 466.2 MB, free: 2.656 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001711/0.3379, allocations: 0.7031 MB / 467 MB, free: 1.938 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.3379, allocations: 0.625 kB / 467 MB, free: 1.938 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.3389, allocations: 0.5021 MB / 467.5 MB, free: 1.426 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007846/0.3397, allocations: 93.92 kB / 467.5 MB, free: 1.336 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01082/0.3505, allocations: 5.935 MB / 473.5 MB, free: 11.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.3509, allocations: 303.2 kB / 473.8 MB, free: 10.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003852/0.3513, allocations: 76.78 kB / 473.9 MB, free: 10.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004239/0.3517, allocations: 239.3 kB / 474.1 MB, free: 10.61 MB / 382.1 MB Notification: Performance of SimCode: time 1.153e-06/0.3517, allocations: 0 / 474.1 MB, free: 10.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05695/0.4086, allocations: 16.4 MB / 490.5 MB, free: 10.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.6/14.01, allocations: 7.797 kB / 490.5 MB, free: 10.47 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable transformer.core.Hstat in file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv. Warning: Get data of variable transformer.core.Hstat from file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv failed! " [Timeout remaining time 659] "" Variables in the reference:time,transformer.core.B,transformer.core.MagRel,transformer.core.Hstat,transformer.winding1.i,transformer.winding2.i Variables in the result:time,transformer.core.B,transformer.core.MagRel,transformer.winding1.i,transformer.winding2.i [Calling sys.exit(0), Time elapsed: 25.851092158816755]