Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001464/0.001464, allocations: 116.1 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.001573/0.001573, 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.386/1.386, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2204/0.2204, allocations: 46.11 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 75.88 kB / 480.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3123, allocations: 62.43 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003796/0.3161, allocations: 2.367 MB / 0.5328 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.3175, allocations: 0.6568 MB / 0.5335 GB, free: 11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001774/0.3177, allocations: 7.938 kB / 0.5335 GB, free: 11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001134/0.3178, allocations: 43.55 kB / 0.5335 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002681/0.3181, allocations: 79.08 kB / 0.5336 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003178/0.3184, allocations: 89.61 kB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004093/0.3188, allocations: 341.3 kB / 0.534 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002952/0.3191, allocations: 165.9 kB / 0.5342 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00034/0.3195, allocations: 146.8 kB / 0.5343 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002644/0.3198, allocations: 156.7 kB / 0.5344 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.685e-05/0.3198, allocations: 32.72 kB / 0.5345 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.3199, allocations: 35.09 kB / 0.5345 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.445e-05/0.32, allocations: 72.59 kB / 0.5346 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001709/0.3202, allocations: 158.2 kB / 0.5347 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004252/0.3206, allocations: 375.4 kB / 0.5351 GB, free: 9.859 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3206, allocations: 1.375 kB / 0.5351 GB, free: 9.859 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3206, allocations: 0 / 0.5351 GB, free: 9.859 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.3206, allocations: 4 kB / 0.5351 GB, free: 9.855 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009649/0.3216, allocations: 0.5827 MB / 0.5357 GB, free: 9.332 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.3217, allocations: 13.62 kB / 0.5357 GB, free: 9.328 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.486e-05/0.3218, allocations: 69.38 kB / 0.5357 GB, free: 9.262 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003185/0.3221, allocations: 49.53 kB / 0.5358 GB, free: 9.238 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001991/0.3223, allocations: 198.9 kB / 0.536 GB, free: 9.016 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.3223, allocations: 24.94 kB / 0.536 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.725e-05/0.3224, allocations: 28.59 kB / 0.536 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005207/0.3229, allocations: 282.9 kB / 0.5363 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.3229, allocations: 0 / 0.5363 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.848e-05/0.323, allocations: 18.44 kB / 0.5363 GB, free: 8.805 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.323, allocations: 7.781 kB / 0.5363 GB, free: 8.805 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004393/0.3234, allocations: 218.5 kB / 0.5365 GB, free: 8.703 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001852/0.3253, allocations: 1.024 MB / 0.5375 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.764e-05/0.3254, allocations: 35.02 kB / 0.5376 GB, free: 7.852 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.04e-05/0.3255, allocations: 25.98 kB / 0.5376 GB, free: 7.836 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.608e-06/0.3255, allocations: 0 / 0.5376 GB, free: 7.836 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.3255, allocations: 31.97 kB / 0.5376 GB, free: 7.797 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.794e-06/0.3255, allocations: 0 / 0.5376 GB, free: 7.797 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002251/0.3257, allocations: 76.72 kB / 0.5377 GB, free: 7.738 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.3258, allocations: 52.66 kB / 0.5377 GB, free: 7.676 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003704/0.3262, allocations: 320.9 kB / 0.538 GB, free: 7.461 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.3262, allocations: 27.2 kB / 0.5381 GB, free: 7.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.3264, allocations: 238.4 kB / 0.5383 GB, free: 7.211 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.502e-05/0.3264, allocations: 17.98 kB / 0.5383 GB, free: 7.195 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.937e-05/0.3265, allocations: 54.16 kB / 0.5384 GB, free: 7.156 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.3266, allocations: 339.4 kB / 0.5387 GB, free: 6.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001341/0.3267, allocations: 63.75 kB / 0.5388 GB, free: 6.789 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/0.3269, allocations: 89.52 kB / 0.5388 GB, free: 6.734 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001974/0.3271, allocations: 123 kB / 0.539 GB, free: 6.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3271, allocations: 0 / 0.539 GB, free: 6.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004164/0.3275, allocations: 235.9 kB / 0.5392 GB, free: 6.531 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.3276, allocations: 12.34 kB / 0.5392 GB, free: 6.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.3276, allocations: 1.156 kB / 0.5392 GB, free: 6.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.3276, allocations: 2.125 kB / 0.5392 GB, free: 6.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003158/0.3279, allocations: 60.78 kB / 0.5393 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.3279, allocations: 1.062 kB / 0.5393 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002752/0.3282, allocations: 34.48 kB / 0.5393 GB, free: 6.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.899e-05/0.3282, allocations: 10.12 kB / 0.5393 GB, free: 6.477 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (30): * Single equations (assignments): 30 * 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.0001118/0.3284, allocations: 134.8 kB / 0.5394 GB, free: 6.344 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.77e-05/0.3284, allocations: 29.34 kB / 0.5395 GB, free: 6.324 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.297e-05/0.3285, allocations: 23.97 kB / 0.5395 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.3285, allocations: 0 / 0.5395 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3285, allocations: 7.922 kB / 0.5395 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.3285, allocations: 1.031 kB / 0.5395 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006174/0.3291, allocations: 0.5061 MB / 0.54 GB, free: 5.793 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.3291, allocations: 0 / 0.54 GB, free: 5.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.253e-05/0.3292, allocations: 2.906 kB / 0.54 GB, free: 5.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3292, allocations: 5.344 kB / 0.54 GB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.3292, allocations: 1.312 kB / 0.54 GB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.3292, allocations: 0 / 0.54 GB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3292, allocations: 1.344 kB / 0.54 GB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001289/0.3293, allocations: 100.4 kB / 0.5401 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.528e-05/0.3294, allocations: 109 kB / 0.5402 GB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.794e-05/0.3295, allocations: 5.438 kB / 0.5402 GB, free: 5.566 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/0.3296, allocations: 5.188 kB / 0.5402 GB, free: 5.562 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.585e-05/0.3296, allocations: 1.656 kB / 0.5402 GB, free: 5.562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.516e-06/0.3296, allocations: 1.469 kB / 0.5402 GB, free: 5.562 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002393/0.3299, allocations: 223.6 kB / 0.5404 GB, free: 5.418 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3299, allocations: 0 / 0.5404 GB, free: 5.418 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002827/0.3302, allocations: 63.61 kB / 0.5405 GB, free: 5.406 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (2): * Single equations (assignments): 2 * 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.0003756/0.3306, allocations: 0.6333 MB / 0.5411 GB, free: 4.777 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002527/0.3308, allocations: 116.2 kB / 0.5412 GB, free: 4.727 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3308, allocations: 1.156 kB / 0.5412 GB, free: 4.727 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.662e-05/0.3309, allocations: 13.7 kB / 0.5412 GB, free: 4.719 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.3312, allocations: 28.75 kB / 0.5412 GB, free: 4.699 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002687/0.3339, allocations: 2.233 MB / 0.5434 GB, free: 2.977 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002946/0.3342, allocations: 0.7355 MB / 0.5441 GB, free: 2.254 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001243/0.3343, allocations: 27.77 kB / 0.5442 GB, free: 2.238 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.3344, allocations: 76.81 kB / 0.5442 GB, free: 2.172 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3344, allocations: 4 kB / 0.5443 GB, free: 2.168 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02168/0.3561, allocations: 4.16 MB / 0.5483 GB, free: 15.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.923/8.279, allocations: 8.062 kB / 0.5483 GB, free: 15.07 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Leakage/Leakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches