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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001239/0.001239, allocations: 192.1 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001/0.001, allocations: 90.73 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2027/0.2027, allocations: 45.16 MB / 383.4 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.406e-06/8.426e-06, allocations: 0 / 452.6 MB, free: 76.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.124, allocations: 63.23 MB / 0.5038 GB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.378/0.5021, allocations: 89.87 MB / 0.5915 GB, free: 13.04 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/0.5024, allocations: 72.2 kB / 0.5916 GB, free: 13 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01115/0.5136, allocations: 4.135 MB / 0.5956 GB, free: 9.539 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.5136, allocations: 8 kB / 0.5956 GB, free: 9.531 MB / 394.7 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.0007271/0.5144, allocations: 0.5312 MB / 0.5962 GB, free: 8.969 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.5144, allocations: 8.031 kB / 0.5962 GB, free: 8.961 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003096/0.5147, allocations: 47.59 kB / 0.5962 GB, free: 8.914 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/0.5149, allocations: 201.3 kB / 0.5964 GB, free: 8.68 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.732e-05/0.515, allocations: 23.39 kB / 0.5964 GB, free: 8.66 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.781e-05/0.5151, allocations: 20 kB / 0.5965 GB, free: 8.641 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003337/0.5154, allocations: 184.3 kB / 0.5966 GB, free: 8.531 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003705/0.5158, allocations: 223.7 kB / 0.5968 GB, free: 8.367 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.5158, allocations: 0 / 0.5968 GB, free: 8.367 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.325e-05/0.5159, allocations: 0 / 0.5968 GB, free: 8.367 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.5159, allocations: 8 kB / 0.5968 GB, free: 8.359 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001641/0.5175, allocations: 0.9567 MB / 0.5978 GB, free: 7.559 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.885e-05/0.5176, allocations: 29.64 kB / 0.5978 GB, free: 7.523 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.338e-05/0.5177, allocations: 23.73 kB / 0.5978 GB, free: 7.504 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.072e-05/0.5177, allocations: 0 / 0.5978 GB, free: 7.504 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.5177, allocations: 34.56 kB / 0.5979 GB, free: 7.461 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 1.362e-06/0.5177, allocations: 4 kB / 0.5979 GB, free: 7.457 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001786/0.5179, allocations: 61.06 kB / 0.5979 GB, free: 7.398 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.989e-05/0.5179, allocations: 51.41 kB / 0.598 GB, free: 7.336 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002255/0.5182, allocations: 221 kB / 0.5982 GB, free: 7.156 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.5182, allocations: 25.7 kB / 0.5982 GB, free: 7.125 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.5183, allocations: 242.2 kB / 0.5984 GB, free: 6.902 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.056e-05/0.5183, allocations: 7.906 kB / 0.5985 GB, free: 6.895 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.043e-05/0.5184, allocations: 1.031 kB / 0.5985 GB, free: 6.895 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.5185, allocations: 332.9 kB / 0.5988 GB, free: 6.57 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.65e-05/0.5186, allocations: 53.56 kB / 0.5988 GB, free: 6.539 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.5187, allocations: 76.64 kB / 0.5989 GB, free: 6.484 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001146/0.5188, allocations: 67.66 kB / 0.599 GB, free: 6.441 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.5188, allocations: 0 / 0.599 GB, free: 6.441 MB / 394.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003001/0.5191, allocations: 196.3 kB / 0.5991 GB, free: 6.289 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.5192, allocations: 4 kB / 0.5991 GB, free: 6.285 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.5192, allocations: 4.031 kB / 0.5992 GB, free: 6.281 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.5192, allocations: 7.906 kB / 0.5992 GB, free: 6.273 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003004/0.5195, allocations: 55.89 kB / 0.5992 GB, free: 6.219 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.5195, allocations: 7.938 kB / 0.5992 GB, free: 6.211 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002503/0.5198, allocations: 27.69 kB / 0.5992 GB, free: 6.184 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.019e-05/0.5198, allocations: 11.61 kB / 0.5993 GB, free: 6.176 MB / 394.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.167e-05/0.5199, allocations: 108.9 kB / 0.5994 GB, free: 6.062 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.005e-05/0.5199, allocations: 15.81 kB / 0.5994 GB, free: 6.047 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.257e-05/0.52, allocations: 20 kB / 0.5994 GB, free: 6.035 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.52, allocations: 7.969 kB / 0.5994 GB, free: 6.027 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.52, allocations: 4 kB / 0.5994 GB, free: 6.023 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.52, allocations: 4 kB / 0.5994 GB, free: 6.02 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005036/0.5205, allocations: 467.6 kB / 0.5999 GB, free: 5.559 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.5205, allocations: 4.062 kB / 0.5999 GB, free: 5.555 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.939e-05/0.5206, allocations: 4 kB / 0.5999 GB, free: 5.551 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.5206, allocations: 0 / 0.5999 GB, free: 5.551 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.5206, allocations: 0 / 0.5999 GB, free: 5.551 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.5206, allocations: 0 / 0.5999 GB, free: 5.551 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5206, allocations: 4 kB / 0.5999 GB, free: 5.547 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001227/0.5207, allocations: 109.6 kB / 0.6 GB, free: 5.422 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.296e-05/0.5208, allocations: 95.78 kB / 0.6001 GB, free: 5.312 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.5208, allocations: 4 kB / 0.6001 GB, free: 5.309 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.811e-05/0.521, allocations: 0 / 0.6001 GB, free: 5.309 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.363e-05/0.521, allocations: 4 kB / 0.6001 GB, free: 5.305 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.521, allocations: 3.938 kB / 0.6001 GB, free: 5.301 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001446/0.5211, allocations: 172.5 kB / 0.6002 GB, free: 5.164 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002722/0.5214, allocations: 67.69 kB / 0.6003 GB, free: 5.098 MB / 394.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001133/0.5215, allocations: 95.28 kB / 0.6004 GB, free: 4.996 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001962/0.5217, allocations: 107.3 kB / 0.6005 GB, free: 4.926 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.5217, allocations: 0 / 0.6005 GB, free: 4.926 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.286e-05/0.5218, allocations: 11.56 kB / 0.6005 GB, free: 4.918 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001823/0.522, allocations: 15.59 kB / 0.6005 GB, free: 4.902 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005271/0.5225, allocations: 237.2 kB / 0.6008 GB, free: 4.66 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003644/0.5229, allocations: 0.7774 MB / 0.6015 GB, free: 3.855 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5229, allocations: 0 / 0.6015 GB, free: 3.855 MB / 394.7 MB Notification: Performance of Templates: time 0.004334/0.5272, allocations: 1.835 MB / 0.6033 GB, free: 2.047 MB / 394.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Leakage/Leakage.csv","../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches