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: translateModel(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quarterCylinder.G_m|quarterHollowCylinder.G_m|halfCylinder.G_m|halfHollowCylinder.G_m|quarterSphere.G_m|quarterHollowSphere.G_m|eighthOfSphere.G_m|eighthOfHollowSphere.G_m|coaxCylindersEndFaces.G_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage") translateModel(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quarterCylinder.G_m|quarterHollowCylinder.G_m|halfCylinder.G_m|halfHollowCylinder.G_m|quarterSphere.G_m|quarterHollowSphere.G_m|eighthOfSphere.G_m|eighthOfHollowSphere.G_m|coaxCylindersEndFaces.G_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 106.4 kB / 17.78 MB, free: 5.289 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.00123/0.00123, allocations: 187.9 kB / 18.7 MB, free: 4.371 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.437/1.437, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2233/0.2233, allocations: 44.18 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 59.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4772/0.4785, allocations: 60.82 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003595/0.4822, allocations: 2.353 MB / 0.5212 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009963/0.4832, allocations: 0.6221 MB / 0.5218 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.4833, allocations: 9.062 kB / 0.5218 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.4834, allocations: 42.5 kB / 0.5218 GB, free: 1.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001843/0.4836, allocations: 68.81 kB / 0.5219 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002695/0.4839, allocations: 86.22 kB / 0.522 GB, free: 1.383 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003501/0.4843, allocations: 343.2 kB / 0.5223 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000312/0.4846, allocations: 156 kB / 0.5225 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002036/0.4848, allocations: 142 kB / 0.5226 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002244/0.485, allocations: 153.2 kB / 0.5228 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.931e-05/0.4851, allocations: 33.28 kB / 0.5228 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.81e-05/0.4852, allocations: 32.97 kB / 0.5228 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.674e-05/0.4852, allocations: 71.17 kB / 0.5229 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001571/0.4854, allocations: 161.1 kB / 0.523 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004493/0.4859, allocations: 375.2 kB / 0.5234 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.4859, allocations: 1.031 kB / 0.5234 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4859, allocations: 0 / 0.5234 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.477e-06/0.4859, allocations: 0 / 0.5234 GB, free: 0.7109 MB / 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.0009118/0.4868, allocations: 0.5782 MB / 0.524 GB, free: 236 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.4869, allocations: 14.47 kB / 0.524 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.309e-05/0.4869, allocations: 30.16 kB / 0.524 GB, free: 216 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001778/0.4871, allocations: 204.3 kB / 0.5242 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.981e-05/0.4872, allocations: 22.16 kB / 0.5242 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.856e-05/0.4872, allocations: 32.53 kB / 0.5243 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005991/0.4878, allocations: 287.7 kB / 0.5245 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.4879, allocations: 1.156 kB / 0.5245 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.182e-05/0.4879, allocations: 14.66 kB / 0.5245 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.4879, allocations: 7.562 kB / 0.5245 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004436/0.4884, allocations: 211.5 kB / 0.5248 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.4904, allocations: 1.003 MB / 0.5257 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.07e-05/0.4905, allocations: 32.5 kB / 0.5258 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.177e-05/0.4905, allocations: 25.81 kB / 0.5258 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.438e-05/0.4906, allocations: 0 / 0.5258 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/0.4906, allocations: 32.72 kB / 0.5258 GB, free: 15.03 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.61e-07/0.4906, allocations: 0 / 0.5258 GB, free: 15.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002207/0.4908, allocations: 82.27 kB / 0.5259 GB, free: 14.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.4909, allocations: 52.78 kB / 0.5259 GB, free: 14.9 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004387/0.4913, allocations: 323 kB / 0.5263 GB, free: 14.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.4913, allocations: 27.83 kB / 0.5263 GB, free: 14.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001885/0.4916, allocations: 227 kB / 0.5265 GB, free: 14.49 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.4916, allocations: 12.58 kB / 0.5265 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.4917, allocations: 53.8 kB / 0.5266 GB, free: 14.45 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.4919, allocations: 339 kB / 0.5269 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.492, allocations: 68.91 kB / 0.5269 GB, free: 14.08 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/0.4922, allocations: 89.56 kB / 0.527 GB, free: 14.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002221/0.4924, allocations: 123.7 kB / 0.5272 GB, free: 13.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.4924, allocations: 0 / 0.5272 GB, free: 13.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004182/0.4928, allocations: 231.3 kB / 0.5274 GB, free: 13.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.4929, allocations: 9.531 kB / 0.5274 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.4929, allocations: 3.938 kB / 0.5274 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.729e-05/0.4929, allocations: 2.75 kB / 0.5274 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003009/0.4932, allocations: 64.55 kB / 0.5274 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.4932, allocations: 0.9688 kB / 0.5275 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002342/0.4935, allocations: 38.69 kB / 0.5275 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.4935, allocations: 5.562 kB / 0.5275 GB, free: 13.77 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.000149/0.4937, allocations: 131.3 kB / 0.5276 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.99e-05/0.4937, allocations: 21.62 kB / 0.5276 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.153e-05/0.4938, allocations: 34.33 kB / 0.5277 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.4938, allocations: 1.5 kB / 0.5277 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.4938, allocations: 4 kB / 0.5277 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.4938, allocations: 0 / 0.5277 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006608/0.4945, allocations: 0.5217 MB / 0.5282 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.4945, allocations: 1.094 kB / 0.5282 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.665e-05/0.4945, allocations: 2.531 kB / 0.5282 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.4945, allocations: 5.062 kB / 0.5282 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.288e-06/0.4946, allocations: 1.562 kB / 0.5282 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.4946, allocations: 0 / 0.5282 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.4946, allocations: 1.562 kB / 0.5282 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001468/0.4947, allocations: 99.73 kB / 0.5283 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.429e-05/0.4948, allocations: 105.8 kB / 0.5284 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.4949, allocations: 1.406 kB / 0.5284 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.589e-05/0.495, allocations: 5.125 kB / 0.5284 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.354e-05/0.495, allocations: 1.125 kB / 0.5284 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.495, allocations: 1.594 kB / 0.5284 GB, free: 12.85 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002853/0.4953, allocations: 222.6 kB / 0.5286 GB, free: 12.7 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.844e-06/0.4953, allocations: 0 / 0.5286 GB, free: 12.7 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003075/0.4956, allocations: 68.09 kB / 0.5287 GB, free: 12.69 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.0001217/0.4957, allocations: 92.5 kB / 0.5288 GB, free: 12.6 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002955/0.496, allocations: 120.5 kB / 0.5289 GB, free: 12.55 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4961, allocations: 0 / 0.5289 GB, free: 12.55 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.595e-05/0.4961, allocations: 13.91 kB / 0.5289 GB, free: 12.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.4964, allocations: 30.39 kB / 0.5289 GB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008222/0.4972, allocations: 361.7 kB / 0.5293 GB, free: 12.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003903/0.4976, allocations: 0.7468 MB / 0.53 GB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001042/0.4977, allocations: 20.06 kB / 0.53 GB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.934e-05/0.4978, allocations: 20.84 kB / 0.53 GB, free: 11.51 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4978, allocations: 0 / 0.53 GB, free: 11.51 MB / 398.1 MB Notification: Performance of Templates: time 0.005883/0.5037, allocations: 1.842 MB / 0.5318 GB, free: 10.57 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Leakage/Leakage.csv","/var/lib/jenkins/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