Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001115/0.001115, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001152/0.001153, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 67.88 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.2681, allocations: 50.53 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.006775/0.2749, allocations: 5.26 MB / 414 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003152/0.2781, allocations: 1.72 MB / 415.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000406/0.2786, allocations: 20 kB / 415.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003292/0.2819, allocations: 1.408 MB / 417.2 MB, free: 9.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001028/0.2829, allocations: 329.6 kB / 417.5 MB, free: 8.754 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001445/0.2844, allocations: 0.6458 MB / 418.1 MB, free: 8.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001053/0.2855, allocations: 0.8091 MB / 418.9 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001066/0.2865, allocations: 0.7536 MB / 419.7 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004623/0.287, allocations: 354.7 kB / 420 MB, free: 6.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004405/0.2875, allocations: 466.1 kB / 420.5 MB, free: 5.715 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.737e-05/0.2876, allocations: 76 kB / 420.6 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000524/0.2881, allocations: 263.8 kB / 420.8 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00013/0.2882, allocations: 179.3 kB / 421 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003303/0.2886, allocations: 421.9 kB / 421.4 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001246/0.2898, allocations: 1.205 MB / 422.6 MB, free: 3.586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2898, allocations: 0 / 422.6 MB, free: 3.586 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2899, allocations: 0 / 422.6 MB, free: 3.586 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.337e-05/0.2899, allocations: 0 / 422.6 MB, free: 3.586 MB / 334.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.00402/0.2939, allocations: 1.473 MB / 424.1 MB, free: 2.062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.294, allocations: 12.03 kB / 424.1 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000166/0.2941, allocations: 156.3 kB / 424.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001721/0.2959, allocations: 252.2 kB / 424.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/0.2961, allocations: 271.2 kB / 424.8 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.39e-05/0.2962, allocations: 74.38 kB / 424.8 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00016/0.2964, allocations: 96.38 kB / 424.9 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.298, allocations: 0.9384 MB / 425.9 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.498e-05/0.298, allocations: 7.953 kB / 425.9 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.223e-05/0.2981, allocations: 44 kB / 425.9 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.313e-05/0.2981, allocations: 24 kB / 425.9 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/0.2995, allocations: 0.7886 MB / 426.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005167/0.3047, allocations: 3.603 MB / 430.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001953/0.3066, allocations: 1.256 MB / 431.6 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005377/0.3072, allocations: 376.2 kB / 432 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001687/0.3074, allocations: 187.2 kB / 432.1 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.421e-05/0.3074, allocations: 47.5 kB / 432.2 MB, free: 9.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=87): time 3.646e-06/0.3074, allocations: 0 / 432.2 MB, free: 9.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=87): time 0.002219/0.3097, allocations: 1.301 MB / 433.5 MB, free: 8.137 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.365e-05/0.3097, allocations: 90.14 kB / 433.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004354/0.3102, allocations: 372.3 kB / 433.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.036e-05/0.3102, allocations: 33.7 kB / 434 MB, free: 7.621 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002463/0.3105, allocations: 396.2 kB / 434.4 MB, free: 7.227 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002355/0.3107, allocations: 317.3 kB / 434.7 MB, free: 6.914 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002598/0.311, allocations: 170.9 kB / 434.8 MB, free: 6.738 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.3111, allocations: 362.7 kB / 435.2 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004731/0.3116, allocations: 266.5 kB / 435.5 MB, free: 6.117 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005984/0.3122, allocations: 479.4 kB / 435.9 MB, free: 5.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/0.3133, allocations: 0.7667 MB / 436.7 MB, free: 4.727 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.926e-06/0.3134, allocations: 4 kB / 436.7 MB, free: 4.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001636/0.315, allocations: 0.9766 MB / 437.7 MB, free: 3.727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.315, allocations: 14.95 kB / 437.7 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.3151, allocations: 4 kB / 437.7 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004025/0.3155, allocations: 127.9 kB / 437.8 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007829/0.3163, allocations: 207.7 kB / 438 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004587/0.3209, allocations: 6.111 MB / 444.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006196/0.3215, allocations: 99.25 kB / 444.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-05/0.3216, allocations: 43.98 kB / 444.3 MB, free: 12.56 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.000347/0.3219, allocations: 233.5 kB / 444.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001976/0.3221, allocations: 59.62 kB / 444.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001431/0.3236, allocations: 0.8482 MB / 445.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.347e-06/0.3236, allocations: 8 kB / 445.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.3236, allocations: 7.938 kB / 445.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.3236, allocations: 3.984 kB / 445.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002884/0.3265, allocations: 2.093 MB / 447.5 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.289e-06/0.3265, allocations: 0 / 447.5 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005705/0.3271, allocations: 139.8 kB / 447.7 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002833/0.3274, allocations: 103.4 kB / 447.8 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.157e-05/0.3275, allocations: 28.05 kB / 447.8 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003742/0.3312, allocations: 5.705 MB / 453.5 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.3312, allocations: 4 kB / 453.5 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.333, allocations: 1.285 MB / 454.8 MB, free: 1.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.3332, allocations: 152.5 kB / 454.9 MB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.672e-05/0.3333, allocations: 19.88 kB / 454.9 MB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003991/0.3337, allocations: 24 kB / 455 MB, free: 1.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.3338, allocations: 68.56 kB / 455 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.053e-05/0.3338, allocations: 28 kB / 455.1 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002816/0.3341, allocations: 251.2 kB / 455.3 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3341, allocations: 0 / 455.3 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009548/0.3351, allocations: 263.5 kB / 455.6 MB, free: 432 kB / 366.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.002193/0.3373, allocations: 1.879 MB / 457.4 MB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0017/0.339, allocations: 1.181 MB / 458.6 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.339, allocations: 0 / 458.6 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000876/0.3399, allocations: 0.801 MB / 459.4 MB, free: 12.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005942/0.3405, allocations: 61.59 kB / 459.5 MB, free: 12.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007816/0.3483, allocations: 5.69 MB / 465.2 MB, free: 6.328 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004989/0.3489, allocations: 0.9149 MB / 466.1 MB, free: 5.387 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004547/0.3493, allocations: 105.1 kB / 466.2 MB, free: 5.281 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003388/0.3497, allocations: 247.3 kB / 466.4 MB, free: 5.039 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3497, allocations: 3.938 kB / 466.4 MB, free: 5.035 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04052/0.3902, allocations: 12.83 MB / 479.3 MB, free: 8.398 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.88, allocations: 11.94 kB / 479.3 MB, free: 8.387 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches