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/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.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/ModelicaServices trunk/package.mo): time 0.001297/0.001297, allocations: 121 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001308/0.001308, allocations: 212.5 kB / 19.36 MB, free: 3.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2113/0.2113, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 80.42 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1403, allocations: 62.45 MB / 481.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004105/0.1444, allocations: 3.014 MB / 484.5 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.1458, allocations: 0.7673 MB / 485.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.146, allocations: 7.938 kB / 485.3 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001748/0.1462, allocations: 63.38 kB / 485.3 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.1464, allocations: 95.11 kB / 485.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002997/0.1467, allocations: 123.8 kB / 485.5 MB, free: 452 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000438/0.1471, allocations: 462.7 kB / 486 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002665/0.1474, allocations: 152 kB / 486.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002706/0.1477, allocations: 195.3 kB / 486.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002435/0.1479, allocations: 207.1 kB / 486.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.38e-05/0.148, allocations: 36 kB / 486.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.752e-05/0.1481, allocations: 51.94 kB / 486.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.311e-05/0.1482, allocations: 91.66 kB / 486.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000185/0.1484, allocations: 203 kB / 486.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004375/0.1488, allocations: 466.3 kB / 487.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1488, allocations: 0 / 487.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1488, allocations: 0 / 487.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.034e-06/0.1489, allocations: 0 / 487.4 MB, free: 14.61 MB / 366.1 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.001312/0.1502, allocations: 0.7097 MB / 488.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.1502, allocations: 9.109 kB / 488.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002474/0.1505, allocations: 56.45 kB / 488.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004282/0.1509, allocations: 291.5 kB / 488.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.881e-05/0.1509, allocations: 29.38 kB / 488.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.663e-05/0.151, allocations: 44.36 kB / 488.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000624/0.1517, allocations: 346.8 kB / 488.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.1517, allocations: 4 kB / 488.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.333e-05/0.1517, allocations: 12 kB / 488.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.1517, allocations: 15.94 kB / 488.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006054/0.1524, allocations: 303.8 kB / 489.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002195/0.1546, allocations: 1.333 MB / 490.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004786/0.1551, allocations: 268.9 kB / 490.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002777/0.1553, allocations: 162.2 kB / 490.9 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.619e-05/0.1554, allocations: 8.266 kB / 490.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.1554, allocations: 38.78 kB / 491 MB, free: 10.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.864e-06/0.1554, allocations: 4 kB / 491 MB, free: 10.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0007729/0.1562, allocations: 371.3 kB / 491.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/0.1563, allocations: 59.34 kB / 491.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002718/0.1566, allocations: 266.7 kB / 491.6 MB, free: 10.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.1566, allocations: 29.7 kB / 491.7 MB, free: 10.06 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.1568, allocations: 203.9 kB / 491.9 MB, free: 9.855 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000185/0.157, allocations: 122.3 kB / 492 MB, free: 9.734 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.1571, allocations: 70.03 kB / 492.1 MB, free: 9.656 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.1572, allocations: 338.8 kB / 492.4 MB, free: 9.316 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00023/0.1574, allocations: 104.8 kB / 492.5 MB, free: 9.215 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002691/0.1577, allocations: 175.4 kB / 492.7 MB, free: 9.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005019/0.1582, allocations: 292.7 kB / 493 MB, free: 8.711 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1582, allocations: 0 / 493 MB, free: 8.711 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006987/0.159, allocations: 362.2 kB / 493.3 MB, free: 8.352 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.159, allocations: 4 kB / 493.3 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.159, allocations: 8.219 kB / 493.3 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.159, allocations: 7.984 kB / 493.3 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004612/0.1595, allocations: 107.8 kB / 493.4 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.1595, allocations: 3.984 kB / 493.4 MB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.1598, allocations: 51.52 kB / 493.5 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.057e-05/0.1598, allocations: 12 kB / 493.5 MB, free: 8.16 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001716/0.16, allocations: 149.7 kB / 493.6 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.418e-05/0.16, allocations: 27.62 kB / 493.7 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006662/0.1607, allocations: 340.6 kB / 494 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.1607, allocations: 7.938 kB / 494 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.1607, allocations: 0 / 494 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.1607, allocations: 0 / 494 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004793/0.1612, allocations: 409.1 kB / 494.4 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1612, allocations: 0 / 494.4 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003917/0.1616, allocations: 83.89 kB / 494.5 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.1616, allocations: 4 kB / 494.5 MB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.614e-05/0.1617, allocations: 7.984 kB / 494.5 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.1617, allocations: 8 kB / 494.5 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1617, allocations: 0 / 494.5 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008693/0.1626, allocations: 0.5065 MB / 495 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.1627, allocations: 132.6 kB / 495.1 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.529e-05/0.1628, allocations: 12.06 kB / 495.2 MB, free: 6.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002105/0.163, allocations: 11.98 kB / 495.2 MB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.646e-05/0.1631, allocations: 19.97 kB / 495.2 MB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.1631, allocations: 8 kB / 495.2 MB, free: 6.355 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001949/0.1633, allocations: 190 kB / 495.4 MB, free: 6.172 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1633, allocations: 0 / 495.4 MB, free: 6.172 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003566/0.1637, allocations: 95.75 kB / 495.5 MB, free: 6.078 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001672/0.1639, allocations: 103.2 kB / 495.6 MB, free: 5.969 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006178/0.1645, allocations: 280.4 kB / 495.9 MB, free: 5.695 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1645, allocations: 0 / 495.9 MB, free: 5.695 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002698/0.1648, allocations: 139.7 kB / 496 MB, free: 5.559 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003446/0.1651, allocations: 32.88 kB / 496 MB, free: 5.527 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/0.1665, allocations: 0.7633 MB / 496.8 MB, free: 4.734 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.1669, allocations: 0.7835 MB / 497.6 MB, free: 3.922 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001561/0.1671, allocations: 34.95 kB / 497.6 MB, free: 3.891 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.62e-05/0.1672, allocations: 27.44 kB / 497.6 MB, free: 3.863 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1672, allocations: 0 / 497.6 MB, free: 3.863 MB / 366.1 MB Notification: Performance of Templates: time 0.006177/0.1733, allocations: 2.637 MB / 0.4885 GB, free: 1.246 MB / 366.1 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches