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.001165/0.001165, allocations: 76.08 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.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.0008304/0.0008304, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8706/0.8706, allocations: 173.3 MB / 200.4 MB, free: 9.449 MB / 186.7 MB " [Timeout remaining time 179] 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 1.904e-06/1.904e-06, allocations: 0 / 318.4 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.478e-05/1.668e-05, allocations: 9.453 kB / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.002606/0.002623, allocations: 2.644 MB / 321.1 MB, free: 3.719 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.003974, allocations: 1.086 MB / 322.2 MB, free: 2.629 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.004108, allocations: 8 kB / 322.2 MB, free: 2.621 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001171/0.005279, allocations: 0.6013 MB / 322.8 MB, free: 2.02 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002654/0.005545, allocations: 138.9 kB / 322.9 MB, free: 1.883 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009638/0.006508, allocations: 0.6328 MB / 323.5 MB, free: 1.25 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004005/0.006909, allocations: 322.4 kB / 323.9 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004049/0.007314, allocations: 231.1 kB / 324.1 MB, free: 0.707 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001959/0.00751, allocations: 191.5 kB / 324.3 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.007645, allocations: 131.6 kB / 324.4 MB, free: 400 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.688e-05/0.007672, allocations: 24 kB / 324.4 MB, free: 376 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002664/0.007938, allocations: 159.8 kB / 324.6 MB, free: 216 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.909e-05/0.007977, allocations: 67.75 kB / 324.6 MB, free: 148 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.103e-05/0.008048, allocations: 103.7 kB / 324.7 MB, free: 44 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005438/0.008592, allocations: 0.5062 MB / 325.3 MB, free: 15.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.008595, allocations: 0 / 325.3 MB, free: 15.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.008596, allocations: 0 / 325.3 MB, free: 15.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.008601, allocations: 0 / 325.3 MB, free: 15.54 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001037/0.009638, allocations: 0.6534 MB / 325.9 MB, free: 14.85 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.009676, allocations: 12.92 kB / 325.9 MB, free: 14.84 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.368e-05/0.00973, allocations: 74.66 kB / 326 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000415/0.01014, allocations: 116.6 kB / 326.1 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002859/0.01043, allocations: 202 kB / 326.3 MB, free: 14.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.01045, allocations: 29.03 kB / 326.3 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.405e-05/0.01049, allocations: 36.33 kB / 326.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005096/0.011, allocations: 329.6 kB / 326.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.01102, allocations: 7.938 kB / 326.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.01104, allocations: 8 kB / 326.7 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.01105, allocations: 8 kB / 326.7 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002625/0.01131, allocations: 242.5 kB / 327 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.0125, allocations: 1.082 MB / 328 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003072/0.0128, allocations: 237.8 kB / 328.3 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.881e-05/0.0129, allocations: 92.77 kB / 328.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.184e-05/0.01296, allocations: 11.98 kB / 328.4 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.903e-05/0.01298, allocations: 34.56 kB / 328.4 MB, free: 12.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.01299, allocations: 0 / 328.4 MB, free: 12.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007093/0.01369, allocations: 414.2 kB / 328.8 MB, free: 11.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.113e-05/0.01373, allocations: 55.39 kB / 328.9 MB, free: 11.74 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.01384, allocations: 179.2 kB / 329 MB, free: 11.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.01386, allocations: 29.7 kB / 329.1 MB, free: 11.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.059e-05/0.01393, allocations: 180.4 kB / 329.2 MB, free: 11.33 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.265e-05/0.01397, allocations: 91.22 kB / 329.3 MB, free: 11.24 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.39e-05/0.01403, allocations: 53.98 kB / 329.4 MB, free: 11.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.285e-05/0.0141, allocations: 322.8 kB / 329.7 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.632e-05/0.01418, allocations: 72.53 kB / 329.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.993e-05/0.01428, allocations: 136.9 kB / 329.9 MB, free: 10.63 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000184/0.01446, allocations: 217 kB / 330.1 MB, free: 10.4 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.01446, allocations: 0 / 330.1 MB, free: 10.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000612/0.01507, allocations: 331.6 kB / 330.4 MB, free: 10.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.01509, allocations: 10.88 kB / 330.4 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.0151, allocations: 4 kB / 330.5 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002182/0.01531, allocations: 80.73 kB / 330.5 MB, free: 9.973 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.521e-05/0.0154, allocations: 39.92 kB / 330.6 MB, free: 9.934 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001274/0.01667, allocations: 1.911 MB / 332.5 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.198e-05/0.01675, allocations: 27.78 kB / 332.5 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.01676, allocations: 19.97 kB / 332.5 MB, free: 7.855 MB / 298.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 9.861e-05/0.01686, allocations: 137.8 kB / 332.7 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.383e-05/0.01688, allocations: 19.86 kB / 332.7 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003182/0.0172, allocations: 294.9 kB / 333 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.0172, allocations: 4 kB / 333 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.01721, allocations: 0 / 333 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.01721, allocations: 3.984 kB / 333 MB, free: 7.395 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005525/0.01776, allocations: 0.6271 MB / 333.6 MB, free: 6.711 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.01776, allocations: 0 / 333.6 MB, free: 6.711 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.019e-05/0.01782, allocations: 35.92 kB / 333.6 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001256/0.01795, allocations: 68.81 kB / 333.7 MB, free: 6.605 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.01796, allocations: 4 kB / 333.7 MB, free: 6.602 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001102/0.01906, allocations: 1.915 MB / 335.6 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.01907, allocations: 0 / 335.6 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003944/0.01946, allocations: 451.1 kB / 336.1 MB, free: 4.117 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.283e-05/0.0195, allocations: 35.84 kB / 336.1 MB, free: 4.082 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.245e-05/0.01952, allocations: 4 kB / 336.1 MB, free: 4.078 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.543e-05/0.01957, allocations: 8 kB / 336.1 MB, free: 4.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.156e-05/0.0196, allocations: 15.97 kB / 336.1 MB, free: 4.055 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.684e-06/0.01961, allocations: 12.12 kB / 336.1 MB, free: 4.043 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.898e-05/0.01968, allocations: 127.5 kB / 336.3 MB, free: 3.918 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01968, allocations: 0 / 336.3 MB, free: 3.918 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003225/0.02, allocations: 99.77 kB / 336.4 MB, free: 3.82 MB / 298.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.0008737/0.02088, allocations: 0.9971 MB / 337.4 MB, free: 2.797 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003854/0.02126, allocations: 338.3 kB / 337.7 MB, free: 2.453 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.02126, allocations: 3.938 kB / 337.7 MB, free: 2.449 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001737/0.02144, allocations: 246.9 kB / 337.9 MB, free: 2.195 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.02166, allocations: 19.98 kB / 338 MB, free: 2.176 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001933/0.02359, allocations: 2.46 MB / 340.4 MB, free: 15.57 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001095/0.0237, allocations: 154.3 kB / 340.6 MB, free: 15.4 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.1e-05/0.02376, allocations: 25.94 kB / 340.6 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.043e-05/0.02383, allocations: 68.48 kB / 340.7 MB, free: 15.31 MB / 314.7 MB Notification: Performance of SimCode: time 7.72e-07/0.02384, allocations: 0 / 340.7 MB, free: 15.31 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01903/0.04286, allocations: 5.828 MB / 346.5 MB, free: 9.629 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.163/7.206, allocations: 1.172 kB / 346.5 MB, free: 9.629 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins/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: 8.889458420686424]