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: 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_trunk_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_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001352/0.001352, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001713/0.001713, allocations: 204.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1993/0.1993, allocations: 46.11 MB / 345 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 71.88 kB / 482 MB, free: 4.039 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2822, allocations: 62.45 MB / 0.5317 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003224/0.2855, allocations: 2.357 MB / 0.534 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009519/0.2864, allocations: 0.6712 MB / 0.5346 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.306e-05/0.2865, allocations: 4.125 kB / 0.5346 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.137e-05/0.2866, allocations: 39.7 kB / 0.5347 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000191/0.2868, allocations: 66.22 kB / 0.5347 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003108/0.2871, allocations: 97.42 kB / 0.5348 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000343/0.2875, allocations: 340.8 kB / 0.5351 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003104/0.2878, allocations: 162.5 kB / 0.5353 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002863/0.2881, allocations: 154.6 kB / 0.5354 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002191/0.2883, allocations: 150 kB / 0.5356 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.543e-05/0.2884, allocations: 36.34 kB / 0.5356 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.093e-05/0.2885, allocations: 35.19 kB / 0.5357 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.769e-05/0.2885, allocations: 68.19 kB / 0.5357 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001575/0.2887, allocations: 154.3 kB / 0.5359 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003496/0.2891, allocations: 390.4 kB / 0.5362 GB, free: 10.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2891, allocations: 0 / 0.5362 GB, free: 10.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2891, allocations: 0 / 0.5362 GB, free: 10.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.2891, allocations: 0 / 0.5362 GB, free: 10.04 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.0008359/0.2899, allocations: 0.5765 MB / 0.5368 GB, free: 9.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.29, allocations: 13.09 kB / 0.5368 GB, free: 9.516 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003001/0.2903, allocations: 49.58 kB / 0.5369 GB, free: 9.492 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001499/0.2904, allocations: 198.3 kB / 0.537 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.752e-05/0.2905, allocations: 21.59 kB / 0.5371 GB, free: 9.262 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.26e-05/0.2905, allocations: 32.22 kB / 0.5371 GB, free: 9.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004259/0.291, allocations: 279 kB / 0.5374 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.291, allocations: 4 kB / 0.5374 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.291, allocations: 14.53 kB / 0.5374 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.291, allocations: 8.156 kB / 0.5374 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003748/0.2914, allocations: 219 kB / 0.5376 GB, free: 8.961 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.2929, allocations: 1.015 MB / 0.5386 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.614e-05/0.293, allocations: 34.59 kB / 0.5386 GB, free: 8.117 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.498e-05/0.2931, allocations: 21.33 kB / 0.5386 GB, free: 8.105 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.185e-05/0.2931, allocations: 1.25 kB / 0.5386 GB, free: 8.105 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.768e-05/0.2931, allocations: 30.56 kB / 0.5387 GB, free: 8.066 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.2931, allocations: 4 kB / 0.5387 GB, free: 8.062 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001867/0.2933, allocations: 81.45 kB / 0.5388 GB, free: 8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.916e-05/0.2934, allocations: 52.47 kB / 0.5388 GB, free: 7.938 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003316/0.2937, allocations: 321.7 kB / 0.5391 GB, free: 7.723 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.2937, allocations: 25.7 kB / 0.5391 GB, free: 7.691 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.2938, allocations: 226.4 kB / 0.5394 GB, free: 7.484 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.62e-05/0.2939, allocations: 18.94 kB / 0.5394 GB, free: 7.469 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.124e-05/0.294, allocations: 52.42 kB / 0.5394 GB, free: 7.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.2941, allocations: 336.1 kB / 0.5397 GB, free: 7.098 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.2942, allocations: 63.88 kB / 0.5398 GB, free: 7.066 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000136/0.2944, allocations: 85.94 kB / 0.5399 GB, free: 7.016 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001789/0.2945, allocations: 127 kB / 0.54 GB, free: 6.938 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2945, allocations: 0 / 0.54 GB, free: 6.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003415/0.2949, allocations: 235.7 kB / 0.5402 GB, free: 6.809 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.2949, allocations: 4.531 kB / 0.5402 GB, free: 6.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.2949, allocations: 5.375 kB / 0.5402 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.2949, allocations: 1.656 kB / 0.5402 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002602/0.2952, allocations: 59.86 kB / 0.5403 GB, free: 6.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.2952, allocations: 5.578 kB / 0.5403 GB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002197/0.2954, allocations: 47.39 kB / 0.5403 GB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.2955, allocations: 6 kB / 0.5404 GB, free: 6.746 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.0001183/0.2956, allocations: 138.5 kB / 0.5405 GB, free: 6.609 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.4e-05/0.2956, allocations: 17.12 kB / 0.5405 GB, free: 6.602 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.266e-05/0.2957, allocations: 23.17 kB / 0.5405 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2957, allocations: 0 / 0.5405 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.2957, allocations: 1.188 kB / 0.5405 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.2957, allocations: 0 / 0.5405 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005136/0.2962, allocations: 0.5147 MB / 0.541 GB, free: 6.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2962, allocations: 0 / 0.541 GB, free: 6.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.779e-05/0.2963, allocations: 11.3 kB / 0.541 GB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2963, allocations: 0 / 0.541 GB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.042e-06/0.2963, allocations: 1.312 kB / 0.541 GB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2963, allocations: 1.438 kB / 0.541 GB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2963, allocations: 0 / 0.541 GB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001116/0.2964, allocations: 99.62 kB / 0.5411 GB, free: 5.965 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.091e-05/0.2965, allocations: 114.5 kB / 0.5412 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.87e-05/0.2965, allocations: 5.188 kB / 0.5413 GB, free: 5.836 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.2966, allocations: 1.094 kB / 0.5413 GB, free: 5.836 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.71e-05/0.2967, allocations: 1.219 kB / 0.5413 GB, free: 5.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.2967, allocations: 1.156 kB / 0.5413 GB, free: 5.836 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002239/0.2969, allocations: 224.6 kB / 0.5415 GB, free: 5.691 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2969, allocations: 0 / 0.5415 GB, free: 5.691 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002564/0.2972, allocations: 63.69 kB / 0.5415 GB, free: 5.68 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 7.849e-05/0.2973, allocations: 99.28 kB / 0.5416 GB, free: 5.586 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002239/0.2975, allocations: 116.4 kB / 0.5417 GB, free: 5.535 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2975, allocations: 0 / 0.5417 GB, free: 5.535 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.206e-05/0.2975, allocations: 10.5 kB / 0.5417 GB, free: 5.531 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.2978, allocations: 25.16 kB / 0.5418 GB, free: 5.512 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000661/0.2985, allocations: 397.5 kB / 0.5421 GB, free: 5.207 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.2988, allocations: 0.7464 MB / 0.5429 GB, free: 4.477 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.756e-05/0.2988, allocations: 23.61 kB / 0.5429 GB, free: 4.469 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.2988, allocations: 0 / 0.5429 GB, free: 4.469 MB / 398.1 MB Notification: Performance of Templates: time 0.004167/0.303, allocations: 2.721 MB / 0.5456 GB, free: 3.031 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat","/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