Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001939/0.001939, allocations: 200.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.498/1.498, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2344/0.2344, allocations: 46.91 MB / 357.1 MB, free: 10.33 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 63.91 kB / 0.4909 GB, free: 7.992 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1225, allocations: 66 MB / 0.5554 GB, free: 5.875 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004465/0.127, allocations: 3.029 MB / 0.5583 GB, free: 2.828 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001583/0.1286, allocations: 0.779 MB / 0.5591 GB, free: 2.043 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000166/0.1287, allocations: 7.938 kB / 0.5591 GB, free: 2.035 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001928/0.1289, allocations: 67.38 kB / 0.5592 GB, free: 1.969 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002171/0.1291, allocations: 99.11 kB / 0.5593 GB, free: 1.871 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.1295, allocations: 111.8 kB / 0.5594 GB, free: 1.762 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005212/0.13, allocations: 470.6 kB / 0.5598 GB, free: 1.297 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002378/0.1302, allocations: 120 kB / 0.5599 GB, free: 1.172 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003003/0.1305, allocations: 203.3 kB / 0.5601 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002711/0.1308, allocations: 203.1 kB / 0.5603 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.018e-05/0.1309, allocations: 43.94 kB / 0.5603 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.024e-05/0.131, allocations: 44 kB / 0.5604 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.322e-05/0.1311, allocations: 91.66 kB / 0.5605 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001969/0.1313, allocations: 199 kB / 0.5607 GB, free: 412 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006308/0.1319, allocations: 470.1 kB / 0.5611 GB, free: 15.94 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1319, allocations: 0 / 0.5611 GB, free: 15.94 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1319, allocations: 0 / 0.5611 GB, free: 15.94 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.1319, allocations: 0 / 0.5611 GB, free: 15.94 MB / 430.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.001534/0.1334, allocations: 0.717 MB / 0.5618 GB, free: 15.18 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.1335, allocations: 8.031 kB / 0.5618 GB, free: 15.17 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001062/0.1336, allocations: 82.64 kB / 0.5619 GB, free: 15.08 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002676/0.1338, allocations: 64.64 kB / 0.562 GB, free: 15.02 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004481/0.1343, allocations: 291.5 kB / 0.5622 GB, free: 14.69 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.1343, allocations: 29.38 kB / 0.5623 GB, free: 14.66 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.374e-05/0.1344, allocations: 36.38 kB / 0.5623 GB, free: 14.63 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007162/0.1351, allocations: 346.6 kB / 0.5626 GB, free: 14.28 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.1351, allocations: 0 / 0.5626 GB, free: 14.28 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.394e-05/0.1352, allocations: 19.98 kB / 0.5627 GB, free: 14.26 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.1352, allocations: 8 kB / 0.5627 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007154/0.1359, allocations: 307.8 kB / 0.563 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002428/0.1383, allocations: 1.334 MB / 0.5643 GB, free: 12.52 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005317/0.1389, allocations: 259.2 kB / 0.5645 GB, free: 12.26 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002975/0.1392, allocations: 141.4 kB / 0.5646 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.459e-05/0.1392, allocations: 4.281 kB / 0.5646 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.1392, allocations: 30.84 kB / 0.5647 GB, free: 12.08 MB / 430.1 MB Notification: Performance of pre-optimization done (n=34): time 2.445e-06/0.1392, allocations: 3.938 kB / 0.5647 GB, free: 12.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=34): time 0.000913/0.1402, allocations: 375.5 kB / 0.565 GB, free: 11.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.1402, allocations: 59.34 kB / 0.5651 GB, free: 11.63 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003243/0.1405, allocations: 270.7 kB / 0.5654 GB, free: 11.36 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.897e-05/0.1406, allocations: 33.64 kB / 0.5654 GB, free: 11.32 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001747/0.1407, allocations: 212.3 kB / 0.5656 GB, free: 11.11 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.1408, allocations: 119 kB / 0.5657 GB, free: 11 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.141, allocations: 70.08 kB / 0.5658 GB, free: 10.92 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.1412, allocations: 342.8 kB / 0.5661 GB, free: 10.58 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002562/0.1414, allocations: 100.8 kB / 0.5662 GB, free: 10.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003218/0.1417, allocations: 171.5 kB / 0.5664 GB, free: 10.29 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005933/0.1423, allocations: 296.5 kB / 0.5666 GB, free: 9.973 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.1423, allocations: 3.938 kB / 0.5666 GB, free: 9.969 MB / 430.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007488/0.1431, allocations: 366.5 kB / 0.567 GB, free: 9.605 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.1431, allocations: 4 kB / 0.567 GB, free: 9.602 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.1431, allocations: 4 kB / 0.567 GB, free: 9.598 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.661e-05/0.1431, allocations: 8 kB / 0.567 GB, free: 9.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005303/0.1437, allocations: 107.8 kB / 0.5671 GB, free: 9.484 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.1437, allocations: 0 / 0.5671 GB, free: 9.484 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003019/0.144, allocations: 51.88 kB / 0.5672 GB, free: 9.434 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.048e-05/0.144, allocations: 12 kB / 0.5672 GB, free: 9.422 MB / 430.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.0001798/0.1442, allocations: 153.7 kB / 0.5673 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.321e-05/0.1443, allocations: 27.81 kB / 0.5673 GB, free: 9.234 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007507/0.145, allocations: 332.1 kB / 0.5677 GB, free: 8.898 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.145, allocations: 4 kB / 0.5677 GB, free: 8.895 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.145, allocations: 0 / 0.5677 GB, free: 8.895 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.145, allocations: 4 kB / 0.5677 GB, free: 8.891 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005402/0.1456, allocations: 409.1 kB / 0.5681 GB, free: 8.441 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1456, allocations: 0 / 0.5681 GB, free: 8.441 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004399/0.146, allocations: 87.89 kB / 0.5681 GB, free: 8.355 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.146, allocations: 3.984 kB / 0.5681 GB, free: 8.352 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.341e-05/0.146, allocations: 4 kB / 0.5681 GB, free: 8.348 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.146, allocations: 4 kB / 0.5682 GB, free: 8.344 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.146, allocations: 0 / 0.5682 GB, free: 8.344 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009536/0.147, allocations: 0.5145 MB / 0.5687 GB, free: 7.812 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001898/0.1472, allocations: 124.9 kB / 0.5688 GB, free: 7.672 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.443e-05/0.1472, allocations: 8 kB / 0.5688 GB, free: 7.664 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002374/0.1475, allocations: 15.98 kB / 0.5688 GB, free: 7.648 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.545e-05/0.1475, allocations: 15.97 kB / 0.5688 GB, free: 7.633 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.112e-05/0.1476, allocations: 15.94 kB / 0.5688 GB, free: 7.617 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002017/0.1478, allocations: 194 kB / 0.569 GB, free: 7.426 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1478, allocations: 0 / 0.569 GB, free: 7.426 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000382/0.1481, allocations: 99.78 kB / 0.5691 GB, free: 7.328 MB / 430.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.001241/0.1494, allocations: 1.052 MB / 0.5701 GB, free: 6.25 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006274/0.15, allocations: 263.9 kB / 0.5704 GB, free: 5.992 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.15, allocations: 0 / 0.5704 GB, free: 5.992 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000267/0.1503, allocations: 123.8 kB / 0.5705 GB, free: 5.871 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003511/0.1506, allocations: 31.25 kB / 0.5705 GB, free: 5.844 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004633/0.1553, allocations: 3.155 MB / 0.5736 GB, free: 2.562 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004276/0.1557, allocations: 0.7835 MB / 0.5744 GB, free: 1.754 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001682/0.1559, allocations: 34.95 kB / 0.5744 GB, free: 1.723 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/0.1561, allocations: 111.4 kB / 0.5745 GB, free: 1.613 MB / 430.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1561, allocations: 0 / 0.5745 GB, free: 1.613 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03047/0.1865, allocations: 5.777 MB / 0.5802 GB, free: 11.94 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.972/9.158, allocations: 2.031 kB / 0.5802 GB, free: 11.94 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable hollowCylinderAxialFlux.F_m in file ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv. Warning: Get data of variable hollowCylinderAxialFlux.F_m from file ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv failed! Error: Could not read variable cuboidParallelFlux.F_m in file ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv. Warning: Get data of variable cuboidParallelFlux.F_m from file ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv failed! Error: Could not read variable cuboidOrthogonalFlux.F_m in file ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv. Warning: Get data of variable cuboidOrthogonalFlux.F_m from file ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv failed! Error: Could not read variable hollowCylinderRadialFlux.F_m in file ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv. Warning: Get data of variable hollowCylinderRadialFlux.F_m from file ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv failed! Error: Could not read variable leakageAroundPoles.F_m in file ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv. Warning: Get data of variable leakageAroundPoles.F_m from file ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.431093827006407]