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.001819/0.001819, allocations: 123 kB / 17.79 MB, free: 5.258 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.002/0.002, allocations: 189.2 kB / 20.73 MB, free: 2.324 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.487/1.487, allocations: 225.6 MB / 249.1 MB, free: 3.594 MB / 190.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.001529/0.001529, allocations: 51.86 kB / 365.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1065, allocations: 52.15 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.006103/0.1126, allocations: 4.378 MB / 422.2 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003011/0.1156, allocations: 1.598 MB / 423.8 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003599/0.116, allocations: 11.94 kB / 423.8 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004165/0.1164, allocations: 126.8 kB / 423.9 MB, free: 6.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008578/0.1173, allocations: 373.6 kB / 424.3 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004693/0.1177, allocations: 219.7 kB / 424.5 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001099/0.1188, allocations: 0.9861 MB / 425.5 MB, free: 4.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003193/0.1192, allocations: 161.4 kB / 425.6 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005177/0.1197, allocations: 382.7 kB / 426 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000543/0.1202, allocations: 426.3 kB / 426.4 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001241/0.1203, allocations: 96 kB / 426.5 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000391/0.1207, allocations: 215.9 kB / 426.7 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001799/0.1209, allocations: 199.3 kB / 426.9 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003988/0.1213, allocations: 410.1 kB / 427.3 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001335/0.1226, allocations: 1.175 MB / 428.5 MB, free: 1.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1227, allocations: 0 / 428.5 MB, free: 1.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1227, allocations: 0 / 428.5 MB, free: 1.848 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.1227, allocations: 0 / 428.5 MB, free: 1.848 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.002471/0.1251, allocations: 1.11 MB / 429.6 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.1252, allocations: 15.89 kB / 429.6 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001261/0.1253, allocations: 98.69 kB / 429.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001576/0.1255, allocations: 84.42 kB / 429.8 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008714/0.1263, allocations: 0.5228 MB / 430.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.1264, allocations: 75.58 kB / 430.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002057/0.1266, allocations: 72.23 kB / 430.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.1278, allocations: 0.5981 MB / 431.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.1278, allocations: 4 kB / 431.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.753e-05/0.1279, allocations: 24 kB / 431.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.569e-05/0.1279, allocations: 12 kB / 431.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.1291, allocations: 0.5243 MB / 431.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003623/0.1327, allocations: 2.287 MB / 433.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.1337, allocations: 469.8 kB / 434.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005575/0.1343, allocations: 250.1 kB / 434.6 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.36e-05/0.1343, allocations: 4 kB / 434.6 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/0.1344, allocations: 46.48 kB / 434.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 1.763e-06/0.1344, allocations: 0 / 434.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.01353/0.1479, allocations: 3.558 MB / 438.2 MB, free: 7.762 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.912e-05/0.148, allocations: 85.67 kB / 438.3 MB, free: 7.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00081/0.1488, allocations: 0.5332 MB / 438.8 MB, free: 7.117 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.98e-05/0.1488, allocations: 37.7 kB / 438.9 MB, free: 7.074 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002672/0.1491, allocations: 324.8 kB / 439.2 MB, free: 6.754 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002073/0.1493, allocations: 218.1 kB / 439.4 MB, free: 6.539 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000224/0.1495, allocations: 114.3 kB / 439.5 MB, free: 6.422 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.1497, allocations: 370.7 kB / 439.9 MB, free: 6.051 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005875/0.1503, allocations: 245.2 kB / 440.1 MB, free: 5.809 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006635/0.151, allocations: 348.4 kB / 440.5 MB, free: 5.438 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001269/0.1523, allocations: 0.5981 MB / 441.1 MB, free: 4.805 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.1523, allocations: 4 kB / 441.1 MB, free: 4.801 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001631/0.1539, allocations: 0.7453 MB / 441.8 MB, free: 4.043 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.1539, allocations: 4 kB / 441.8 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.1539, allocations: 7.938 kB / 441.8 MB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001771/0.1541, allocations: 32.78 kB / 441.9 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008091/0.1549, allocations: 172 kB / 442 MB, free: 3.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001293/0.1562, allocations: 1.43 MB / 443.4 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005883/0.1568, allocations: 43.98 kB / 443.5 MB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.221e-05/0.1568, allocations: 23.98 kB / 443.5 MB, free: 2.188 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.0003186/0.1572, allocations: 201.8 kB / 443.7 MB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.1573, allocations: 63.58 kB / 443.8 MB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001927/0.1592, allocations: 0.8335 MB / 444.6 MB, free: 1.078 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.1592, allocations: 7.938 kB / 444.6 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.873e-06/0.1592, allocations: 0 / 444.6 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.1593, allocations: 7.984 kB / 444.6 MB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2201/0.3793, allocations: 1.828 MB / 446.5 MB, free: 30.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.3793, allocations: 1.219 kB / 446.5 MB, free: 30.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005333/0.3799, allocations: 105.5 kB / 446.6 MB, free: 30.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002259/0.3821, allocations: 478.2 kB / 447 MB, free: 30.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.986e-05/0.3822, allocations: 18.12 kB / 447 MB, free: 30.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005617/0.3878, allocations: 3.151 MB / 450.2 MB, free: 28.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3878, allocations: 4.531 kB / 450.2 MB, free: 28.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004361/0.3922, allocations: 1.358 MB / 451.6 MB, free: 28.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005931/0.3928, allocations: 211.8 kB / 451.8 MB, free: 28.28 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.3929, allocations: 15.39 kB / 451.8 MB, free: 28.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009213/0.3938, allocations: 42.89 kB / 451.8 MB, free: 28.28 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002391/0.3941, allocations: 48.39 kB / 451.9 MB, free: 28.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.918e-05/0.3941, allocations: 16.88 kB / 451.9 MB, free: 28.28 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007756/0.3949, allocations: 388.8 kB / 452.3 MB, free: 28.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3949, allocations: 1.938 kB / 452.3 MB, free: 28.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001345/0.3963, allocations: 195.5 kB / 452.5 MB, free: 28.1 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.005439/0.4017, allocations: 1.96 MB / 454.4 MB, free: 26.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002957/0.4046, allocations: 0.7112 MB / 455.1 MB, free: 26.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.4047, allocations: 2.188 kB / 455.1 MB, free: 26.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001541/0.4062, allocations: 0.4929 MB / 455.6 MB, free: 26.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.4076, allocations: 90.7 kB / 455.7 MB, free: 26.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01436/0.422, allocations: 5.932 MB / 461.6 MB, free: 23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005468/0.4225, allocations: 0.8989 MB / 462.5 MB, free: 22.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005499/0.4231, allocations: 76.11 kB / 462.6 MB, free: 22.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005195/0.4236, allocations: 239.8 kB / 462.8 MB, free: 22.09 MB / 366.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4236, allocations: 0 / 462.8 MB, free: 22.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06469/0.4883, allocations: 15.86 MB / 478.7 MB, free: 16.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.49/13.98, allocations: 11.72 kB / 478.7 MB, free: 16.38 MB / 366.1 MB " [Timeout remaining time 646] (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: 16.8601990561001]