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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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") [: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 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 184 kB / 8.523 MB, free: 1.762 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.23/1.23, allocations: 221.4 MB / 230.3 MB, free: 3.242 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000968/0.000968, allocations: 95.28 kB / 281.2 MB, free: 1.176 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3372/0.3372, allocations: 44.13 MB / 376.1 MB, free: 43.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.672e-06/6.692e-06, allocations: 4 kB / 444.1 MB, free: 11.49 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3025, allocations: 61.89 MB / 0.4941 GB, free: 42.45 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1137/0.4163, allocations: 88.81 MB / 0.5808 GB, free: 12.33 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/0.4166, allocations: 75.95 kB / 0.5809 GB, free: 12.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.01089/0.4275, allocations: 4.064 MB / 0.5849 GB, free: 8.219 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.4275, allocations: 8 kB / 0.5849 GB, free: 8.211 MB / 410.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.0006941/0.4282, allocations: 0.5244 MB / 0.5854 GB, free: 7.645 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.4283, allocations: 8.031 kB / 0.5854 GB, free: 7.637 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.095e-05/0.4283, allocations: 31.62 kB / 0.5854 GB, free: 7.605 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001624/0.4285, allocations: 199.2 kB / 0.5856 GB, free: 7.371 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.162e-05/0.4286, allocations: 24.55 kB / 0.5856 GB, free: 7.348 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.236e-05/0.4287, allocations: 20 kB / 0.5856 GB, free: 7.328 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003444/0.429, allocations: 181.3 kB / 0.5858 GB, free: 7.148 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003605/0.4294, allocations: 227.5 kB / 0.586 GB, free: 6.922 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.4294, allocations: 0 / 0.586 GB, free: 6.922 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.248e-05/0.4294, allocations: 0 / 0.586 GB, free: 6.922 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.4294, allocations: 8 kB / 0.586 GB, free: 6.914 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001516/0.431, allocations: 0.9566 MB / 0.587 GB, free: 5.914 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.668e-05/0.431, allocations: 34.48 kB / 0.587 GB, free: 5.871 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.216e-05/0.4311, allocations: 20.92 kB / 0.587 GB, free: 5.848 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.4311, allocations: 4 kB / 0.587 GB, free: 5.844 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.802e-05/0.4311, allocations: 34.5 kB / 0.5871 GB, free: 5.801 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 1.273e-06/0.4311, allocations: 4 kB / 0.5871 GB, free: 5.797 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.000157/0.4313, allocations: 57.52 kB / 0.5871 GB, free: 5.734 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.507e-05/0.4313, allocations: 51.41 kB / 0.5872 GB, free: 5.672 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002243/0.4316, allocations: 222 kB / 0.5874 GB, free: 5.449 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.4316, allocations: 30.14 kB / 0.5874 GB, free: 5.414 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.4317, allocations: 238.6 kB / 0.5876 GB, free: 5.176 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.23e-05/0.4317, allocations: 15.83 kB / 0.5877 GB, free: 5.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.179e-05/0.4317, allocations: 0 / 0.5877 GB, free: 5.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.98e-05/0.4318, allocations: 330.8 kB / 0.588 GB, free: 4.828 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.92e-05/0.4319, allocations: 56 kB / 0.588 GB, free: 4.773 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.432, allocations: 74.95 kB / 0.5881 GB, free: 4.695 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000116/0.4322, allocations: 73.47 kB / 0.5882 GB, free: 4.625 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.4322, allocations: 0 / 0.5882 GB, free: 4.625 MB / 410.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003129/0.4325, allocations: 193.4 kB / 0.5884 GB, free: 4.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.4325, allocations: 4 kB / 0.5884 GB, free: 4.426 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.4325, allocations: 4 kB / 0.5884 GB, free: 4.422 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.4325, allocations: 4.031 kB / 0.5884 GB, free: 4.418 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003048/0.4329, allocations: 59.81 kB / 0.5884 GB, free: 4.359 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.4329, allocations: 3.984 kB / 0.5884 GB, free: 4.355 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002291/0.4331, allocations: 27.69 kB / 0.5885 GB, free: 4.328 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.812e-05/0.4331, allocations: 8 kB / 0.5885 GB, free: 4.32 MB / 410.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 7.306e-05/0.4332, allocations: 109.9 kB / 0.5886 GB, free: 4.207 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.784e-05/0.4332, allocations: 15.81 kB / 0.5886 GB, free: 4.191 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.02e-05/0.4333, allocations: 20.64 kB / 0.5886 GB, free: 4.172 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.4333, allocations: 7.906 kB / 0.5886 GB, free: 4.164 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4333, allocations: 4 kB / 0.5886 GB, free: 4.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.4333, allocations: 0 / 0.5886 GB, free: 4.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004914/0.4338, allocations: 475.9 kB / 0.5891 GB, free: 3.645 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.4338, allocations: 0 / 0.5891 GB, free: 3.645 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.963e-05/0.4339, allocations: 8.062 kB / 0.5891 GB, free: 3.637 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.4339, allocations: 0 / 0.5891 GB, free: 3.637 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.4339, allocations: 4 kB / 0.5891 GB, free: 3.633 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.4339, allocations: 0 / 0.5891 GB, free: 3.633 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4339, allocations: 0 / 0.5891 GB, free: 3.633 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001118/0.434, allocations: 99.52 kB / 0.5892 GB, free: 3.508 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.723e-05/0.4341, allocations: 96.95 kB / 0.5893 GB, free: 3.395 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.622e-05/0.4341, allocations: 7.891 kB / 0.5893 GB, free: 3.387 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.4342, allocations: 4 kB / 0.5893 GB, free: 3.383 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.597e-05/0.4343, allocations: 0 / 0.5893 GB, free: 3.383 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-06/0.4343, allocations: 3.938 kB / 0.5893 GB, free: 3.379 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001539/0.4344, allocations: 172.6 kB / 0.5894 GB, free: 3.211 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002551/0.4347, allocations: 67.69 kB / 0.5895 GB, free: 3.145 MB / 410.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.0001009/0.4348, allocations: 103.2 kB / 0.5896 GB, free: 3.035 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001933/0.435, allocations: 103.9 kB / 0.5897 GB, free: 2.934 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.435, allocations: 0 / 0.5897 GB, free: 2.934 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.185e-05/0.435, allocations: 12 kB / 0.5897 GB, free: 2.922 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001686/0.4352, allocations: 12.61 kB / 0.5897 GB, free: 2.906 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005318/0.4357, allocations: 241.2 kB / 0.59 GB, free: 2.645 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003911/0.4361, allocations: 0.7765 MB / 0.5907 GB, free: 1.844 MB / 410.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4362, allocations: 0 / 0.5907 GB, free: 1.844 MB / 410.7 MB Notification: Performance of Templates: time 0.004533/0.4407, allocations: 1.825 MB / 0.5925 GB, free: 40 kB / 410.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches