Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001409/0.001409, allocations: 198.9 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.5 MB / 244.1 MB, free: 8.098 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007129/0.0007126, allocations: 108.4 kB / 296.1 MB, free: 6.875 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3194/0.3194, allocations: 44.82 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.0002669, allocations: 8 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3425, allocations: 62.96 MB / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1307/0.4732, allocations: 92.82 MB / 0.6071 GB, free: 12.54 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/0.4735, allocations: 71.97 kB / 0.6072 GB, free: 12.47 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02449/0.498, allocations: 5.857 MB / 0.6129 GB, free: 6.59 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.4981, allocations: 4 kB / 0.6129 GB, free: 6.586 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.755e-05/0.4981, allocations: 11.98 kB / 0.6129 GB, free: 6.574 MB / 426.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.001666/0.4998, allocations: 0.6282 MB / 0.6135 GB, free: 5.891 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.4998, allocations: 8.031 kB / 0.6135 GB, free: 5.883 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003522/0.5002, allocations: 60.38 kB / 0.6136 GB, free: 5.824 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000486/0.5007, allocations: 292.3 kB / 0.6139 GB, free: 5.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.127e-05/0.5007, allocations: 29.38 kB / 0.6139 GB, free: 5.473 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.967e-05/0.5009, allocations: 40.36 kB / 0.614 GB, free: 5.434 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.5019, allocations: 347 kB / 0.6143 GB, free: 5.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/0.5019, allocations: 192 / 0.6143 GB, free: 5.09 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.697e-05/0.502, allocations: 19.94 kB / 0.6143 GB, free: 5.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.598e-05/0.502, allocations: 8 kB / 0.6143 GB, free: 5.062 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001058/0.5031, allocations: 315.8 kB / 0.6146 GB, free: 4.75 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003265/0.5064, allocations: 1.347 MB / 0.6159 GB, free: 3.305 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008335/0.5072, allocations: 289.6 kB / 0.6162 GB, free: 3.012 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004575/0.5077, allocations: 161.4 kB / 0.6164 GB, free: 2.852 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.291e-05/0.5077, allocations: 8.219 kB / 0.6164 GB, free: 2.844 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.1e-05/0.5078, allocations: 42.84 kB / 0.6164 GB, free: 2.793 MB / 426.7 MB Notification: Performance of pre-optimization done (n=34): time 2.284e-06/0.5078, allocations: 0 / 0.6164 GB, free: 2.793 MB / 426.7 MB Notification: Performance of matching and sorting (n=34): time 0.001317/0.5091, allocations: 387.3 kB / 0.6168 GB, free: 2.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/0.5092, allocations: 67.28 kB / 0.6168 GB, free: 2.332 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003993/0.5096, allocations: 266.6 kB / 0.6171 GB, free: 2.062 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.793e-05/0.5097, allocations: 29.7 kB / 0.6171 GB, free: 2.027 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.5099, allocations: 207.8 kB / 0.6173 GB, free: 1.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.51, allocations: 118.3 kB / 0.6174 GB, free: 1.703 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.941e-05/0.51, allocations: 8 kB / 0.6174 GB, free: 1.695 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.5102, allocations: 334.8 kB / 0.6178 GB, free: 1.359 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004023/0.5106, allocations: 112.8 kB / 0.6179 GB, free: 1.25 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004652/0.5111, allocations: 171.5 kB / 0.618 GB, free: 1.051 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008524/0.512, allocations: 313.5 kB / 0.6183 GB, free: 0.7227 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.512, allocations: 0 / 0.6183 GB, free: 0.7227 MB / 426.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001079/0.5131, allocations: 374.6 kB / 0.6187 GB, free: 360 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.5131, allocations: 10.66 kB / 0.6187 GB, free: 352 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.5131, allocations: 0 / 0.6187 GB, free: 352 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.5132, allocations: 7.984 kB / 0.6187 GB, free: 344 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007573/0.5139, allocations: 107.8 kB / 0.6188 GB, free: 236 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.514, allocations: 4 kB / 0.6188 GB, free: 232 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004112/0.5144, allocations: 43.7 kB / 0.6189 GB, free: 188 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.511e-05/0.5144, allocations: 19.98 kB / 0.6189 GB, free: 168 kB / 426.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 () * Number of clocked 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 0.0002201/0.5147, allocations: 141.8 kB / 0.619 GB, free: 16 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.5148, allocations: 35.61 kB / 0.619 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.5158, allocations: 347.5 kB / 0.6194 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.5158, allocations: 4 kB / 0.6194 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.5159, allocations: 0 / 0.6194 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.5159, allocations: 3.984 kB / 0.6194 GB, free: 15.63 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006961/0.5166, allocations: 393.2 kB / 0.6198 GB, free: 15.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.5166, allocations: 3.938 kB / 0.6198 GB, free: 15.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006485/0.5173, allocations: 87.88 kB / 0.6198 GB, free: 15.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.5173, allocations: 0 / 0.6198 GB, free: 15.11 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.556e-05/0.5173, allocations: 12 kB / 0.6199 GB, free: 15.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.5173, allocations: 0 / 0.6199 GB, free: 15.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.5173, allocations: 3.984 kB / 0.6199 GB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001357/0.5187, allocations: 0.5347 MB / 0.6204 GB, free: 14.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001783/0.5189, allocations: 128.5 kB / 0.6205 GB, free: 14.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.242e-05/0.519, allocations: 12 kB / 0.6205 GB, free: 14.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003525/0.5193, allocations: 15.98 kB / 0.6205 GB, free: 14.37 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.028e-05/0.5194, allocations: 15.97 kB / 0.6205 GB, free: 14.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.26e-05/0.5195, allocations: 24 kB / 0.6206 GB, free: 14.33 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002789/0.5198, allocations: 190 kB / 0.6207 GB, free: 14.14 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5198, allocations: 0 / 0.6207 GB, free: 14.14 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005866/0.5204, allocations: 99.69 kB / 0.6208 GB, free: 14.05 MB / 442.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 () * Number of clocked 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.0001679/0.5206, allocations: 111.2 kB / 0.6209 GB, free: 13.93 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0008821/0.5214, allocations: 287.8 kB / 0.6212 GB, free: 13.64 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5215, allocations: 0 / 0.6212 GB, free: 13.64 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004135/0.5219, allocations: 139.8 kB / 0.6214 GB, free: 13.51 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005378/0.5224, allocations: 37.7 kB / 0.6214 GB, free: 13.48 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001999/0.5245, allocations: 0.9603 MB / 0.6223 GB, free: 12.48 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004525/0.5249, allocations: 0.7874 MB / 0.6231 GB, free: 11.67 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/0.5251, allocations: 31.42 kB / 0.6231 GB, free: 11.64 MB / 442.7 MB Notification: Performance of SimCode: time 2.8e-07/0.5251, allocations: 0 / 0.6231 GB, free: 11.64 MB / 442.7 MB Notification: Performance of Templates: time 0.008677/0.5338, allocations: 3.828 MB / 0.6269 GB, free: 7.828 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches