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.001063/0.001063, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008869/0.0008869, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9077/0.9077, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 1.934e-06/1.934e-06, allocations: 3.938 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.407e-05/2.6e-05, allocations: 9.094 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.003917/0.003943, allocations: 3.978 MB / 328.6 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002088/0.006031, allocations: 1.562 MB / 330.1 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002885/0.006319, allocations: 11.94 kB / 330.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002991/0.006618, allocations: 126.7 kB / 330.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006205/0.007239, allocations: 373.4 kB / 330.6 MB, free: 9.867 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003566/0.007595, allocations: 259.5 kB / 330.9 MB, free: 9.613 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007199/0.008315, allocations: 1.014 MB / 331.9 MB, free: 8.598 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002245/0.00854, allocations: 154 kB / 332 MB, free: 8.449 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005206/0.00906, allocations: 0.5574 MB / 332.6 MB, free: 7.891 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003267/0.009387, allocations: 323.1 kB / 332.9 MB, free: 7.574 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.601e-05/0.009473, allocations: 100 kB / 333 MB, free: 7.477 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000268/0.009741, allocations: 215.9 kB / 333.2 MB, free: 7.266 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.009844, allocations: 199.3 kB / 333.4 MB, free: 7.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001895/0.01003, allocations: 291.3 kB / 333.7 MB, free: 6.785 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009643/0.011, allocations: 1.223 MB / 334.9 MB, free: 5.559 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.01101, allocations: 4 kB / 334.9 MB, free: 5.555 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.01101, allocations: 0 / 334.9 MB, free: 5.555 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.207e-05/0.01102, allocations: 4 kB / 334.9 MB, free: 5.551 MB / 298.7 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.001478/0.0125, allocations: 1.03 MB / 336 MB, free: 4.484 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.01254, allocations: 16.03 kB / 336 MB, free: 4.469 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.096e-05/0.01262, allocations: 94.7 kB / 336.1 MB, free: 4.367 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00018/0.0128, allocations: 96.39 kB / 336.2 MB, free: 4.273 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005853/0.01338, allocations: 472.7 kB / 336.6 MB, free: 3.785 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.366e-05/0.01348, allocations: 123 kB / 336.7 MB, free: 3.648 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.0136, allocations: 64.73 kB / 336.8 MB, free: 3.586 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007228/0.01433, allocations: 0.7105 MB / 337.5 MB, free: 2.832 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.01434, allocations: 3.938 kB / 337.5 MB, free: 2.828 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.693e-05/0.01438, allocations: 20 kB / 337.5 MB, free: 2.809 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.01439, allocations: 16 kB / 337.6 MB, free: 2.793 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006985/0.01509, allocations: 0.5166 MB / 338.1 MB, free: 2.273 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002355/0.01745, allocations: 2.065 MB / 340.1 MB, free: 104 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006319/0.01808, allocations: 461.1 kB / 340.6 MB, free: 15.63 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003385/0.01842, allocations: 250 kB / 340.8 MB, free: 15.38 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.01844, allocations: 7.938 kB / 340.8 MB, free: 15.37 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.01847, allocations: 38.56 kB / 340.9 MB, free: 15.32 MB / 314.7 MB Notification: Performance of pre-optimization done (n=45): time 1.653e-06/0.01847, allocations: 0 / 340.9 MB, free: 15.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.006844/0.02532, allocations: 3.322 MB / 344.2 MB, free: 11.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.02537, allocations: 93.48 kB / 344.3 MB, free: 11.85 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005623/0.02593, allocations: 0.5448 MB / 344.8 MB, free: 11.29 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.02597, allocations: 37.7 kB / 344.9 MB, free: 11.25 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.02613, allocations: 316.9 kB / 345.2 MB, free: 10.93 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/0.02625, allocations: 218.1 kB / 345.4 MB, free: 10.72 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.02639, allocations: 114.3 kB / 345.5 MB, free: 10.6 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.02649, allocations: 366.8 kB / 345.9 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003429/0.02683, allocations: 253.2 kB / 346.1 MB, free: 9.988 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003859/0.02722, allocations: 340.5 kB / 346.4 MB, free: 9.621 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007422/0.02796, allocations: 0.6031 MB / 347 MB, free: 8.988 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.02796, allocations: 0 / 347 MB, free: 8.988 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0009391/0.0289, allocations: 0.7436 MB / 347.8 MB, free: 8.234 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.02892, allocations: 16.25 kB / 347.8 MB, free: 8.219 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.02893, allocations: 4 kB / 347.8 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001378/0.02907, allocations: 32.83 kB / 347.8 MB, free: 8.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00041/0.02948, allocations: 159.8 kB / 348 MB, free: 8.023 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007601/0.03024, allocations: 1.327 MB / 349.3 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002839/0.03052, allocations: 31.98 kB / 349.4 MB, free: 6.551 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.186e-05/0.03055, allocations: 27.98 kB / 349.4 MB, free: 6.523 MB / 314.7 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.0002104/0.03076, allocations: 205.6 kB / 349.6 MB, free: 6.312 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.812e-05/0.03084, allocations: 59.62 kB / 349.6 MB, free: 6.254 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/0.03193, allocations: 0.8359 MB / 350.5 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.03194, allocations: 4 kB / 350.5 MB, free: 5.402 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.03194, allocations: 0 / 350.5 MB, free: 5.402 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.03195, allocations: 15.92 kB / 350.5 MB, free: 5.387 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002141/0.03409, allocations: 1.675 MB / 352.2 MB, free: 3.656 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.03409, allocations: 144 / 352.2 MB, free: 3.656 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002634/0.03436, allocations: 103.9 kB / 352.3 MB, free: 3.555 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001088/0.03544, allocations: 476.3 kB / 352.7 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.109e-05/0.03547, allocations: 16 kB / 352.8 MB, free: 3.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002893/0.03837, allocations: 2.98 MB / 355.7 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.03837, allocations: 4.031 kB / 355.7 MB, free: 15.97 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.04007, allocations: 1.362 MB / 357.1 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002043/0.04027, allocations: 131.5 kB / 357.2 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.002e-05/0.04032, allocations: 16 kB / 357.2 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002814/0.0406, allocations: 43.91 kB / 357.3 MB, free: 14.4 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.496e-05/0.0407, allocations: 52.55 kB / 357.3 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.648e-05/0.04072, allocations: 24 kB / 357.4 MB, free: 14.33 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003255/0.04105, allocations: 390.9 kB / 357.7 MB, free: 13.95 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04105, allocations: 0 / 357.7 MB, free: 13.95 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004901/0.04154, allocations: 196 kB / 357.9 MB, free: 13.76 MB / 330.7 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.002018/0.04356, allocations: 1.969 MB / 359.9 MB, free: 11.76 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009657/0.04452, allocations: 0.7033 MB / 360.6 MB, free: 11.04 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.04452, allocations: 0 / 360.6 MB, free: 11.04 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005609/0.04508, allocations: 0.4987 MB / 361.1 MB, free: 10.53 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004926/0.04558, allocations: 86.95 kB / 361.2 MB, free: 10.45 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006244/0.05182, allocations: 5.859 MB / 367 MB, free: 4.434 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002235/0.05204, allocations: 311 kB / 367.4 MB, free: 4.105 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002396/0.05228, allocations: 76.78 kB / 367.4 MB, free: 4.031 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002655/0.05255, allocations: 240.4 kB / 367.7 MB, free: 3.797 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.05255, allocations: 0 / 367.7 MB, free: 3.797 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0305/0.08305, allocations: 16.54 MB / 384.2 MB, free: 3.531 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.414/8.497, allocations: 3.281 kB / 384.2 MB, free: 3.531 MB / 346.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins/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: 10.440730384550989]