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.001422/0.001422, allocations: 113.2 kB / 17.78 MB, free: 5.129 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.001217/0.001217, allocations: 181 kB / 18.71 MB, free: 4.207 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.44/1.44, 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.2247/0.2247, allocations: 44.18 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 59.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3258, allocations: 60.83 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003377/0.3292, allocations: 2.347 MB / 0.5207 GB, free: 1.637 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.3304, allocations: 0.6188 MB / 0.5213 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.3306, allocations: 3.969 kB / 0.5213 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001231/0.3308, allocations: 38.53 kB / 0.5214 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002301/0.331, allocations: 77.89 kB / 0.5214 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002884/0.3313, allocations: 85.69 kB / 0.5215 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003807/0.3317, allocations: 344.1 kB / 0.5218 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003275/0.3321, allocations: 156.6 kB / 0.522 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002636/0.3323, allocations: 144.5 kB / 0.5221 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.3326, allocations: 153.6 kB / 0.5223 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.034e-05/0.3326, allocations: 34.28 kB / 0.5223 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.916e-05/0.3327, allocations: 33.06 kB / 0.5223 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.656e-05/0.3328, allocations: 72.88 kB / 0.5224 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.3329, allocations: 153 kB / 0.5226 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004913/0.3334, allocations: 375.2 kB / 0.5229 GB, free: 396 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.3335, allocations: 4 kB / 0.5229 GB, free: 392 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.3335, allocations: 0 / 0.5229 GB, free: 392 kB / 382.1 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.3335, allocations: 4 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.001008/0.3345, allocations: 0.5781 MB / 0.5235 GB, free: 15.9 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.3346, allocations: 13.12 kB / 0.5235 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.036e-05/0.3347, allocations: 68.11 kB / 0.5236 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.241e-05/0.3347, allocations: 32.75 kB / 0.5236 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002326/0.335, allocations: 212.4 kB / 0.5238 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.697e-05/0.335, allocations: 22.09 kB / 0.5238 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.078e-05/0.3351, allocations: 31.94 kB / 0.5239 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005494/0.3356, allocations: 280.8 kB / 0.5241 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.3357, allocations: 0 / 0.5241 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.219e-05/0.3357, allocations: 15.31 kB / 0.5241 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.3357, allocations: 7.344 kB / 0.5241 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000438/0.3362, allocations: 216.9 kB / 0.5243 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002015/0.3382, allocations: 1.01 MB / 0.5253 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.035e-05/0.3383, allocations: 35.75 kB / 0.5254 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.05e-05/0.3384, allocations: 27.31 kB / 0.5254 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.225e-05/0.3384, allocations: 0.5625 kB / 0.5254 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.3384, allocations: 30.56 kB / 0.5254 GB, free: 14.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.543e-06/0.3384, allocations: 0 / 0.5254 GB, free: 14.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002556/0.3387, allocations: 80.36 kB / 0.5255 GB, free: 14.56 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.269e-05/0.3388, allocations: 55.53 kB / 0.5256 GB, free: 14.49 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004214/0.3392, allocations: 320.4 kB / 0.5259 GB, free: 14.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.3392, allocations: 25.7 kB / 0.5259 GB, free: 14.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001976/0.3394, allocations: 243.8 kB / 0.5261 GB, free: 14.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.226e-05/0.3394, allocations: 8.656 kB / 0.5261 GB, free: 14.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.3396, allocations: 62.08 kB / 0.5262 GB, free: 14.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.3397, allocations: 331 kB / 0.5265 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001395/0.3399, allocations: 67.03 kB / 0.5266 GB, free: 13.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001819/0.3401, allocations: 91.86 kB / 0.5267 GB, free: 13.63 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002376/0.3403, allocations: 120.2 kB / 0.5268 GB, free: 13.56 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3403, allocations: 0 / 0.5268 GB, free: 13.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004602/0.3408, allocations: 237.6 kB / 0.527 GB, free: 13.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.3408, allocations: 9.031 kB / 0.527 GB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.3409, allocations: 5.922 kB / 0.527 GB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.3409, allocations: 5.375 kB / 0.527 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003196/0.3412, allocations: 57.7 kB / 0.5271 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.3412, allocations: 2.906 kB / 0.5271 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002773/0.3415, allocations: 39.05 kB / 0.5271 GB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.3416, allocations: 10.28 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.0001516/0.3417, allocations: 132.4 kB / 0.5272 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.38e-05/0.3418, allocations: 25.2 kB / 0.5273 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.752e-05/0.3418, allocations: 26.08 kB / 0.5273 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.3418, allocations: 6.172 kB / 0.5273 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.3419, allocations: 0 / 0.5273 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3419, allocations: 0.5156 kB / 0.5273 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007499/0.3426, allocations: 0.5038 MB / 0.5278 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.3426, allocations: 0 / 0.5278 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.811e-05/0.3427, allocations: 8.094 kB / 0.5278 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.3427, allocations: 1.312 kB / 0.5278 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.834e-06/0.3427, allocations: 0 / 0.5278 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.3427, allocations: 5.906 kB / 0.5278 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3427, allocations: 0 / 0.5278 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001534/0.3429, allocations: 103.1 kB / 0.5279 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.633e-05/0.343, allocations: 102.1 kB / 0.528 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.425e-05/0.343, allocations: 1.938 kB / 0.528 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.3431, allocations: 1.625 kB / 0.528 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.337e-05/0.3432, allocations: 5.797 kB / 0.528 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.3432, allocations: 5.406 kB / 0.528 GB, free: 12.56 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002778/0.3435, allocations: 228.4 kB / 0.5282 GB, free: 12.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3435, allocations: 1.219 kB / 0.5282 GB, free: 12.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002967/0.3438, allocations: 63.33 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.0004795/0.3443, allocations: 0.6338 MB / 0.5289 GB, free: 11.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003097/0.3446, allocations: 113.7 kB / 0.529 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3446, allocations: 0 / 0.529 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.546e-05/0.3446, allocations: 9.5 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.000342/0.345, allocations: 25.88 kB / 0.5291 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003234/0.3482, allocations: 2.233 MB / 0.5312 GB, free: 9.988 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000475/0.3487, allocations: 0.7474 MB / 0.532 GB, free: 9.254 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001483/0.3489, allocations: 28.55 kB / 0.532 GB, free: 9.238 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.349, allocations: 71.94 kB / 0.5321 GB, free: 9.176 MB / 398.1 MB Notification: Performance of SimCode: time 9.41e-07/0.3491, allocations: 0 / 0.5321 GB, free: 9.176 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02948/0.3785, allocations: 4.159 MB / 0.5361 GB, free: 7.047 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.302/8.68, allocations: 9.297 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