Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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.001764/0.001764, allocations: 120.4 kB / 17.79 MB, free: 5.285 MB / 14.72 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.002277/0.002277, allocations: 199.3 kB / 20.74 MB, free: 2.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.5/1.5, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.CylinderLeakage,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 51.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1048, allocations: 53.32 MB / 426.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.2599/0.3647, allocations: 5.278 MB / 431.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002532/0.3672, allocations: 1.755 MB / 433.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002683/0.3675, allocations: 17.31 kB / 433.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002625/0.3701, allocations: 1.415 MB / 434.8 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008401/0.371, allocations: 328.4 kB / 435.1 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001344/0.3723, allocations: 0.6438 MB / 435.7 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000889/0.3732, allocations: 0.8059 MB / 436.6 MB, free: 6.789 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008451/0.374, allocations: 0.5939 MB / 437.1 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004758/0.3745, allocations: 357.5 kB / 437.5 MB, free: 6.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004799/0.375, allocations: 473.4 kB / 438 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001094/0.3751, allocations: 74.22 kB / 438 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006083/0.3757, allocations: 261.4 kB / 438.3 MB, free: 6.242 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001126/0.3758, allocations: 180.4 kB / 438.5 MB, free: 6.125 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003238/0.3761, allocations: 421.8 kB / 438.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001705/0.3778, allocations: 1.205 MB / 440.1 MB, free: 5.445 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3779, allocations: 0 / 440.1 MB, free: 5.445 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3779, allocations: 4 kB / 440.1 MB, free: 5.441 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.986e-05/0.3779, allocations: 0 / 440.1 MB, free: 5.441 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.00477/0.3827, allocations: 1.47 MB / 441.6 MB, free: 4.605 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.3827, allocations: 10.31 kB / 441.6 MB, free: 4.605 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001654/0.3829, allocations: 147.8 kB / 441.7 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001686/0.3846, allocations: 246.8 kB / 441.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003183/0.3849, allocations: 266.9 kB / 442.2 MB, free: 4.156 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.962e-05/0.385, allocations: 73.75 kB / 442.3 MB, free: 4.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002496/0.3852, allocations: 96.47 kB / 442.4 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001787/0.387, allocations: 0.9525 MB / 443.3 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.691e-05/0.387, allocations: 10.09 kB / 443.3 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.707e-05/0.3871, allocations: 39.94 kB / 443.4 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.083e-05/0.3871, allocations: 24.62 kB / 443.4 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/0.3885, allocations: 0.7784 MB / 444.2 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00498/0.3934, allocations: 3.617 MB / 447.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001762/0.3952, allocations: 1.182 MB / 449 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004692/0.3957, allocations: 327.1 kB / 449.3 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002019/0.3959, allocations: 191.8 kB / 449.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.3959, allocations: 47.03 kB / 449.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=87): time 3.056e-06/0.3959, allocations: 1.828 kB / 449.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=87): time 0.002461/0.3984, allocations: 1.306 MB / 450.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.499e-05/0.3984, allocations: 87.67 kB / 450.9 MB, free: 14.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00051/0.3989, allocations: 375 kB / 451.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.157e-05/0.399, allocations: 37.45 kB / 451.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003102/0.3993, allocations: 393.7 kB / 451.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002892/0.3996, allocations: 319.5 kB / 452 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000294/0.3999, allocations: 173.5 kB / 452.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.4001, allocations: 367.2 kB / 452.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000487/0.4006, allocations: 271.8 kB / 452.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006975/0.4013, allocations: 476.5 kB / 453.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001215/0.4025, allocations: 0.7738 MB / 454.1 MB, free: 12.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.4025, allocations: 1.125 kB / 454.1 MB, free: 12.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001716/0.4042, allocations: 0.9792 MB / 455 MB, free: 12.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.4042, allocations: 8.625 kB / 455 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.4042, allocations: 13.81 kB / 455.1 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000427/0.4047, allocations: 124.3 kB / 455.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008191/0.4055, allocations: 202.6 kB / 455.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005217/0.4107, allocations: 6.121 MB / 461.5 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007492/0.4115, allocations: 100.7 kB / 461.6 MB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.476e-05/0.4115, allocations: 41.45 kB / 461.6 MB, free: 6.031 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003874/0.4119, allocations: 233.5 kB / 461.9 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.412, allocations: 56.69 kB / 461.9 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001582/0.4136, allocations: 0.843 MB / 462.8 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.4136, allocations: 8.844 kB / 462.8 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.4137, allocations: 10.75 kB / 462.8 MB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.4137, allocations: 4.828 kB / 462.8 MB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003164/0.4168, allocations: 2.095 MB / 464.9 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.4168, allocations: 3.562 kB / 464.9 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006088/0.4174, allocations: 145.5 kB / 465 MB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003495/0.4178, allocations: 105.3 kB / 465.1 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.572e-05/0.4178, allocations: 22.58 kB / 465.2 MB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004556/0.4224, allocations: 5.718 MB / 470.9 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.4224, allocations: 6.562 kB / 470.9 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00212/0.4245, allocations: 1.286 MB / 472.2 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002576/0.4248, allocations: 143 kB / 472.3 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.305e-05/0.4249, allocations: 23 kB / 472.3 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004041/0.4253, allocations: 15.94 kB / 472.3 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.4254, allocations: 65.33 kB / 472.4 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.125e-05/0.4255, allocations: 27.48 kB / 472.4 MB, free: 13.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003702/0.4258, allocations: 258 kB / 472.7 MB, free: 12.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4258, allocations: 0 / 472.7 MB, free: 12.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001338/0.4272, allocations: 272.5 kB / 473 MB, free: 12.79 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (78): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002622/0.4298, allocations: 1.876 MB / 474.8 MB, free: 11.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002016/0.4318, allocations: 1.135 MB / 476 MB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.4318, allocations: 0 / 476 MB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.4329, allocations: 0.7656 MB / 476.7 MB, free: 9.984 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00075/0.4337, allocations: 60.67 kB / 476.8 MB, free: 9.941 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0092/0.4429, allocations: 5.682 MB / 482.5 MB, free: 5.906 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006278/0.4435, allocations: 0.9087 MB / 483.4 MB, free: 5.121 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004653/0.444, allocations: 107.2 kB / 483.5 MB, free: 5.059 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003941/0.4443, allocations: 247.2 kB / 483.7 MB, free: 4.855 MB / 382.1 MB Notification: Performance of SimCode: time 1.193e-06/0.4444, allocations: 1.375 kB / 483.7 MB, free: 4.855 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05228/0.4966, allocations: 13.09 MB / 496.8 MB, free: 8.195 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.38, allocations: 6.875 kB / 496.8 MB, free: 8.191 MB / 398.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_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_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/CylinderLeakage/CylinderLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable quarterCylinder1.port_p.reference.gamma in file Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.csv. Warning: Get data of variable quarterCylinder1.port_p.reference.gamma from file Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.946819333999883]