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: 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.001369/0.001369, allocations: 214.1 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.441/1.441, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.001514/0.001514, allocations: 43.92 kB / 377.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2855, allocations: 53.36 MB / 431.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.00591/0.2914, allocations: 4.437 MB / 435.6 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002816/0.2943, allocations: 1.663 MB / 437.2 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003063/0.2946, allocations: 11.94 kB / 437.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003849/0.295, allocations: 124.5 kB / 437.4 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007999/0.2958, allocations: 373.6 kB / 437.7 MB, free: 268 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004912/0.2962, allocations: 235.6 kB / 438 MB, free: 32 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001078/0.2973, allocations: 0.9863 MB / 438.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003029/0.2976, allocations: 166 kB / 439.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005544/0.2982, allocations: 390.7 kB / 439.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005976/0.2988, allocations: 434.2 kB / 439.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001373/0.2989, allocations: 96 kB / 440 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004172/0.2993, allocations: 223.9 kB / 440.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001788/0.2995, allocations: 195.3 kB / 440.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004033/0.2999, allocations: 418 kB / 440.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001347/0.3013, allocations: 1.171 MB / 442 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3013, allocations: 0 / 442 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3013, allocations: 0 / 442 MB, free: 11.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.886e-05/0.3013, allocations: 0 / 442 MB, free: 11.98 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.002587/0.3039, allocations: 1.05 MB / 443 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.3039, allocations: 8.031 kB / 443.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001244/0.304, allocations: 98.7 kB / 443.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002627/0.3043, allocations: 88.45 kB / 443.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000882/0.3052, allocations: 465.5 kB / 443.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00014/0.3053, allocations: 127 kB / 443.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002016/0.3055, allocations: 72.3 kB / 443.9 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.3068, allocations: 0.6019 MB / 444.5 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.111e-05/0.3068, allocations: 0 / 444.5 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.279e-05/0.3069, allocations: 24 kB / 444.5 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.23e-05/0.3069, allocations: 19.98 kB / 444.5 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001259/0.3082, allocations: 0.5321 MB / 445.1 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004006/0.3122, allocations: 2.244 MB / 447.3 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009973/0.3132, allocations: 459.5 kB / 447.8 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000535/0.3137, allocations: 254 kB / 448 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.732e-05/0.3138, allocations: 4 kB / 448 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/0.3138, allocations: 42.5 kB / 448 MB, free: 5.688 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.545e-06/0.3138, allocations: 4 kB / 448.1 MB, free: 5.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.01395/0.3278, allocations: 3.324 MB / 451.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.87e-05/0.3278, allocations: 89.61 kB / 451.5 MB, free: 2.215 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000872/0.3287, allocations: 0.5293 MB / 452 MB, free: 1.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.837e-05/0.3288, allocations: 41.64 kB / 452 MB, free: 1.629 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002741/0.3291, allocations: 320.8 kB / 452.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002357/0.3293, allocations: 218.2 kB / 452.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00023/0.3295, allocations: 118.3 kB / 452.7 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002051/0.3297, allocations: 366.8 kB / 453 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006015/0.3303, allocations: 253.1 kB / 453.3 MB, free: 372 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006821/0.331, allocations: 344.5 kB / 453.6 MB, free: 16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/0.3323, allocations: 0.5993 MB / 454.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.3323, allocations: 4 kB / 454.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001681/0.334, allocations: 0.7477 MB / 455 MB, free: 14.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.334, allocations: 8.031 kB / 455 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.334, allocations: 4 kB / 455 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002178/0.3342, allocations: 32.78 kB / 455 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008439/0.3351, allocations: 167.7 kB / 455.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001292/0.3364, allocations: 1.338 MB / 456.5 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005983/0.337, allocations: 40.03 kB / 456.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.301e-05/0.337, allocations: 27.98 kB / 456.6 MB, free: 12.86 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.000323/0.3373, allocations: 197.7 kB / 456.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.3375, allocations: 67.58 kB / 456.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001933/0.3394, allocations: 0.832 MB / 457.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.3394, allocations: 11.94 kB / 457.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.3394, allocations: 0 / 457.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.3394, allocations: 7.922 kB / 457.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003855/0.3433, allocations: 1.808 MB / 459.5 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-06/0.3433, allocations: 3.984 kB / 459.5 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005311/0.3438, allocations: 111.9 kB / 459.6 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002371/0.3462, allocations: 472.3 kB / 460.1 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.934e-05/0.3463, allocations: 15.98 kB / 460.1 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00524/0.3515, allocations: 3.042 MB / 463.1 MB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.3515, allocations: 4.031 kB / 463.1 MB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003084/0.3546, allocations: 1.366 MB / 464.5 MB, free: 4.727 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000349/0.3549, allocations: 135.5 kB / 464.6 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.694e-05/0.355, allocations: 15.94 kB / 464.7 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000603/0.3556, allocations: 47.97 kB / 464.7 MB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.3558, allocations: 44.56 kB / 464.7 MB, free: 4.488 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.747e-05/0.3558, allocations: 27.98 kB / 464.8 MB, free: 4.461 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005227/0.3563, allocations: 390.9 kB / 465.1 MB, free: 4.082 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3563, allocations: 0 / 465.1 MB, free: 4.082 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007475/0.3571, allocations: 184.1 kB / 465.3 MB, free: 3.902 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.003578/0.3607, allocations: 1.957 MB / 467.3 MB, free: 1.914 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001585/0.3622, allocations: 0.715 MB / 468 MB, free: 1.184 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.3622, allocations: 0 / 468 MB, free: 1.184 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009369/0.3632, allocations: 0.4943 MB / 468.5 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007419/0.3639, allocations: 99.73 kB / 468.6 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009929/0.3739, allocations: 5.943 MB / 474.5 MB, free: 10.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005725/0.3744, allocations: 0.9003 MB / 475.4 MB, free: 9.562 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003679/0.3748, allocations: 72.77 kB / 475.5 MB, free: 9.492 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003919/0.3752, allocations: 243.3 kB / 475.7 MB, free: 9.254 MB / 382.1 MB Notification: Performance of SimCode: time 1.533e-06/0.3752, allocations: 0 / 475.7 MB, free: 9.254 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05716/0.4323, allocations: 16.36 MB / 492.1 MB, free: 9.125 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.86/14.29, allocations: 2.438 kB / 492.1 MB, free: 9.125 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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.1094936720001]