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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001741/0.001741, allocations: 110.4 kB / 16.92 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001843/0.001843, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.287/2.287, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 42.67 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.164/0.1658, allocations: 49.45 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.013/0.1789, allocations: 5.238 MB / 355.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00567/0.1847, allocations: 1.681 MB / 357.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009359/0.1856, allocations: 16 kB / 357.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005867/0.1916, allocations: 1.418 MB / 358.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001904/0.1935, allocations: 317.7 kB / 358.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003315/0.1969, allocations: 0.8051 MB / 359.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001875/0.1988, allocations: 0.8092 MB / 360.5 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002262/0.201, allocations: 0.7654 MB / 361.2 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00099/0.2021, allocations: 354.6 kB / 361.6 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001211/0.2033, allocations: 466.1 kB / 362 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002741/0.2036, allocations: 83.94 kB / 362.1 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001387/0.205, allocations: 247.8 kB / 362.3 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003154/0.2053, allocations: 183.2 kB / 362.5 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009453/0.2063, allocations: 429.9 kB / 362.9 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002923/0.2093, allocations: 1.184 MB / 364.1 MB, free: 6.285 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.2093, allocations: 0 / 364.1 MB, free: 6.285 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.2093, allocations: 0 / 364.1 MB, free: 6.285 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.362e-05/0.2094, allocations: 4 kB / 364.1 MB, free: 6.281 MB / 302.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.00836/0.2177, allocations: 1.44 MB / 365.6 MB, free: 4.789 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.127e-05/0.2178, allocations: 12.03 kB / 365.6 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003593/0.2182, allocations: 144.4 kB / 365.7 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003454/0.2217, allocations: 259.7 kB / 366 MB, free: 4.375 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004974/0.2222, allocations: 263.1 kB / 366.2 MB, free: 4.078 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001413/0.2224, allocations: 70.38 kB / 366.3 MB, free: 4.012 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003513/0.2228, allocations: 100.4 kB / 366.4 MB, free: 3.914 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00322/0.226, allocations: 0.9345 MB / 367.3 MB, free: 2.965 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.606e-05/0.2261, allocations: 8 kB / 367.3 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001577/0.2263, allocations: 39.98 kB / 367.4 MB, free: 2.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.307e-05/0.2263, allocations: 24 kB / 367.4 MB, free: 2.895 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002557/0.2289, allocations: 0.7808 MB / 368.2 MB, free: 2.117 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2652/0.4942, allocations: 3.388 MB / 371.6 MB, free: 23.6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003841/0.4981, allocations: 1.253 MB / 372.8 MB, free: 23.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/0.4992, allocations: 368.1 kB / 373.2 MB, free: 23.13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001803/0.4994, allocations: 106.8 kB / 373.3 MB, free: 23.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.672e-05/0.4995, allocations: 40.19 kB / 373.3 MB, free: 22.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 5.681e-06/0.4995, allocations: 0 / 373.3 MB, free: 22.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=87): time 0.004113/0.5036, allocations: 1.311 MB / 374.6 MB, free: 22.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.5037, allocations: 86.81 kB / 374.7 MB, free: 22.1 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000907/0.5046, allocations: 366.7 kB / 375.1 MB, free: 21.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.254e-05/0.5047, allocations: 40.73 kB / 375.1 MB, free: 21.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003638/0.5051, allocations: 382.1 kB / 375.5 MB, free: 21.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003393/0.5055, allocations: 297.6 kB / 375.8 MB, free: 21.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004998/0.506, allocations: 173.3 kB / 376 MB, free: 21.26 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.5062, allocations: 362 kB / 376.3 MB, free: 20.92 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009498/0.5071, allocations: 270.4 kB / 376.6 MB, free: 20.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/0.5082, allocations: 470 kB / 377 MB, free: 20.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001963/0.5102, allocations: 0.7685 MB / 377.8 MB, free: 19.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.338e-05/0.5102, allocations: 2.75 kB / 377.8 MB, free: 19.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.003121/0.5134, allocations: 0.9763 MB / 378.8 MB, free: 19.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.196e-05/0.5134, allocations: 7.25 kB / 378.8 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.532e-05/0.5135, allocations: 8.125 kB / 378.8 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007111/0.5142, allocations: 128.9 kB / 378.9 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001508/0.5157, allocations: 210.8 kB / 379.1 MB, free: 19.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005575/0.5213, allocations: 6.114 MB / 385.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.5225, allocations: 102.8 kB / 385.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/0.5226, allocations: 43.5 kB / 385.4 MB, free: 13.29 MB / 302.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.0004905/0.5231, allocations: 237.4 kB / 385.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002008/0.5233, allocations: 48.78 kB / 385.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002713/0.5261, allocations: 0.8493 MB / 386.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.956e-05/0.5261, allocations: 8.656 kB / 386.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-05/0.5262, allocations: 2.188 kB / 386.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.989e-05/0.5262, allocations: 5.141 kB / 386.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005397/0.5316, allocations: 1.943 MB / 388.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.264e-05/0.5317, allocations: 6.656 kB / 388.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/0.5328, allocations: 136.6 kB / 388.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005944/0.5334, allocations: 106 kB / 388.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.313e-05/0.5335, allocations: 21.67 kB / 388.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004984/0.5385, allocations: 5.706 MB / 394.4 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.5386, allocations: 6.297 kB / 394.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003347/0.5419, allocations: 1.276 MB / 395.7 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002585/0.5422, allocations: 138.3 kB / 395.9 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001809/0.5424, allocations: 20.14 kB / 395.9 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008207/0.5432, allocations: 22.84 kB / 395.9 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002204/0.5435, allocations: 61.25 kB / 396 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.449e-05/0.5436, allocations: 28.94 kB / 396 MB, free: 4.672 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005392/0.5441, allocations: 255.5 kB / 396.2 MB, free: 4.531 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5441, allocations: 0 / 396.2 MB, free: 4.531 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.002127/0.5463, allocations: 262.8 kB / 396.5 MB, free: 4.465 MB / 302.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.003781/0.5501, allocations: 1.885 MB / 398.4 MB, free: 3.133 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003852/0.554, allocations: 1.201 MB / 399.6 MB, free: 2.398 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.554, allocations: 1.031 kB / 399.6 MB, free: 2.398 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001424/0.5554, allocations: 0.7944 MB / 400.4 MB, free: 1.816 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.5567, allocations: 64.81 kB / 400.4 MB, free: 1.773 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01613/0.5728, allocations: 5.791 MB / 406.2 MB, free: 14.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/0.5739, allocations: 0.913 MB / 407.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001192/0.5752, allocations: 106.5 kB / 407.3 MB, free: 13.36 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006208/0.5758, allocations: 249.7 kB / 407.5 MB, free: 13.18 MB / 318.1 MB Notification: Performance of SimCode: time 1.533e-06/0.5759, allocations: 0 / 407.5 MB, free: 13.18 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07103/0.6469, allocations: 12.55 MB / 420 MB, free: 2.07 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.88/16.52, allocations: 11.86 kB / 420.1 MB, free: 2.059 MB / 318.1 MB (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) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/CylinderLeakage/CylinderLeakage.csv","/var/lib/jenkins1/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) Reference file matches