Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.001694/0.001694, allocations: 120.1 kB / 17.78 MB, free: 5.23 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.001913/0.001913, allocations: 198.8 kB / 20.73 MB, free: 2.289 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.624/1.624, allocations: 225.6 MB / 249.1 MB, free: 3.605 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.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 55.91 kB / 365.6 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1089, allocations: 52.15 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004572/0.1135, allocations: 2.849 MB / 420.6 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.1156, allocations: 1.16 MB / 421.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001872/0.1158, allocations: 8 kB / 421.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001642/0.1174, allocations: 0.6185 MB / 422.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004075/0.1178, allocations: 139 kB / 422.6 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00152/0.1194, allocations: 0.6839 MB / 423.2 MB, free: 7.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000523/0.1199, allocations: 298.6 kB / 423.5 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004625/0.1203, allocations: 214.8 kB / 423.7 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00023/0.1206, allocations: 131.5 kB / 423.9 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002607/0.1208, allocations: 175.3 kB / 424 MB, free: 6.309 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.587e-05/0.1209, allocations: 24 kB / 424.1 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004354/0.1213, allocations: 175.9 kB / 424.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.691e-05/0.1214, allocations: 55.83 kB / 424.3 MB, free: 6.059 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.1215, allocations: 151.2 kB / 424.4 MB, free: 5.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008039/0.1223, allocations: 0.4982 MB / 424.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1224, allocations: 0 / 424.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1224, allocations: 0 / 424.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.594e-05/0.1224, allocations: 4 kB / 424.9 MB, free: 5.406 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001879/0.1242, allocations: 0.7326 MB / 425.7 MB, free: 4.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.1243, allocations: 8.031 kB / 425.7 MB, free: 4.617 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.641e-05/0.1244, allocations: 70.72 kB / 425.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008394/0.1252, allocations: 120.7 kB / 425.9 MB, free: 4.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005049/0.1257, allocations: 260.6 kB / 426.1 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.671e-05/0.1258, allocations: 21.03 kB / 426.1 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.323e-05/0.1258, allocations: 44.06 kB / 426.2 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006216/0.1265, allocations: 329.1 kB / 426.5 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.454e-05/0.1265, allocations: 3.953 kB / 426.5 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.538e-05/0.1265, allocations: 20 kB / 426.5 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.1265, allocations: 8 kB / 426.5 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004472/0.127, allocations: 234.5 kB / 426.8 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002311/0.1293, allocations: 1.432 MB / 428.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008307/0.1301, allocations: 0.6809 MB / 428.9 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.1303, allocations: 96.7 kB / 429 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001253/0.1304, allocations: 89.09 kB / 429.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.407e-05/0.1305, allocations: 34.56 kB / 429.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.104e-06/0.1305, allocations: 0 / 429.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001376/0.1318, allocations: 488.5 kB / 429.6 MB, free: 360 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/0.1319, allocations: 59.34 kB / 429.6 MB, free: 288 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002141/0.1321, allocations: 183.9 kB / 429.8 MB, free: 88 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.1321, allocations: 29.7 kB / 429.8 MB, free: 52 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.1323, allocations: 176.4 kB / 430 MB, free: 15.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.805e-05/0.1324, allocations: 87.25 kB / 430.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.62e-05/0.1325, allocations: 61.94 kB / 430.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.1326, allocations: 326.8 kB / 430.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.1328, allocations: 68.53 kB / 430.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001881/0.133, allocations: 132.1 kB / 430.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003359/0.1333, allocations: 216.1 kB / 430.9 MB, free: 14.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.1333, allocations: 0 / 430.9 MB, free: 14.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006531/0.1339, allocations: 332.5 kB / 431.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.134, allocations: 8 kB / 431.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.134, allocations: 0 / 431.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003509/0.1343, allocations: 84.95 kB / 431.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.1345, allocations: 43.92 kB / 431.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00241/0.1369, allocations: 2.026 MB / 433.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/0.1371, allocations: 23.78 kB / 433.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.579e-05/0.1371, allocations: 16 kB / 433.4 MB, free: 12.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001928/0.1373, allocations: 145.8 kB / 433.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.561e-05/0.1373, allocations: 19.84 kB / 433.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006581/0.138, allocations: 287.2 kB / 433.9 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.138, allocations: 4 kB / 433.9 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.138, allocations: 0 / 433.9 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.138, allocations: 8 kB / 433.9 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/0.1392, allocations: 0.6826 MB / 434.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1392, allocations: 0 / 434.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/0.1393, allocations: 27.98 kB / 434.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002817/0.1396, allocations: 80.91 kB / 434.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.1396, allocations: 4 kB / 434.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002331/0.1419, allocations: 2.03 MB / 436.7 MB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1419, allocations: 0 / 436.7 MB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007388/0.1427, allocations: 445.3 kB / 437.1 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.1428, allocations: 112.9 kB / 437.2 MB, free: 8.184 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.295e-05/0.1428, allocations: 8 kB / 437.2 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.1429, allocations: 4 kB / 437.2 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.578e-05/0.143, allocations: 19.92 kB / 437.3 MB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/0.143, allocations: 11.98 kB / 437.3 MB, free: 8.141 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001243/0.1431, allocations: 123.2 kB / 437.4 MB, free: 8.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1431, allocations: 0 / 437.4 MB, free: 8.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005295/0.1437, allocations: 99.84 kB / 437.5 MB, free: 7.922 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001203/0.1449, allocations: 1.013 MB / 438.5 MB, free: 6.883 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007081/0.1456, allocations: 334.7 kB / 438.8 MB, free: 6.543 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1456, allocations: 448 / 438.8 MB, free: 6.543 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003666/0.1459, allocations: 242.5 kB / 439.1 MB, free: 6.293 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003372/0.1463, allocations: 19.94 kB / 439.1 MB, free: 6.273 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003551/0.1498, allocations: 2.517 MB / 441.6 MB, free: 3.637 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004633/0.1503, allocations: 0.7599 MB / 442.4 MB, free: 2.848 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.826e-05/0.1504, allocations: 21.94 kB / 442.4 MB, free: 2.824 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.1505, allocations: 75.41 kB / 442.5 MB, free: 2.75 MB / 366.1 MB Notification: Performance of SimCode: time 1.122e-06/0.1505, allocations: 0 / 442.5 MB, free: 2.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2337/0.3842, allocations: 5.104 MB / 447.6 MB, free: 30.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/10.56, allocations: 13.03 kB / 447.6 MB, free: 30.22 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable leakageWithCoefficient.port_p.reference.gamma in file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv. Warning: Get data of variable leakageWithCoefficient.port_p.reference.gamma from file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.254964731633663]