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: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 106.3 kB / 17.63 MB, free: 5.344 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.001594/0.001594, allocations: 192 kB / 18.56 MB, free: 4.434 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.432/1.432, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2242/0.2242, allocations: 44.17 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 68.39 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1314, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004634/0.1361, allocations: 2.985 MB / 472.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001321/0.1374, allocations: 0.717 MB / 473.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001619/0.1376, allocations: 8 kB / 473.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001993/0.1378, allocations: 59.39 kB / 473.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002084/0.138, allocations: 107 kB / 473.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003112/0.1384, allocations: 119.8 kB / 473.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004676/0.1388, allocations: 474.4 kB / 473.8 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002845/0.1391, allocations: 159.9 kB / 474 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.1394, allocations: 183.4 kB / 474.2 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000252/0.1396, allocations: 215 kB / 474.4 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.449e-05/0.1397, allocations: 36 kB / 474.4 MB, free: 9.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.58e-05/0.1398, allocations: 40 kB / 474.4 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.504e-05/0.1399, allocations: 91.67 kB / 474.5 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001912/0.1401, allocations: 202.9 kB / 474.7 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004268/0.1405, allocations: 458.3 kB / 475.2 MB, free: 8.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1405, allocations: 4 kB / 475.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1405, allocations: 0 / 475.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.1405, allocations: 0 / 475.2 MB, free: 8.422 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.001507/0.1421, allocations: 0.7058 MB / 475.9 MB, free: 7.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.1421, allocations: 8.031 kB / 475.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.1423, allocations: 78.72 kB / 476 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.1424, allocations: 52.45 kB / 476 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003509/0.1427, allocations: 283.5 kB / 476.3 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.1428, allocations: 29.31 kB / 476.3 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.138e-05/0.1428, allocations: 40.38 kB / 476.4 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005796/0.1434, allocations: 346.5 kB / 476.7 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.1434, allocations: 0 / 476.7 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.501e-05/0.1435, allocations: 16 kB / 476.7 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.1435, allocations: 8 kB / 476.7 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006848/0.1442, allocations: 303.8 kB / 477 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003135/0.1473, allocations: 1.333 MB / 478.4 MB, free: 5.043 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008095/0.1482, allocations: 282.7 kB / 478.6 MB, free: 4.758 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004438/0.1486, allocations: 157.3 kB / 478.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.046e-05/0.1487, allocations: 12.28 kB / 478.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.051e-05/0.1487, allocations: 38.83 kB / 478.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 2.775e-06/0.1487, allocations: 0 / 478.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.001301/0.1501, allocations: 379.2 kB / 479.2 MB, free: 4.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.1501, allocations: 59.34 kB / 479.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003993/0.1505, allocations: 266.7 kB / 479.5 MB, free: 3.828 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.592e-05/0.1506, allocations: 33.7 kB / 479.6 MB, free: 3.789 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001858/0.1508, allocations: 199.9 kB / 479.8 MB, free: 3.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.1509, allocations: 118.3 kB / 479.9 MB, free: 3.473 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001735/0.1511, allocations: 78.02 kB / 479.9 MB, free: 3.391 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.1513, allocations: 338.8 kB / 480.3 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002919/0.1516, allocations: 100.8 kB / 480.4 MB, free: 2.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002929/0.1519, allocations: 175.5 kB / 480.5 MB, free: 2.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004907/0.1524, allocations: 292.5 kB / 480.8 MB, free: 2.449 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.1524, allocations: 3.938 kB / 480.8 MB, free: 2.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006252/0.153, allocations: 366 kB / 481.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.1531, allocations: 8 kB / 481.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.1531, allocations: 0 / 481.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.1531, allocations: 7.984 kB / 481.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004804/0.1536, allocations: 99.88 kB / 481.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.1536, allocations: 4 kB / 481.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/0.1539, allocations: 43.52 kB / 481.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.048e-05/0.1539, allocations: 20.14 kB / 481.4 MB, free: 1.902 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.0001619/0.1541, allocations: 157.7 kB / 481.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.894e-05/0.1541, allocations: 35.62 kB / 481.6 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007529/0.1549, allocations: 316.4 kB / 481.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.1549, allocations: 4 kB / 481.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.1549, allocations: 0 / 481.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1549, allocations: 3.984 kB / 481.9 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004435/0.1554, allocations: 413.1 kB / 482.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.1554, allocations: 0 / 482.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003996/0.1558, allocations: 79.88 kB / 482.4 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.1558, allocations: 0 / 482.4 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/0.1559, allocations: 15.94 kB / 482.4 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1559, allocations: 0 / 482.4 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.1559, allocations: 0 / 482.4 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008272/0.1567, allocations: 0.5265 MB / 482.9 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.1568, allocations: 124.7 kB / 483 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.457e-05/0.1569, allocations: 8 kB / 483 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/0.1571, allocations: 12 kB / 483 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.889e-05/0.1572, allocations: 19.97 kB / 483.1 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.931e-05/0.1572, allocations: 11.98 kB / 483.1 MB, free: 100 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001972/0.1574, allocations: 186 kB / 483.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1574, allocations: 8.062 kB / 483.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003432/0.1578, allocations: 91.75 kB / 483.4 MB, free: 15.82 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.001115/0.1589, allocations: 1.055 MB / 484.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006407/0.1595, allocations: 291.9 kB / 484.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1596, allocations: 0 / 484.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002473/0.1598, allocations: 144.3 kB / 484.8 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000349/0.1602, allocations: 32.5 kB / 484.9 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004197/0.1644, allocations: 3.145 MB / 488 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004197/0.1648, allocations: 0.7874 MB / 488.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002003/0.165, allocations: 34.94 kB / 488.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.1652, allocations: 107.4 kB / 488.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of SimCode: time 3.387e-06/0.1652, allocations: 0 / 488.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02707/0.1923, allocations: 5.586 MB / 494.5 MB, free: 4.559 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.67/7.863, allocations: 3.75 kB / 494.5 MB, free: 4.559 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv","/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