Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.00109/0.00109, allocations: 83.64 kB / 21.43 MB, free: 3.133 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.004268/0.004268, allocations: 163.2 kB / 24.69 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8391/0.8391, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.919e-05/2.097e-05, allocations: 2.281 kB / 298.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003528/0.003549, allocations: 2.529 MB / 301 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1166/0.1201, allocations: 1.117 MB / 302.1 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002327/0.1203, allocations: 6.625 kB / 302.1 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009448/0.1213, allocations: 0.5988 MB / 302.7 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002862/0.1216, allocations: 136.6 kB / 302.8 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007407/0.1223, allocations: 0.6138 MB / 303.4 MB, free: 13.09 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003397/0.1227, allocations: 301.8 kB / 303.7 MB, free: 13 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003352/0.123, allocations: 237.8 kB / 304 MB, free: 12.97 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002188/0.1232, allocations: 187.3 kB / 304.1 MB, free: 12.95 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001653/0.1234, allocations: 130.8 kB / 304.3 MB, free: 12.94 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.813e-05/0.1234, allocations: 24.75 kB / 304.3 MB, free: 12.94 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002757/0.1237, allocations: 172.7 kB / 304.5 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.541e-05/0.1237, allocations: 60.66 kB / 304.5 MB, free: 12.91 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.417e-05/0.1238, allocations: 99.7 kB / 304.6 MB, free: 12.9 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004924/0.1243, allocations: 0.5002 MB / 305.1 MB, free: 12.8 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1243, allocations: 1.156 kB / 305.1 MB, free: 12.8 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1243, allocations: 0 / 305.1 MB, free: 12.8 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.1243, allocations: 3.312 kB / 305.1 MB, free: 12.8 MB / 282.7 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.001047/0.1254, allocations: 0.652 MB / 305.8 MB, free: 12.36 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.1254, allocations: 12.83 kB / 305.8 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.969e-05/0.1254, allocations: 68.64 kB / 305.9 MB, free: 12.3 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004256/0.1259, allocations: 124.1 kB / 306 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002836/0.1262, allocations: 206 kB / 306.2 MB, free: 12.09 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.1262, allocations: 22.78 kB / 306.2 MB, free: 12.08 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.401e-05/0.1262, allocations: 33.91 kB / 306.2 MB, free: 12.07 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003669/0.1266, allocations: 333.5 kB / 306.6 MB, free: 11.9 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.1266, allocations: 1 kB / 306.6 MB, free: 11.9 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/0.1266, allocations: 18.88 kB / 306.6 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.1266, allocations: 8.594 kB / 306.6 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002828/0.1269, allocations: 238.4 kB / 306.8 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001166/0.1281, allocations: 1.093 MB / 307.9 MB, free: 11.03 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003398/0.1284, allocations: 233.6 kB / 308.1 MB, free: 10.92 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.1285, allocations: 96.83 kB / 308.2 MB, free: 10.88 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.92e-05/0.1286, allocations: 8.172 kB / 308.2 MB, free: 10.88 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.4e-05/0.1286, allocations: 38.27 kB / 308.3 MB, free: 10.84 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.383e-06/0.1286, allocations: 4 kB / 308.3 MB, free: 10.83 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007387/0.1293, allocations: 409.8 kB / 308.7 MB, free: 10.68 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.216e-05/0.1294, allocations: 54.06 kB / 308.7 MB, free: 10.61 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.1295, allocations: 177.9 kB / 308.9 MB, free: 10.48 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.103e-05/0.1295, allocations: 34.73 kB / 308.9 MB, free: 10.44 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.284e-05/0.1295, allocations: 182.5 kB / 309.1 MB, free: 10.29 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.283e-05/0.1296, allocations: 84.91 kB / 309.2 MB, free: 10.22 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.438e-05/0.1296, allocations: 54.3 kB / 309.3 MB, free: 10.18 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.082e-05/0.1296, allocations: 332.3 kB / 309.6 MB, free: 9.859 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.591e-05/0.1297, allocations: 66.3 kB / 309.7 MB, free: 9.836 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/0.1298, allocations: 133.1 kB / 309.8 MB, free: 9.738 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001873/0.13, allocations: 221.8 kB / 310 MB, free: 9.586 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.13, allocations: 5 kB / 310 MB, free: 9.582 MB / 282.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003699/0.1304, allocations: 320.9 kB / 310.3 MB, free: 9.43 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.1304, allocations: 9.469 kB / 310.3 MB, free: 9.426 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.1304, allocations: 2.188 kB / 310.3 MB, free: 9.426 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002181/0.1306, allocations: 76.45 kB / 310.4 MB, free: 9.402 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.566e-05/0.1307, allocations: 45.94 kB / 310.4 MB, free: 9.395 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/0.132, allocations: 1.906 MB / 312.4 MB, free: 7.723 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.731e-05/0.132, allocations: 30.88 kB / 312.4 MB, free: 7.699 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.843e-05/0.1321, allocations: 8.719 kB / 312.4 MB, free: 7.699 MB / 282.7 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.0001127/0.1322, allocations: 148.6 kB / 312.5 MB, free: 7.559 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.667e-05/0.1322, allocations: 17.19 kB / 312.6 MB, free: 7.551 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003693/0.1326, allocations: 279.5 kB / 312.8 MB, free: 7.41 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.1326, allocations: 10.94 kB / 312.8 MB, free: 7.402 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.1326, allocations: 3.312 kB / 312.8 MB, free: 7.402 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1326, allocations: 4.969 kB / 312.8 MB, free: 7.398 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005849/0.1332, allocations: 0.6304 MB / 313.5 MB, free: 6.961 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1332, allocations: 0 / 313.5 MB, free: 6.961 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.622e-05/0.1332, allocations: 22.77 kB / 313.5 MB, free: 6.961 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001433/0.1334, allocations: 76.86 kB / 313.6 MB, free: 6.934 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.1334, allocations: 7.281 kB / 313.6 MB, free: 6.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009763/0.1344, allocations: 1.904 MB / 315.5 MB, free: 5.266 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1344, allocations: 3.938 kB / 315.5 MB, free: 5.262 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004156/0.1348, allocations: 449.8 kB / 315.9 MB, free: 4.984 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.004e-05/0.1348, allocations: 37.58 kB / 316 MB, free: 4.961 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.1348, allocations: 1.938 kB / 316 MB, free: 4.961 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.022e-05/0.1349, allocations: 11.25 kB / 316 MB, free: 4.953 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.413e-05/0.1349, allocations: 19.11 kB / 316 MB, free: 4.949 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.135, allocations: 6.062 kB / 316 MB, free: 4.949 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.174e-05/0.135, allocations: 126 kB / 316.1 MB, free: 4.859 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.135, allocations: 0 / 316.1 MB, free: 4.859 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003363/0.1354, allocations: 95.45 kB / 316.2 MB, free: 4.836 MB / 282.7 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.000568/0.1359, allocations: 0.9956 MB / 317.2 MB, free: 4.027 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003906/0.1363, allocations: 348.4 kB / 317.6 MB, free: 3.816 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1363, allocations: 1.344 kB / 317.6 MB, free: 3.816 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.1365, allocations: 236.8 kB / 317.8 MB, free: 3.652 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002186/0.1367, allocations: 20.11 kB / 317.8 MB, free: 3.641 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001878/0.1386, allocations: 2.481 MB / 320.3 MB, free: 1.801 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001095/0.1387, allocations: 155.4 kB / 320.4 MB, free: 1.715 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.278e-05/0.1388, allocations: 23.05 kB / 320.5 MB, free: 1.707 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.751e-05/0.1388, allocations: 72.61 kB / 320.5 MB, free: 1.648 MB / 282.7 MB Notification: Performance of SimCode: time 9.62e-07/0.1388, allocations: 0 / 320.5 MB, free: 1.648 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02466/0.1635, allocations: 5.731 MB / 326.3 MB, free: 15.38 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.361/7.525, allocations: 13.67 kB / 326.3 MB, free: 15.36 MB / 298.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv. Warning: Get data of variable leakageWithCoefficient.port_p.reference.gamma from file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.125382781028748]