Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",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.001463/0.001463, allocations: 113.8 kB / 17.78 MB, free: 5.277 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.001641/0.001641, allocations: 179.1 kB / 18.71 MB, free: 4.363 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.342/1.342, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2073/0.2073, allocations: 44.18 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 59.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3208, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.00295/0.3238, allocations: 2.356 MB / 0.5207 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008772/0.3247, allocations: 0.6181 MB / 0.5213 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.3248, allocations: 8.094 kB / 0.5213 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.542e-05/0.3249, allocations: 38.5 kB / 0.5214 GB, free: 1.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001946/0.3251, allocations: 73.34 kB / 0.5214 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002828/0.3254, allocations: 86.3 kB / 0.5215 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003221/0.3257, allocations: 347.5 kB / 0.5218 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002589/0.326, allocations: 152 kB / 0.522 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002083/0.3262, allocations: 141.6 kB / 0.5221 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001976/0.3264, allocations: 153.7 kB / 0.5223 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.051e-05/0.3265, allocations: 33.75 kB / 0.5223 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.252e-05/0.3265, allocations: 37.62 kB / 0.5223 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.658e-05/0.3266, allocations: 73.22 kB / 0.5224 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.3267, allocations: 156.5 kB / 0.5226 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003987/0.3271, allocations: 374.4 kB / 0.5229 GB, free: 388 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3271, allocations: 0 / 0.5229 GB, free: 388 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3271, allocations: 0.6562 kB / 0.5229 GB, free: 388 kB / 382.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.3272, allocations: 1.062 kB / 0.5229 GB, free: 388 kB / 382.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.0008632/0.328, allocations: 0.5839 MB / 0.5235 GB, free: 15.89 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.3281, allocations: 9.469 kB / 0.5235 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.01e-05/0.3282, allocations: 68.78 kB / 0.5236 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.726e-05/0.3282, allocations: 33.28 kB / 0.5236 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001737/0.3284, allocations: 204.5 kB / 0.5238 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.286e-05/0.3285, allocations: 29.66 kB / 0.5238 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.689e-05/0.3285, allocations: 28.31 kB / 0.5238 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005171/0.329, allocations: 280 kB / 0.5241 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.3291, allocations: 1.219 kB / 0.5241 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.287e-05/0.3291, allocations: 14.66 kB / 0.5241 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.3291, allocations: 7.844 kB / 0.5241 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004069/0.3295, allocations: 215.3 kB / 0.5243 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.3313, allocations: 1.019 MB / 0.5253 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.253e-05/0.3314, allocations: 27.66 kB / 0.5254 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.788e-05/0.3314, allocations: 25.55 kB / 0.5254 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.029e-05/0.3314, allocations: 5.594 kB / 0.5254 GB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.3315, allocations: 35.3 kB / 0.5254 GB, free: 14.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.783e-06/0.3315, allocations: 1.688 kB / 0.5254 GB, free: 14.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.000226/0.3317, allocations: 78.31 kB / 0.5255 GB, free: 14.55 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.712e-05/0.3318, allocations: 51.97 kB / 0.5256 GB, free: 14.49 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003918/0.3322, allocations: 316.4 kB / 0.5259 GB, free: 14.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.3322, allocations: 25.7 kB / 0.5259 GB, free: 14.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.3324, allocations: 247.9 kB / 0.5261 GB, free: 14.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.235e-05/0.3324, allocations: 8.797 kB / 0.5261 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-05/0.3325, allocations: 62.27 kB / 0.5262 GB, free: 14.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.3326, allocations: 330.9 kB / 0.5265 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.3328, allocations: 62.7 kB / 0.5266 GB, free: 13.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.3329, allocations: 95.42 kB / 0.5267 GB, free: 13.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.3332, allocations: 126 kB / 0.5268 GB, free: 13.55 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3332, allocations: 0 / 0.5268 GB, free: 13.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004332/0.3336, allocations: 232.1 kB / 0.527 GB, free: 13.44 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.3336, allocations: 8.844 kB / 0.527 GB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.3337, allocations: 5.953 kB / 0.527 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.3337, allocations: 1.219 kB / 0.527 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003265/0.334, allocations: 54.55 kB / 0.5271 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.334, allocations: 2.172 kB / 0.5271 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002705/0.3343, allocations: 43.17 kB / 0.5271 GB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.3343, allocations: 10.17 kB / 0.5271 GB, free: 13.39 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.0001281/0.3345, allocations: 132.5 kB / 0.5272 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.113e-05/0.3345, allocations: 25.83 kB / 0.5273 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.708e-05/0.3346, allocations: 26.28 kB / 0.5273 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3346, allocations: 1.281 kB / 0.5273 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.3346, allocations: 0 / 0.5273 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3346, allocations: 0.7031 kB / 0.5273 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006841/0.3353, allocations: 0.5029 MB / 0.5278 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3353, allocations: 9.312 kB / 0.5278 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.214e-05/0.3353, allocations: 3.984 kB / 0.5278 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.3354, allocations: 0 / 0.5278 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.3354, allocations: 2.672 kB / 0.5278 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3354, allocations: 0 / 0.5278 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3354, allocations: 0.8438 kB / 0.5278 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001478/0.3355, allocations: 107.6 kB / 0.5279 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.622e-05/0.3356, allocations: 101.6 kB / 0.528 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.585e-05/0.3357, allocations: 1.188 kB / 0.528 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.3358, allocations: 1.984 kB / 0.528 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.882e-05/0.3358, allocations: 1.656 kB / 0.528 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.3358, allocations: 5.406 kB / 0.528 GB, free: 12.56 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002648/0.3361, allocations: 233.6 kB / 0.5282 GB, free: 12.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3361, allocations: 4.031 kB / 0.5282 GB, free: 12.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002858/0.3364, allocations: 64.14 kB / 0.5283 GB, free: 12.4 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.0004415/0.3368, allocations: 0.6292 MB / 0.5289 GB, free: 11.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002764/0.3371, allocations: 114.1 kB / 0.529 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3371, allocations: 0 / 0.529 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.505e-05/0.3372, allocations: 13.38 kB / 0.529 GB, free: 11.72 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003377/0.3375, allocations: 26.42 kB / 0.5291 GB, free: 11.7 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002678/0.3402, allocations: 2.231 MB / 0.5312 GB, free: 9.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.3406, allocations: 0.7459 MB / 0.532 GB, free: 9.246 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.3407, allocations: 24.28 kB / 0.532 GB, free: 9.234 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.3408, allocations: 68.98 kB / 0.5321 GB, free: 9.176 MB / 398.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3408, allocations: 0 / 0.5321 GB, free: 9.176 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02451/0.3653, allocations: 4.162 MB / 0.5361 GB, free: 7.051 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.777/8.143, allocations: 10.38 kB / 0.5361 GB, free: 7.043 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches