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.001774/0.001774, allocations: 119.9 kB / 17.74 MB, free: 5.344 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.002034/0.002034, allocations: 185.3 kB / 20.68 MB, free: 2.414 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.426/1.426, allocations: 222.9 MB / 246.4 MB, free: 4.191 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.001872/0.001873, allocations: 51.91 kB / 357.5 MB, free: 8.793 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.109, allocations: 49.43 MB / 406.9 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004713/0.1138, allocations: 2.839 MB / 409.8 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002137/0.116, allocations: 1.152 MB / 410.9 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002533/0.1162, allocations: 4 kB / 410.9 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001656/0.1179, allocations: 0.6106 MB / 411.5 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004731/0.1184, allocations: 139.1 kB / 411.7 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001496/0.1199, allocations: 0.6846 MB / 412.4 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005279/0.1205, allocations: 290.6 kB / 412.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005281/0.121, allocations: 279 kB / 412.9 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002472/0.1213, allocations: 123.6 kB / 413 MB, free: 1.184 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002676/0.1215, allocations: 163.4 kB / 413.2 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.527e-05/0.1216, allocations: 28 kB / 413.2 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004089/0.122, allocations: 183.8 kB / 413.4 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.391e-05/0.1221, allocations: 59.77 kB / 413.5 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001709/0.1223, allocations: 151.3 kB / 413.6 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007197/0.123, allocations: 0.4982 MB / 414.1 MB, free: 112 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.123, allocations: 0 / 414.1 MB, free: 112 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.123, allocations: 0 / 414.1 MB, free: 112 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.123, allocations: 0 / 414.1 MB, free: 112 kB / 334.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.001778/0.1248, allocations: 0.7327 MB / 414.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.1249, allocations: 16.03 kB / 414.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.207e-05/0.125, allocations: 66.72 kB / 414.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008366/0.1258, allocations: 120.7 kB / 415 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.1262, allocations: 264.5 kB / 415.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/0.1263, allocations: 21.03 kB / 415.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.488e-05/0.1264, allocations: 36.12 kB / 415.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005746/0.1269, allocations: 333.1 kB / 415.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.127, allocations: 3.953 kB / 415.7 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.312e-05/0.127, allocations: 16 kB / 415.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.127, allocations: 8 kB / 415.7 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004388/0.1275, allocations: 238.5 kB / 415.9 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002158/0.1296, allocations: 1.444 MB / 417.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007652/0.1304, allocations: 0.6978 MB / 418.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.1306, allocations: 104.8 kB / 418.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001089/0.1307, allocations: 85.09 kB / 418.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.1308, allocations: 38.56 kB / 418.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.883e-06/0.1308, allocations: 4 kB / 418.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001283/0.1321, allocations: 489.8 kB / 418.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.229e-05/0.1321, allocations: 59.41 kB / 418.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.1323, allocations: 176.9 kB / 419 MB, free: 10.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/0.1324, allocations: 33.7 kB / 419 MB, free: 10.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.1325, allocations: 184.4 kB / 419.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.813e-05/0.1326, allocations: 83.27 kB / 419.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.081e-05/0.1327, allocations: 57.88 kB / 419.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1329, allocations: 330.8 kB / 419.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.133, allocations: 72.53 kB / 419.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.1332, allocations: 132.1 kB / 419.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003321/0.1335, allocations: 216.2 kB / 420.1 MB, free: 9.594 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1335, allocations: 0 / 420.1 MB, free: 9.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006148/0.1342, allocations: 328.5 kB / 420.4 MB, free: 9.266 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.1342, allocations: 6.094 kB / 420.4 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.1342, allocations: 8 kB / 420.4 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003416/0.1346, allocations: 80.73 kB / 420.5 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.1347, allocations: 35.98 kB / 420.5 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002363/0.1371, allocations: 2.037 MB / 422.6 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.1373, allocations: 31.88 kB / 422.6 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.409e-05/0.1373, allocations: 12 kB / 422.6 MB, free: 6.914 MB / 350.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.000173/0.1375, allocations: 141.8 kB / 422.8 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.142e-05/0.1375, allocations: 23.78 kB / 422.8 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006078/0.1381, allocations: 281.7 kB / 423.1 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1382, allocations: 4 kB / 423.1 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1382, allocations: 0 / 423.1 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.1382, allocations: 4 kB / 423.1 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.1393, allocations: 0.6865 MB / 423.8 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.1393, allocations: 0 / 423.8 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.1394, allocations: 35.92 kB / 423.8 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002487/0.1397, allocations: 72.81 kB / 423.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.1397, allocations: 4 kB / 423.9 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002245/0.1419, allocations: 2.03 MB / 425.9 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.142, allocations: 8 kB / 425.9 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006965/0.1427, allocations: 455.8 kB / 426.3 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.1428, allocations: 101 kB / 426.4 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.582e-05/0.1428, allocations: 8 kB / 426.5 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001198/0.1429, allocations: 4 kB / 426.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.012e-05/0.143, allocations: 23.97 kB / 426.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.143, allocations: 12 kB / 426.5 MB, free: 2.785 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001122/0.1431, allocations: 123.5 kB / 426.6 MB, free: 2.664 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1431, allocations: 0 / 426.6 MB, free: 2.664 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005118/0.1437, allocations: 103.8 kB / 426.7 MB, free: 2.562 MB / 350.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.001143/0.1448, allocations: 1.003 MB / 427.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006819/0.1455, allocations: 352.2 kB / 428.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1455, allocations: 0 / 428.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003717/0.1459, allocations: 254.5 kB / 428.3 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003296/0.1462, allocations: 15.94 kB / 428.3 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1802/0.3264, allocations: 2.516 MB / 430.8 MB, free: 21.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000159/0.3266, allocations: 0.762 MB / 431.6 MB, free: 20.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.77e-05/0.3267, allocations: 17.33 kB / 431.6 MB, free: 20.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.319e-05/0.3268, allocations: 72.98 kB / 431.7 MB, free: 20.48 MB / 350.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3268, allocations: 0 / 431.7 MB, free: 20.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03154/0.3584, allocations: 5.067 MB / 436.8 MB, free: 19.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.986/10.34, allocations: 3.391 kB / 436.8 MB, free: 19.96 MB / 350.1 MB " [Timeout remaining time 650] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 12.77699558797758]