Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.001506/0.001506, 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.001559/0.001559, allocations: 184.2 kB / 23.71 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.496/1.496, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001627, allocations: 55.86 kB / 370.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3033, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.006175/0.3094, allocations: 4.414 MB / 427 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002927/0.3124, allocations: 1.594 MB / 428.6 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003345/0.3127, allocations: 11.94 kB / 428.6 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003881/0.3131, allocations: 126.8 kB / 428.8 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008174/0.3139, allocations: 373 kB / 429.1 MB, free: 8.043 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004194/0.3143, allocations: 235.7 kB / 429.4 MB, free: 7.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001032/0.3153, allocations: 0.9823 MB / 430.4 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002995/0.3156, allocations: 158.1 kB / 430.5 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004738/0.3161, allocations: 382.8 kB / 430.9 MB, free: 6.293 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005629/0.3167, allocations: 426.2 kB / 431.3 MB, free: 5.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001203/0.3168, allocations: 96 kB / 431.4 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003802/0.3172, allocations: 219.9 kB / 431.6 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/0.3174, allocations: 199.3 kB / 431.8 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003964/0.3178, allocations: 418 kB / 432.2 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00132/0.3191, allocations: 1.161 MB / 433.4 MB, free: 3.797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3191, allocations: 3.938 kB / 433.4 MB, free: 3.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3191, allocations: 0 / 433.4 MB, free: 3.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.3191, allocations: 0 / 433.4 MB, free: 3.793 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002456/0.3215, allocations: 1.038 MB / 434.4 MB, free: 2.723 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.3216, allocations: 12.03 kB / 434.4 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001224/0.3217, allocations: 94.7 kB / 434.5 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.3219, allocations: 84.42 kB / 434.6 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008505/0.3227, allocations: 461.5 kB / 435 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001336/0.3228, allocations: 131 kB / 435.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001959/0.323, allocations: 64.3 kB / 435.2 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.3241, allocations: 0.6136 MB / 435.9 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.3242, allocations: 0 / 435.9 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.055e-05/0.3242, allocations: 24 kB / 435.9 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/0.3243, allocations: 19.94 kB / 435.9 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.3254, allocations: 0.5282 MB / 436.4 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003503/0.3289, allocations: 2.236 MB / 438.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.3299, allocations: 460.5 kB / 439.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00056/0.3305, allocations: 247.2 kB / 439.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.3305, allocations: 4 kB / 439.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.076e-05/0.3305, allocations: 46.5 kB / 439.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.044e-06/0.3305, allocations: 0 / 439.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.01293/0.3435, allocations: 3.325 MB / 442.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.866e-05/0.3435, allocations: 89.59 kB / 442.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007581/0.3443, allocations: 0.5448 MB / 443.4 MB, free: 9.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.614e-05/0.3443, allocations: 37.7 kB / 443.4 MB, free: 9.457 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002432/0.3446, allocations: 316.9 kB / 443.7 MB, free: 9.145 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001957/0.3448, allocations: 218.1 kB / 443.9 MB, free: 8.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002081/0.345, allocations: 118.3 kB / 444 MB, free: 8.809 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.3452, allocations: 366.8 kB / 444.4 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005651/0.3457, allocations: 241.2 kB / 444.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006672/0.3464, allocations: 352.5 kB / 445 MB, free: 7.832 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.3476, allocations: 0.6071 MB / 445.6 MB, free: 7.195 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.3476, allocations: 0 / 445.6 MB, free: 7.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001598/0.3492, allocations: 0.7435 MB / 446.3 MB, free: 6.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.3492, allocations: 8 kB / 446.3 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.3492, allocations: 4.312 kB / 446.3 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001937/0.3494, allocations: 40.81 kB / 446.4 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008473/0.3503, allocations: 163.8 kB / 446.5 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001326/0.3516, allocations: 1.332 MB / 447.9 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006282/0.3522, allocations: 40.05 kB / 447.9 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.683e-05/0.3523, allocations: 27.98 kB / 447.9 MB, free: 4.711 MB / 350.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.0003497/0.3527, allocations: 197.7 kB / 448.1 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001541/0.3528, allocations: 63.58 kB / 448.2 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001928/0.3547, allocations: 0.828 MB / 449 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.3547, allocations: 11.94 kB / 449 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.3547, allocations: 0 / 449 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.3548, allocations: 7.984 kB / 449 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003945/0.3587, allocations: 1.819 MB / 450.9 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.3587, allocations: 0 / 450.9 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005303/0.3592, allocations: 104 kB / 451 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002329/0.3616, allocations: 475.8 kB / 451.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.448e-05/0.3616, allocations: 19.98 kB / 451.4 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005297/0.3669, allocations: 3.053 MB / 454.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3669, allocations: 0 / 454.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003055/0.37, allocations: 1.37 MB / 455.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000334/0.3703, allocations: 135.6 kB / 456 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.543e-05/0.3704, allocations: 12 kB / 456 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005941/0.371, allocations: 43.97 kB / 456 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001433/0.3711, allocations: 56.55 kB / 456.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.514e-05/0.3712, allocations: 16 kB / 456.1 MB, free: 12.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005324/0.3717, allocations: 390.9 kB / 456.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3717, allocations: 0 / 456.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007725/0.3725, allocations: 191.9 kB / 456.7 MB, free: 11.74 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.003485/0.376, allocations: 1.965 MB / 458.7 MB, free: 9.742 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001596/0.3776, allocations: 0.6997 MB / 459.4 MB, free: 9.027 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3776, allocations: 4.188 kB / 459.4 MB, free: 9.023 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000949/0.3785, allocations: 0.506 MB / 459.9 MB, free: 8.508 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006753/0.3792, allocations: 89.86 kB / 459.9 MB, free: 8.422 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009563/0.3888, allocations: 5.921 MB / 465.9 MB, free: 2.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005848/0.3894, allocations: 0.9003 MB / 466.8 MB, free: 1.414 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003604/0.3897, allocations: 76.75 kB / 466.8 MB, free: 1.336 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004025/0.3901, allocations: 239.3 kB / 467.1 MB, free: 1.102 MB / 366.1 MB Notification: Performance of SimCode: time 1.273e-06/0.3901, allocations: 0 / 467.1 MB, free: 1.102 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05392/0.444, allocations: 16.32 MB / 483.4 MB, free: 1.031 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.97/14.41, allocations: 4.062 kB / 483.4 MB, free: 1.027 MB / 382.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv. Warning: Get data of variable transformer.core.Hstat from file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.364381196999602]