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.0009436/0.0009435, allocations: 95.2 kB / 17 MB, free: 6.355 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.001154/0.001154, allocations: 184.2 kB / 17.89 MB, free: 5.926 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.438/1.438, allocations: 223.3 MB / 241.9 MB, free: 144 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2115/0.2115, allocations: 44.26 MB / 337.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003702/0.0003702, allocations: 11.94 kB / 409.7 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1487, allocations: 61.93 MB / 471.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.003273/0.152, allocations: 2.533 MB / 474.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00125/0.1533, allocations: 0.6898 MB / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001521/0.1535, allocations: 7.938 kB / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001524/0.1536, allocations: 47.62 kB / 474.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001815/0.1538, allocations: 83.31 kB / 475 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002612/0.1541, allocations: 79.89 kB / 475 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004264/0.1545, allocations: 430.5 kB / 475.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.1548, allocations: 123 kB / 475.6 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002137/0.155, allocations: 151.4 kB / 475.7 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002285/0.1553, allocations: 171.3 kB / 475.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.722e-05/0.1553, allocations: 23.94 kB / 475.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.917e-05/0.1554, allocations: 20 kB / 475.9 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.224e-05/0.1554, allocations: 63.75 kB / 476 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.1555, allocations: 85.52 kB / 476.1 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003163/0.1559, allocations: 346.9 kB / 476.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.1559, allocations: 0 / 476.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.1559, allocations: 8 kB / 476.4 MB, free: 8.828 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1559, allocations: 0 / 476.4 MB, free: 8.828 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.001238/0.1572, allocations: 0.6356 MB / 477.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.1572, allocations: 12.03 kB / 477.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.704e-05/0.1573, allocations: 43.44 kB / 477.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.1576, allocations: 278.3 kB / 477.4 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.1577, allocations: 37 kB / 477.4 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.73e-05/0.1578, allocations: 36 kB / 477.5 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006547/0.1584, allocations: 342.5 kB / 477.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.1584, allocations: 0 / 477.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.396e-05/0.1585, allocations: 16 kB / 477.8 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.1585, allocations: 11.98 kB / 477.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006256/0.1591, allocations: 319.8 kB / 478.1 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002213/0.1613, allocations: 1.353 MB / 479.5 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005139/0.1619, allocations: 288.9 kB / 479.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002819/0.1622, allocations: 157.4 kB / 479.9 MB, free: 5.121 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.224e-05/0.1622, allocations: 4.281 kB / 479.9 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.191e-05/0.1623, allocations: 42.83 kB / 480 MB, free: 5.066 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 2.244e-06/0.1623, allocations: 4 kB / 480 MB, free: 5.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008357/0.1631, allocations: 387.3 kB / 480.4 MB, free: 4.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.1632, allocations: 59.34 kB / 480.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002698/0.1634, allocations: 258.7 kB / 480.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.298e-05/0.1635, allocations: 33.7 kB / 480.7 MB, free: 4.312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.1636, allocations: 207.9 kB / 480.9 MB, free: 4.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.862e-05/0.1637, allocations: 110.3 kB / 481 MB, free: 3.992 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.169e-05/0.1638, allocations: 15.94 kB / 481 MB, free: 3.977 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.1639, allocations: 342.8 kB / 481.4 MB, free: 3.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000232/0.1642, allocations: 116.8 kB / 481.5 MB, free: 3.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002742/0.1644, allocations: 171.5 kB / 481.6 MB, free: 3.328 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002658/0.1647, allocations: 125.6 kB / 481.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1647, allocations: 0 / 481.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006402/0.1654, allocations: 378.9 kB / 482.1 MB, free: 2.832 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.1654, allocations: 4 kB / 482.1 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.1654, allocations: 4 kB / 482.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.1654, allocations: 4 kB / 482.1 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004795/0.1659, allocations: 116 kB / 482.3 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/0.1659, allocations: 11.94 kB / 482.3 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002503/0.1662, allocations: 47.52 kB / 482.3 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.927e-05/0.1662, allocations: 12 kB / 482.3 MB, free: 2.637 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001681/0.1664, allocations: 154.3 kB / 482.5 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.458e-05/0.1665, allocations: 27.72 kB / 482.5 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006682/0.1672, allocations: 336.2 kB / 482.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.1672, allocations: 4 kB / 482.8 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.1672, allocations: 3.984 kB / 482.8 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.1672, allocations: 0 / 482.8 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004851/0.1677, allocations: 401.2 kB / 483.2 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.1677, allocations: 3.984 kB / 483.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004018/0.1681, allocations: 83.89 kB / 483.3 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1681, allocations: 0 / 483.3 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.175e-05/0.1681, allocations: 7.984 kB / 483.3 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.1682, allocations: 4 kB / 483.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1682, allocations: 0 / 483.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008518/0.169, allocations: 0.5299 MB / 483.9 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001328/0.1692, allocations: 132.6 kB / 484 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.179e-05/0.1692, allocations: 8 kB / 484 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.1694, allocations: 16.05 kB / 484 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.531e-05/0.1695, allocations: 23.97 kB / 484 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.1695, allocations: 8 kB / 484 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001853/0.1697, allocations: 190 kB / 484.2 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1697, allocations: 0 / 484.2 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003581/0.1701, allocations: 91.75 kB / 484.3 MB, free: 0.543 MB / 350.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 (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.000122/0.1702, allocations: 99.19 kB / 484.4 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00057/0.1708, allocations: 291.5 kB / 484.7 MB, free: 152 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.1708, allocations: 0 / 484.7 MB, free: 152 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002539/0.1711, allocations: 140.2 kB / 484.8 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003911/0.1715, allocations: 38.73 kB / 484.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.173, allocations: 0.9504 MB / 485.8 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003856/0.1734, allocations: 0.7835 MB / 486.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002122/0.1736, allocations: 38.95 kB / 486.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.938e-05/0.1737, allocations: 23.44 kB / 486.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1737, allocations: 0 / 486.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of Templates: time 0.005756/0.1795, allocations: 2.374 MB / 489 MB, free: 11.78 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","/var/lib/jenkins/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