Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 108.3 kB / 18.4 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 191 kB / 19.34 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 222.9 MB / 243 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2461/0.2461, allocations: 44.19 MB / 337.4 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001458, allocations: 65.59 kB / 409.9 MB, free: 26.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.145, allocations: 60.82 MB / 470.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.00426/0.1493, allocations: 2.992 MB / 473.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.1507, allocations: 0.7322 MB / 474.4 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001479/0.1508, allocations: 4 kB / 474.4 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001916/0.151, allocations: 59.39 kB / 474.5 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001968/0.1513, allocations: 103 kB / 474.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002905/0.1516, allocations: 115.8 kB / 474.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004616/0.152, allocations: 470.5 kB / 475.2 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002847/0.1523, allocations: 159.9 kB / 475.3 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002515/0.1526, allocations: 179.3 kB / 475.5 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002612/0.1529, allocations: 211.1 kB / 475.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.847e-05/0.1529, allocations: 39.94 kB / 475.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.068e-05/0.153, allocations: 40 kB / 475.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.75e-05/0.1531, allocations: 91.67 kB / 475.9 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001832/0.1533, allocations: 199 kB / 476.1 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005272/0.1538, allocations: 470.3 kB / 476.5 MB, free: 7.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1538, allocations: 0 / 476.5 MB, free: 7.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1539, allocations: 4 kB / 476.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.1539, allocations: 0 / 476.5 MB, free: 7.77 MB / 350.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.001591/0.1555, allocations: 0.7058 MB / 477.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.1555, allocations: 8.031 kB / 477.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.1556, allocations: 48.45 kB / 477.3 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005506/0.1562, allocations: 296.1 kB / 477.6 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.568e-05/0.1563, allocations: 29.38 kB / 477.6 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.378e-05/0.1563, allocations: 36.38 kB / 477.7 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006847/0.157, allocations: 342.8 kB / 478 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/0.157, allocations: 0 / 478 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.202e-05/0.1571, allocations: 19.94 kB / 478 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/0.1571, allocations: 12 kB / 478 MB, free: 6.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006789/0.1578, allocations: 307.8 kB / 478.3 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002271/0.1601, allocations: 1.333 MB / 479.7 MB, free: 4.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004849/0.1606, allocations: 274.8 kB / 479.9 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000279/0.1609, allocations: 157.4 kB / 480.1 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.473e-05/0.1609, allocations: 8.281 kB / 480.1 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.161, allocations: 42.78 kB / 480.1 MB, free: 3.973 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 1.493e-06/0.161, allocations: 0 / 480.1 MB, free: 3.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008218/0.1618, allocations: 371.3 kB / 480.5 MB, free: 3.605 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/0.1618, allocations: 59.34 kB / 480.5 MB, free: 3.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002803/0.1621, allocations: 270.7 kB / 480.8 MB, free: 3.262 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.1622, allocations: 29.7 kB / 480.8 MB, free: 3.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.1623, allocations: 199.9 kB / 481 MB, free: 3.027 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.972e-05/0.1624, allocations: 122.3 kB / 481.2 MB, free: 2.906 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.1625, allocations: 70.03 kB / 481.2 MB, free: 2.832 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1627, allocations: 338.8 kB / 481.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002374/0.1629, allocations: 100.8 kB / 481.7 MB, free: 2.395 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002673/0.1632, allocations: 179.4 kB / 481.8 MB, free: 2.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004864/0.1637, allocations: 288.7 kB / 482.1 MB, free: 1.891 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.1637, allocations: 4 kB / 482.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006217/0.1644, allocations: 370.3 kB / 482.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.1644, allocations: 4 kB / 482.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.1644, allocations: 4 kB / 482.5 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.1644, allocations: 0 / 482.5 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004515/0.1649, allocations: 103.8 kB / 482.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.1649, allocations: 4 kB / 482.6 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002472/0.1651, allocations: 47.52 kB / 482.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.078e-05/0.1652, allocations: 16.19 kB / 482.7 MB, free: 1.344 MB / 350.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.0001824/0.1654, allocations: 149.7 kB / 482.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.554e-05/0.1654, allocations: 31.62 kB / 482.8 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006264/0.1661, allocations: 320.3 kB / 483.1 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.1661, allocations: 7.984 kB / 483.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1661, allocations: 7.938 kB / 483.2 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.1661, allocations: 0 / 483.2 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004443/0.1666, allocations: 409.1 kB / 483.6 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1666, allocations: 0 / 483.6 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00039/0.167, allocations: 83.89 kB / 483.6 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.167, allocations: 4 kB / 483.6 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.167, allocations: 7.984 kB / 483.7 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.167, allocations: 0 / 483.7 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.167, allocations: 4 kB / 483.7 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008238/0.1679, allocations: 0.5257 MB / 484.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.168, allocations: 128.7 kB / 484.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.248e-05/0.168, allocations: 4 kB / 484.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002145/0.1683, allocations: 15.98 kB / 484.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.479e-05/0.1683, allocations: 23.95 kB / 484.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-05/0.1684, allocations: 4 kB / 484.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001851/0.1686, allocations: 194 kB / 484.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1686, allocations: 8 kB / 484.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003548/0.1689, allocations: 95.75 kB / 484.6 MB, free: 15.25 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.0001088/0.169, allocations: 95.25 kB / 484.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005718/0.1696, allocations: 283.8 kB / 485 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.1696, allocations: 0 / 485 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002401/0.1699, allocations: 140.2 kB / 485.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.1702, allocations: 30.84 kB / 485.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.1716, allocations: 0.7438 MB / 485.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.1719, allocations: 0.7835 MB / 486.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001677/0.1721, allocations: 38.95 kB / 486.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.911e-05/0.1722, allocations: 23.44 kB / 486.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1722, allocations: 0 / 486.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of Templates: time 0.00618/0.1784, allocations: 2.649 MB / 489.4 MB, free: 10.43 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches