Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.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.FixedShapes.CylinderSections,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CylinderSections",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CylinderSections",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.001229/0.001229, allocations: 109.8 kB / 17.06 MB, free: 5.977 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.001218/0.001218, allocations: 197.3 kB / 18.01 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 47.92 kB / 350.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2666, allocations: 49.43 MB / 400.2 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections): time 0.005609/0.2722, allocations: 4.192 MB / 404.4 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00292/0.2752, allocations: 1.635 MB / 406.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002109/0.2754, allocations: 8 kB / 406.1 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002243/0.2777, allocations: 1.009 MB / 407.1 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005132/0.2782, allocations: 238.2 kB / 407.3 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00151/0.2797, allocations: 0.7926 MB / 408.1 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006666/0.2804, allocations: 0.6339 MB / 408.7 MB, free: 248 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007412/0.2811, allocations: 491.2 kB / 409.2 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003674/0.2815, allocations: 271 kB / 409.5 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004203/0.2819, allocations: 338.7 kB / 409.8 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.678e-05/0.282, allocations: 55.94 kB / 409.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005435/0.2826, allocations: 263.8 kB / 410.1 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.2827, allocations: 131.6 kB / 410.3 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002796/0.283, allocations: 310.5 kB / 410.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001058/0.284, allocations: 0.9252 MB / 411.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2841, allocations: 0 / 411.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2841, allocations: 4 kB / 411.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.2841, allocations: 0 / 411.5 MB, free: 13.48 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.003464/0.2876, allocations: 1.22 MB / 412.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.2876, allocations: 8.031 kB / 412.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001324/0.2877, allocations: 106.7 kB / 412.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001121/0.2889, allocations: 188.3 kB / 413 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.2891, allocations: 237 kB / 413.2 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.185e-05/0.2892, allocations: 54.38 kB / 413.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.2893, allocations: 68.38 kB / 413.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.2906, allocations: 0.7036 MB / 414.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.57e-05/0.2906, allocations: 4 kB / 414.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.975e-05/0.2907, allocations: 24 kB / 414.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/0.2907, allocations: 16 kB / 414.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/0.292, allocations: 0.6063 MB / 414.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003437/0.2955, allocations: 2.301 MB / 417 MB, free: 7.703 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001886/0.2974, allocations: 1.633 MB / 418.6 MB, free: 5.844 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005575/0.298, allocations: 272.9 kB / 418.9 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001548/0.2981, allocations: 97.64 kB / 419 MB, free: 5.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.084e-05/0.2982, allocations: 43.11 kB / 419 MB, free: 5.406 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.675e-06/0.2982, allocations: 3.938 kB / 419 MB, free: 5.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.001692/0.2999, allocations: 0.7057 MB / 419.8 MB, free: 4.695 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.076e-05/0.3, allocations: 111.4 kB / 419.9 MB, free: 4.562 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003313/0.3003, allocations: 257 kB / 420.1 MB, free: 4.301 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.639e-05/0.3004, allocations: 37.7 kB / 420.2 MB, free: 4.258 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001926/0.3006, allocations: 268.8 kB / 420.4 MB, free: 3.992 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.3008, allocations: 249.8 kB / 420.7 MB, free: 3.746 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002023/0.301, allocations: 122.6 kB / 420.8 MB, free: 3.621 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.3012, allocations: 354.7 kB / 421.1 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004954/0.3017, allocations: 205.9 kB / 421.3 MB, free: 3.062 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005624/0.3022, allocations: 305.4 kB / 421.6 MB, free: 2.738 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.3033, allocations: 0.5065 MB / 422.1 MB, free: 2.207 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3033, allocations: 0 / 422.1 MB, free: 2.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001294/0.3046, allocations: 0.6415 MB / 422.8 MB, free: 1.559 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.3046, allocations: 4 kB / 422.8 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3046, allocations: 4 kB / 422.8 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.3047, allocations: 4 kB / 422.8 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007173/0.3054, allocations: 155.8 kB / 422.9 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.3054, allocations: 4 kB / 422.9 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004801/0.3059, allocations: 75.69 kB / 423 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.672e-05/0.306, allocations: 23.98 kB / 423 MB, free: 1.293 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (84): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002497/0.3062, allocations: 197.5 kB / 423.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.107e-05/0.3063, allocations: 35.77 kB / 423.3 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001306/0.3076, allocations: 0.6007 MB / 423.9 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.3076, allocations: 4 kB / 423.9 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3077, allocations: 0 / 423.9 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.3077, allocations: 7.984 kB / 423.9 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002186/0.3099, allocations: 1.294 MB / 425.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.3099, allocations: 0 / 425.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005584/0.3104, allocations: 127.8 kB / 425.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.3105, allocations: 4 kB / 425.3 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.575e-05/0.3105, allocations: 19.92 kB / 425.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.3105, allocations: 4 kB / 425.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3105, allocations: 7.984 kB / 425.3 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001729/0.3123, allocations: 0.9754 MB / 426.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.3124, allocations: 128.8 kB / 426.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.29e-05/0.3125, allocations: 19.88 kB / 426.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003873/0.3129, allocations: 27.97 kB / 426.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.313, allocations: 36.52 kB / 426.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.573e-05/0.313, allocations: 19.98 kB / 426.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002048/0.3132, allocations: 192.5 kB / 426.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3132, allocations: 0 / 426.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005539/0.3138, allocations: 179.6 kB / 426.9 MB, free: 13.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (source.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 (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002231/0.316, allocations: 1.579 MB / 428.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001189/0.3172, allocations: 0.5351 MB / 429 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3173, allocations: 0 / 429 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005746/0.3178, allocations: 275.4 kB / 429.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005011/0.3183, allocations: 52.42 kB / 429.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006671/0.325, allocations: 4.226 MB / 433.6 MB, free: 6.508 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004988/0.3256, allocations: 0.846 MB / 434.4 MB, free: 5.637 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003753/0.3259, allocations: 79.41 kB / 434.5 MB, free: 5.559 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002944/0.3262, allocations: 183.4 kB / 434.7 MB, free: 5.379 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3263, allocations: 0 / 434.7 MB, free: 5.379 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0362/0.3625, allocations: 9.345 MB / 444 MB, free: 12.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.438/8.801, allocations: 7.734 kB / 444 MB, free: 12.21 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections_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_FixedShapes_CylinderSections.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/FixedShapes/CylinderSections/CylinderSections.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches