Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.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.Force,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|position.s|hollowCylinderAxialFlux.F_m|cuboidParallelFlux.F_m|cuboidOrthogonalFlux.F_m|hollowCylinderRadialFlux.F_m|leakageAroundPoles.F_m",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force") translateModel(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|position.s|hollowCylinderAxialFlux.F_m|cuboidParallelFlux.F_m|cuboidOrthogonalFlux.F_m|hollowCylinderRadialFlux.F_m|leakageAroundPoles.F_m",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001013/0.001013, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000769/0.000769, allocations: 103.7 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1847/0.1847, allocations: 45.14 MB / 383.8 MB, free: 332 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.492e-05/1.494e-05, allocations: 4 kB / 453.2 MB, free: 75.88 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09634/0.09637, allocations: 63.25 MB / 0.5044 GB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3605/0.4569, allocations: 92.22 MB / 0.5944 GB, free: 10.46 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.4572, allocations: 77.2 kB / 0.5945 GB, free: 10.42 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01524/0.4724, allocations: 5.801 MB / 0.6002 GB, free: 5.508 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4725, allocations: 0 / 0.6002 GB, free: 5.508 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.773e-05/0.4725, allocations: 9.125 kB / 0.6002 GB, free: 5.5 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0009932/0.4735, allocations: 0.6139 MB / 0.6008 GB, free: 4.867 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.4736, allocations: 8.031 kB / 0.6008 GB, free: 4.859 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002767/0.4738, allocations: 63.72 kB / 0.6008 GB, free: 4.797 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003391/0.4742, allocations: 277.1 kB / 0.6011 GB, free: 4.512 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.4742, allocations: 12 kB / 0.6011 GB, free: 4.5 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.939e-05/0.4743, allocations: 24 kB / 0.6011 GB, free: 4.477 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004227/0.4747, allocations: 247.3 kB / 0.6014 GB, free: 4.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004377/0.4752, allocations: 258.3 kB / 0.6016 GB, free: 4.125 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.4752, allocations: 0 / 0.6016 GB, free: 4.125 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.612e-05/0.4752, allocations: 4 kB / 0.6016 GB, free: 4.121 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.4752, allocations: 8 kB / 0.6016 GB, free: 4.113 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001938/0.4772, allocations: 1.276 MB / 0.6029 GB, free: 3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003517/0.4776, allocations: 243.5 kB / 0.6031 GB, free: 2.828 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.4777, allocations: 134.8 kB / 0.6032 GB, free: 2.746 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.436e-05/0.4778, allocations: 8.266 kB / 0.6032 GB, free: 2.738 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.4778, allocations: 34.09 kB / 0.6033 GB, free: 2.699 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 1.372e-06/0.4778, allocations: 0 / 0.6033 GB, free: 2.699 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.0004569/0.4783, allocations: 238.6 kB / 0.6035 GB, free: 2.516 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.4783, allocations: 55.41 kB / 0.6036 GB, free: 2.449 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001885/0.4785, allocations: 199.1 kB / 0.6037 GB, free: 2.277 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.4786, allocations: 25.7 kB / 0.6038 GB, free: 2.246 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.4787, allocations: 209.7 kB / 0.604 GB, free: 2.066 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.213e-05/0.4788, allocations: 111.6 kB / 0.6041 GB, free: 1.969 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.448e-05/0.4788, allocations: 0 / 0.6041 GB, free: 1.969 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.4789, allocations: 342.1 kB / 0.6044 GB, free: 1.637 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.4791, allocations: 79.94 kB / 0.6045 GB, free: 1.59 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/0.4793, allocations: 147.3 kB / 0.6046 GB, free: 1.457 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001605/0.4794, allocations: 101.4 kB / 0.6047 GB, free: 1.395 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.4794, allocations: 0 / 0.6047 GB, free: 1.395 MB / 394.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004284/0.4799, allocations: 299.8 kB / 0.605 GB, free: 1.164 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.4799, allocations: 4 kB / 0.605 GB, free: 1.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.4799, allocations: 4 kB / 0.605 GB, free: 1.156 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.4799, allocations: 4 kB / 0.605 GB, free: 1.152 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004643/0.4804, allocations: 103.6 kB / 0.6051 GB, free: 1.055 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.4804, allocations: 4 kB / 0.6051 GB, free: 1.051 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002421/0.4807, allocations: 39.8 kB / 0.6052 GB, free: 1.012 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/0.4807, allocations: 18.98 kB / 0.6052 GB, free: 0.9961 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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 9.677e-05/0.4808, allocations: 123.5 kB / 0.6053 GB, free: 0.8711 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.376e-05/0.4809, allocations: 27.72 kB / 0.6053 GB, free: 0.8438 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004602/0.4813, allocations: 269.3 kB / 0.6056 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.4814, allocations: 0 / 0.6056 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4814, allocations: 4 kB / 0.6056 GB, free: 0.6445 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.4814, allocations: 4 kB / 0.6056 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000403/0.4818, allocations: 340.4 kB / 0.6059 GB, free: 344 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.4818, allocations: 3.953 kB / 0.6059 GB, free: 340 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004102/0.4822, allocations: 87.44 kB / 0.606 GB, free: 256 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.4822, allocations: 0 / 0.606 GB, free: 256 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.1e-05/0.4823, allocations: 4 kB / 0.606 GB, free: 252 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.4823, allocations: 0 / 0.606 GB, free: 252 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4823, allocations: 0 / 0.606 GB, free: 252 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005981/0.4829, allocations: 458.8 kB / 0.6064 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.483, allocations: 130.9 kB / 0.6066 GB, free: 15.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.158e-05/0.4831, allocations: 4 kB / 0.6066 GB, free: 15.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/0.4833, allocations: 15.92 kB / 0.6066 GB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.741e-05/0.4834, allocations: 23.53 kB / 0.6066 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.4834, allocations: 7.5 kB / 0.6066 GB, free: 15.71 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001367/0.4835, allocations: 153.3 kB / 0.6068 GB, free: 15.58 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4835, allocations: 4.062 kB / 0.6068 GB, free: 15.58 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000351/0.4839, allocations: 87.69 kB / 0.6068 GB, free: 15.49 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (position.s,position.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 35 * 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.0001564/0.4841, allocations: 95.19 kB / 0.6069 GB, free: 15.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003863/0.4844, allocations: 231.5 kB / 0.6072 GB, free: 15.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.4845, allocations: 0 / 0.6072 GB, free: 15.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001682/0.4846, allocations: 118.9 kB / 0.6073 GB, free: 15.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002599/0.4849, allocations: 16.75 kB / 0.6073 GB, free: 15.14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.486, allocations: 0.5181 MB / 0.6078 GB, free: 14.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.4863, allocations: 0.7955 MB / 0.6086 GB, free: 13.82 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001894/0.4865, allocations: 35.27 kB / 0.6086 GB, free: 13.79 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.852e-05/0.4866, allocations: 23.44 kB / 0.6086 GB, free: 13.76 MB / 410.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4866, allocations: 0 / 0.6086 GB, free: 13.76 MB / 410.7 MB Notification: Performance of Templates: time 0.004974/0.4916, allocations: 2.127 MB / 0.6107 GB, free: 11.66 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & ./ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches