Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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.001226/0.001226, 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.001184/0.001184, 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.9086/0.9086, allocations: 173.4 MB / 200.5 MB, free: 9.438 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.CylinderLeakage,fileNamePrefix="Modelica_4_0_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_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.036e-06/3.036e-06, allocations: 4 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.414e-05/1.717e-05, allocations: 2.281 kB / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.004144/0.004161, allocations: 4.674 MB / 323.1 MB, free: 1.66 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002082/0.006242, allocations: 1.6 MB / 324.7 MB, free: 52 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002547/0.006497, allocations: 20 kB / 324.7 MB, free: 32 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00163/0.008128, allocations: 1.379 MB / 326.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004834/0.008611, allocations: 333.4 kB / 326.4 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008941/0.009505, allocations: 0.7655 MB / 327.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006338/0.01014, allocations: 0.8438 MB / 328.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007579/0.0109, allocations: 0.6712 MB / 328.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004061/0.0113, allocations: 0.5184 MB / 329.2 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002964/0.0116, allocations: 347 kB / 329.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.571e-05/0.01166, allocations: 76 kB / 329.7 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003257/0.01199, allocations: 251.5 kB / 329.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.01209, allocations: 179.3 kB / 330.1 MB, free: 10.67 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001772/0.01227, allocations: 287.3 kB / 330.4 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008376/0.01311, allocations: 1.223 MB / 331.6 MB, free: 9.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.01311, allocations: 3.984 kB / 331.6 MB, free: 9.156 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.01311, allocations: 0 / 331.6 MB, free: 9.156 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.01312, allocations: 4 kB / 331.6 MB, free: 9.152 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002073/0.01519, allocations: 1.371 MB / 333 MB, free: 7.746 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.01523, allocations: 8.922 kB / 333 MB, free: 7.738 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001128/0.01534, allocations: 152.4 kB / 333.1 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008077/0.01615, allocations: 256.2 kB / 333.4 MB, free: 7.332 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001526/0.0163, allocations: 209.3 kB / 333.6 MB, free: 7.102 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.555e-05/0.01635, allocations: 70.38 kB / 333.6 MB, free: 7.035 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.01646, allocations: 100.4 kB / 333.7 MB, free: 6.938 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009528/0.01741, allocations: 0.9349 MB / 334.7 MB, free: 5.988 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.01743, allocations: 16.08 kB / 334.7 MB, free: 5.973 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.248e-05/0.01749, allocations: 44.12 kB / 334.7 MB, free: 5.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.0175, allocations: 24 kB / 334.8 MB, free: 5.906 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008471/0.01835, allocations: 0.7731 MB / 335.5 MB, free: 5.137 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002943/0.02129, allocations: 2.801 MB / 338.3 MB, free: 2.211 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/0.02233, allocations: 0.8781 MB / 339.2 MB, free: 1.316 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003331/0.02267, allocations: 329 kB / 339.5 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.882e-05/0.02273, allocations: 24.98 kB / 339.6 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.02275, allocations: 47.5 kB / 339.6 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of pre-optimization done (n=87): time 1.964e-06/0.02275, allocations: 0 / 339.6 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of matching and sorting (n=87): time 0.001266/0.02402, allocations: 1.003 MB / 340.6 MB, free: 15.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.02405, allocations: 86.11 kB / 340.7 MB, free: 15.79 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002696/0.02432, allocations: 384.2 kB / 341.1 MB, free: 15.4 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.02435, allocations: 37.7 kB / 341.1 MB, free: 15.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001515/0.0245, allocations: 388.2 kB / 341.5 MB, free: 14.97 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.02464, allocations: 309.3 kB / 341.8 MB, free: 14.67 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001567/0.0248, allocations: 174.9 kB / 342 MB, free: 14.49 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.0249, allocations: 362.8 kB / 342.3 MB, free: 14.13 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002988/0.0252, allocations: 270.5 kB / 342.6 MB, free: 13.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003901/0.02559, allocations: 479.4 kB / 343 MB, free: 13.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007085/0.0263, allocations: 0.7589 MB / 343.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.0263, allocations: 8 kB / 343.8 MB, free: 12.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001016/0.02732, allocations: 0.9731 MB / 344.8 MB, free: 11.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.02733, allocations: 8 kB / 344.8 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.02734, allocations: 4 kB / 344.8 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002339/0.02758, allocations: 127.3 kB / 344.9 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004022/0.02798, allocations: 211.8 kB / 345.1 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002618/0.0306, allocations: 5.689 MB / 350.8 MB, free: 4.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002554/0.03085, allocations: 99.25 kB / 350.9 MB, free: 4.883 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.822e-05/0.03089, allocations: 47.92 kB / 351 MB, free: 4.836 MB / 314.7 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.0001984/0.03109, allocations: 229.5 kB / 351.2 MB, free: 4.602 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.367e-05/0.03115, allocations: 55.61 kB / 351.2 MB, free: 4.547 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008821/0.03203, allocations: 0.8443 MB / 352.1 MB, free: 3.684 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.03204, allocations: 8 kB / 352.1 MB, free: 3.676 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.03204, allocations: 4 kB / 352.1 MB, free: 3.672 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.03205, allocations: 7.984 kB / 352.1 MB, free: 3.664 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00163/0.03368, allocations: 1.646 MB / 353.7 MB, free: 1.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.03368, allocations: 0 / 353.7 MB, free: 1.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002827/0.03396, allocations: 139.8 kB / 353.9 MB, free: 1.793 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001616/0.03413, allocations: 115.6 kB / 354 MB, free: 1.668 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.949e-05/0.03416, allocations: 20 kB / 354 MB, free: 1.648 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002231/0.03639, allocations: 5.265 MB / 359.3 MB, free: 11.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.03639, allocations: 4 kB / 359.3 MB, free: 11.92 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.03751, allocations: 1.273 MB / 360.6 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.164e-05/0.03756, allocations: 67.72 kB / 360.6 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.008e-05/0.0376, allocations: 20 kB / 360.6 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001923/0.03779, allocations: 23.98 kB / 360.7 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.472e-05/0.03786, allocations: 68.48 kB / 360.7 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.03788, allocations: 24 kB / 360.8 MB, free: 10.39 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000172/0.03805, allocations: 263.1 kB / 361 MB, free: 10.14 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03805, allocations: 0 / 361 MB, free: 10.14 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005427/0.03859, allocations: 263.5 kB / 361.3 MB, free: 9.879 MB / 330.7 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.001482/0.04008, allocations: 1.874 MB / 363.1 MB, free: 7.945 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.04109, allocations: 1.13 MB / 364.3 MB, free: 6.762 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.04109, allocations: 0 / 364.3 MB, free: 6.762 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005107/0.0416, allocations: 0.7561 MB / 365 MB, free: 5.953 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003824/0.04199, allocations: 66.23 kB / 365.1 MB, free: 5.891 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005128/0.04711, allocations: 5.68 MB / 370.8 MB, free: 15.89 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004971/0.04761, allocations: 322.3 kB / 371.1 MB, free: 15.55 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002722/0.04788, allocations: 105.1 kB / 371.2 MB, free: 15.45 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002297/0.04811, allocations: 244.4 kB / 371.4 MB, free: 15.21 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/0.04811, allocations: 4 kB / 371.4 MB, free: 15.2 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0287/0.07681, allocations: 13.75 MB / 385.2 MB, free: 1.66 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.537/7.614, allocations: 6.531 kB / 385.2 MB, free: 1.656 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/CylinderLeakage/CylinderLeakage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.csv. Warning: Get data of variable quarterCylinder1.port_p.reference.gamma from file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.373968437314034]