Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.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.FixedShapes.CylinderSections,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CylinderSections",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00139/0.00139, allocations: 117.6 kB / 17.78 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.001483/0.001483, allocations: 200.7 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.493/1.493, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001775, allocations: 59.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.2955, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections): time 0.007088/0.3026, allocations: 4.191 MB / 412.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00372/0.3064, allocations: 1.72 MB / 414.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005135/0.3069, allocations: 12 kB / 414.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002722/0.3097, allocations: 1.007 MB / 415.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000981/0.3107, allocations: 234.2 kB / 415.9 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001884/0.3126, allocations: 0.7629 MB / 416.7 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00107/0.3137, allocations: 0.6105 MB / 417.3 MB, free: 8.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001044/0.3147, allocations: 0.4916 MB / 417.8 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005651/0.3153, allocations: 259.1 kB / 418 MB, free: 8.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006249/0.3159, allocations: 334.6 kB / 418.4 MB, free: 7.891 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00015/0.3161, allocations: 55.94 kB / 418.4 MB, free: 7.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008098/0.3169, allocations: 287.8 kB / 418.7 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000161/0.3171, allocations: 131.5 kB / 418.8 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004808/0.3176, allocations: 314.5 kB / 419.1 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001653/0.3192, allocations: 0.9369 MB / 420.1 MB, free: 6.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.3193, allocations: 0 / 420.1 MB, free: 6.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3193, allocations: 3.938 kB / 420.1 MB, free: 6.176 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.755e-05/0.3193, allocations: 0 / 420.1 MB, free: 6.176 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.004198/0.3235, allocations: 1.236 MB / 421.3 MB, free: 4.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/0.3236, allocations: 12.03 kB / 421.3 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002105/0.3238, allocations: 110.7 kB / 421.4 MB, free: 4.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001297/0.3251, allocations: 196.4 kB / 421.6 MB, free: 4.566 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003012/0.3254, allocations: 232.3 kB / 421.8 MB, free: 4.297 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.034e-05/0.3255, allocations: 54.31 kB / 421.9 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001704/0.3257, allocations: 76.31 kB / 422 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.3273, allocations: 0.6919 MB / 422.7 MB, free: 3.461 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.394e-05/0.3274, allocations: 8 kB / 422.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.307e-05/0.3275, allocations: 28 kB / 422.7 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2e-05/0.3275, allocations: 16 kB / 422.7 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001367/0.3289, allocations: 0.6023 MB / 423.3 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00392/0.3328, allocations: 2.305 MB / 425.6 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002066/0.3349, allocations: 1.633 MB / 427.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005425/0.3355, allocations: 278.4 kB / 427.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002933/0.3358, allocations: 186.7 kB / 427.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001614/0.3359, allocations: 43.12 kB / 427.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 3.005e-06/0.3359, allocations: 0 / 427.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.001642/0.3376, allocations: 0.7017 MB / 428.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.692e-05/0.3377, allocations: 111.4 kB / 428.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003552/0.338, allocations: 264.9 kB / 428.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.625e-05/0.3381, allocations: 37.7 kB / 428.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002142/0.3383, allocations: 268.7 kB / 429.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002171/0.3386, allocations: 226 kB / 429.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002039/0.3388, allocations: 122.8 kB / 429.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001914/0.339, allocations: 350.7 kB / 429.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004718/0.3394, allocations: 209.9 kB / 430 MB, free: 11.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005648/0.34, allocations: 309.3 kB / 430.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.341, allocations: 0.5065 MB / 430.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.3411, allocations: 0 / 430.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001427/0.3425, allocations: 0.6338 MB / 431.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.3425, allocations: 8 kB / 431.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.3425, allocations: 0 / 431.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.473e-05/0.3426, allocations: 4 kB / 431.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007285/0.3433, allocations: 155.8 kB / 431.6 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.3433, allocations: 4 kB / 431.6 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004779/0.3438, allocations: 75.5 kB / 431.7 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.088e-05/0.3439, allocations: 27.98 kB / 431.7 MB, free: 9.867 MB / 350.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.0002861/0.3442, allocations: 189.7 kB / 431.9 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.3443, allocations: 35.77 kB / 431.9 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001325/0.3456, allocations: 0.6123 MB / 432.6 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-06/0.3456, allocations: 4 kB / 432.6 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3456, allocations: 0 / 432.6 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.3457, allocations: 7.984 kB / 432.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002319/0.348, allocations: 1.29 MB / 433.9 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.348, allocations: 4 kB / 433.9 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005746/0.3486, allocations: 123.8 kB / 434 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.3486, allocations: 3.984 kB / 434 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.841e-05/0.3487, allocations: 19.94 kB / 434 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.3487, allocations: 0 / 434 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.3487, allocations: 0 / 434 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001725/0.3504, allocations: 0.9677 MB / 435 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.3506, allocations: 120.8 kB / 435.1 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.754e-05/0.3506, allocations: 27.86 kB / 435.1 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003868/0.351, allocations: 32.05 kB / 435.1 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.3512, allocations: 44.44 kB / 435.2 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.769e-05/0.3512, allocations: 20 kB / 435.2 MB, free: 6.266 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002218/0.3514, allocations: 192.5 kB / 435.4 MB, free: 6.082 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3514, allocations: 0 / 435.4 MB, free: 6.082 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006499/0.3521, allocations: 183.6 kB / 435.6 MB, free: 5.902 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.002329/0.3544, allocations: 1.559 MB / 437.1 MB, free: 4.316 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.3557, allocations: 0.5312 MB / 437.7 MB, free: 3.785 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.3557, allocations: 0 / 437.7 MB, free: 3.785 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005183/0.3562, allocations: 275.1 kB / 437.9 MB, free: 3.516 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005691/0.3568, allocations: 36.88 kB / 438 MB, free: 3.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006756/0.3636, allocations: 4.219 MB / 442.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005793/0.3642, allocations: 0.8421 MB / 443 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003457/0.3645, allocations: 79.41 kB / 443.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002881/0.3648, allocations: 187.4 kB / 443.3 MB, free: 14.01 MB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3648, allocations: 0 / 443.3 MB, free: 14.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03952/0.4044, allocations: 9.362 MB / 452.7 MB, free: 4.832 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.667/9.072, allocations: 7.922 kB / 452.7 MB, free: 4.824 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CylinderSections.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/FixedShapes/CylinderSections/CylinderSections.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches