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.001314/0.001314, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001389/0.001389, allocations: 205.4 kB / 23.73 MB, free: 4.379 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.461/1.461, 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.001488/0.001488, allocations: 51.91 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2553, allocations: 53.36 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.00596/0.2612, allocations: 3.976 MB / 435.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00292/0.2641, allocations: 1.558 MB / 436.6 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002913/0.2644, allocations: 11.94 kB / 436.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003974/0.2648, allocations: 128.5 kB / 436.8 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008502/0.2657, allocations: 365.5 kB / 437.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004933/0.2662, allocations: 247.6 kB / 437.4 MB, free: 360 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001096/0.2673, allocations: 0.9699 MB / 438.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00034/0.2676, allocations: 173.9 kB / 438.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005505/0.2682, allocations: 398.6 kB / 438.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005389/0.2687, allocations: 426.3 kB / 439.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001422/0.2688, allocations: 96 kB / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004064/0.2692, allocations: 215.9 kB / 439.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001806/0.2694, allocations: 199.3 kB / 439.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003413/0.2698, allocations: 338.5 kB / 440.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001299/0.2711, allocations: 1.187 MB / 441.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.2711, allocations: 4 kB / 441.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2711, allocations: 0 / 441.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.2711, allocations: 4 kB / 441.3 MB, free: 12.37 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.002339/0.2734, allocations: 1.034 MB / 442.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.2735, allocations: 12.03 kB / 442.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001251/0.2736, allocations: 98.69 kB / 442.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002578/0.2739, allocations: 88.47 kB / 442.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009428/0.2748, allocations: 481.4 kB / 443 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/0.2749, allocations: 123 kB / 443.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001956/0.2751, allocations: 68.3 kB / 443.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.2763, allocations: 0.7062 MB / 443.9 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.2763, allocations: 0 / 443.9 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.614e-05/0.2764, allocations: 20 kB / 443.9 MB, free: 9.625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.2764, allocations: 23.98 kB / 444 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.2775, allocations: 0.5204 MB / 444.5 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003453/0.281, allocations: 2.056 MB / 446.5 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000982/0.282, allocations: 453.3 kB / 447 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005321/0.2825, allocations: 254 kB / 447.2 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.252e-05/0.2825, allocations: 4 kB / 447.2 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.434e-05/0.2826, allocations: 42.5 kB / 447.3 MB, free: 6.156 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.425e-06/0.2826, allocations: 4 kB / 447.3 MB, free: 6.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.0122/0.2948, allocations: 3.331 MB / 450.6 MB, free: 2.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.73e-05/0.2948, allocations: 81.61 kB / 450.7 MB, free: 2.688 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007384/0.2956, allocations: 0.5526 MB / 451.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.111e-05/0.2956, allocations: 37.64 kB / 451.3 MB, free: 2.082 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000244/0.2959, allocations: 317 kB / 451.6 MB, free: 1.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001918/0.296, allocations: 222.1 kB / 451.8 MB, free: 1.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002067/0.2963, allocations: 114.3 kB / 451.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.2964, allocations: 370.8 kB / 452.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005541/0.297, allocations: 245.2 kB / 452.5 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006316/0.2976, allocations: 356.5 kB / 452.9 MB, free: 456 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001209/0.2988, allocations: 0.5993 MB / 453.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2988, allocations: 0 / 453.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00155/0.3004, allocations: 0.7513 MB / 454.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.3004, allocations: 4 kB / 454.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.3004, allocations: 4 kB / 454.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001484/0.3006, allocations: 28.84 kB / 454.2 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007795/0.3013, allocations: 176.1 kB / 454.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001162/0.3025, allocations: 1.323 MB / 455.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005211/0.303, allocations: 36.05 kB / 455.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.491e-05/0.3031, allocations: 31.98 kB / 455.8 MB, free: 13.32 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.0002727/0.3033, allocations: 193.7 kB / 456 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.3035, allocations: 59.62 kB / 456.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001837/0.3053, allocations: 0.8436 MB / 456.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.3053, allocations: 7.938 kB / 456.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3053, allocations: 4 kB / 456.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.3053, allocations: 3.984 kB / 456.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003609/0.3089, allocations: 1.667 MB / 458.6 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.165e-06/0.3089, allocations: 0 / 458.6 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005128/0.3095, allocations: 107.8 kB / 458.7 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002177/0.3116, allocations: 472.3 kB / 459.2 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.637e-05/0.3117, allocations: 16 kB / 459.2 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005062/0.3167, allocations: 2.984 MB / 462.2 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3167, allocations: 4.031 kB / 462.2 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002974/0.3197, allocations: 1.362 MB / 463.5 MB, free: 5.406 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003169/0.32, allocations: 139.5 kB / 463.7 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.606e-05/0.3201, allocations: 16 kB / 463.7 MB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005496/0.3207, allocations: 39.97 kB / 463.7 MB, free: 5.215 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.3208, allocations: 52.5 kB / 463.8 MB, free: 5.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.454e-05/0.3209, allocations: 23.98 kB / 463.8 MB, free: 5.141 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005222/0.3214, allocations: 390.9 kB / 464.2 MB, free: 4.762 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3214, allocations: 0 / 464.2 MB, free: 4.762 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007206/0.3221, allocations: 192 kB / 464.4 MB, free: 4.574 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.003457/0.3256, allocations: 1.965 MB / 466.3 MB, free: 2.578 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001604/0.3272, allocations: 0.7032 MB / 467 MB, free: 1.859 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.3272, allocations: 4.562 kB / 467 MB, free: 1.855 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009432/0.3281, allocations: 0.4982 MB / 467.5 MB, free: 1.348 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007632/0.3289, allocations: 98.14 kB / 467.6 MB, free: 1.254 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00986/0.3387, allocations: 5.937 MB / 473.6 MB, free: 11.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003541/0.3391, allocations: 303.2 kB / 473.9 MB, free: 10.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003344/0.3394, allocations: 72.8 kB / 473.9 MB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003882/0.3398, allocations: 239.3 kB / 474.2 MB, free: 10.53 MB / 382.1 MB Notification: Performance of SimCode: time 1.333e-06/0.3398, allocations: 0 / 474.2 MB, free: 10.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05588/0.3957, allocations: 16.6 MB / 490.8 MB, free: 10.2 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.38/13.78, allocations: 10.19 kB / 490.8 MB, free: 10.19 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.57981857098639]