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.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.001604/0.001604, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.002096/0.002096, allocations: 218.9 kB / 21.46 MB, free: 1.605 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.493/1.493, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2345/0.2345, allocations: 44.9 MB / 355.8 MB, free: 12.31 MB / 286.1 MB " [Timeout remaining time 180] 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.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_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002149/0.002149, allocations: 66.09 kB / 0.4886 GB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1163, allocations: 65.41 MB / 0.5524 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004833/0.1211, allocations: 3.027 MB / 0.5554 GB, free: 7.094 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.1228, allocations: 0.7944 MB / 0.5562 GB, free: 6.293 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002403/0.123, allocations: 7.938 kB / 0.5562 GB, free: 6.285 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002093/0.1232, allocations: 55.38 kB / 0.5562 GB, free: 6.23 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002702/0.1235, allocations: 111 kB / 0.5563 GB, free: 6.121 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004478/0.1239, allocations: 115.8 kB / 0.5564 GB, free: 6.008 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005984/0.1245, allocations: 474.6 kB / 0.5569 GB, free: 5.539 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002591/0.1248, allocations: 112 kB / 0.557 GB, free: 5.422 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003733/0.1252, allocations: 191.4 kB / 0.5572 GB, free: 5.234 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002968/0.1255, allocations: 219 kB / 0.5574 GB, free: 5.02 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.193e-05/0.1255, allocations: 40 kB / 0.5574 GB, free: 4.98 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.952e-05/0.1256, allocations: 44 kB / 0.5575 GB, free: 4.938 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.658e-05/0.1257, allocations: 87.73 kB / 0.5575 GB, free: 4.852 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002047/0.1259, allocations: 199 kB / 0.5577 GB, free: 4.656 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006635/0.1266, allocations: 481.9 kB / 0.5582 GB, free: 4.184 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1266, allocations: 0 / 0.5582 GB, free: 4.184 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1266, allocations: 0 / 0.5582 GB, free: 4.184 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.796e-05/0.1266, allocations: 0 / 0.5582 GB, free: 4.184 MB / 414.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.001577/0.1282, allocations: 0.7094 MB / 0.5589 GB, free: 3.426 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.1282, allocations: 12.03 kB / 0.5589 GB, free: 3.414 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.333e-05/0.1283, allocations: 9.188 kB / 0.5589 GB, free: 3.406 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.761e-05/0.1283, allocations: 74.72 kB / 0.559 GB, free: 3.324 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002701/0.1286, allocations: 56.64 kB / 0.559 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005134/0.1291, allocations: 303.4 kB / 0.5593 GB, free: 2.934 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.127e-05/0.1292, allocations: 29.38 kB / 0.5594 GB, free: 2.906 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.285e-05/0.1292, allocations: 36.38 kB / 0.5594 GB, free: 2.871 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007245/0.13, allocations: 346.3 kB / 0.5597 GB, free: 2.523 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.13, allocations: 4 kB / 0.5597 GB, free: 2.52 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.587e-05/0.13, allocations: 12 kB / 0.5597 GB, free: 2.508 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.13, allocations: 12 kB / 0.5597 GB, free: 2.496 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006947/0.1307, allocations: 307.8 kB / 0.56 GB, free: 2.195 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002511/0.1332, allocations: 1.333 MB / 0.5613 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005988/0.1338, allocations: 255.3 kB / 0.5616 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003219/0.1342, allocations: 145.4 kB / 0.5617 GB, free: 372 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.012e-05/0.1342, allocations: 288 / 0.5617 GB, free: 372 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.153e-05/0.1342, allocations: 42.84 kB / 0.5618 GB, free: 320 kB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 1.673e-06/0.1342, allocations: 0 / 0.5618 GB, free: 320 kB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009785/0.1352, allocations: 375.5 kB / 0.5621 GB, free: 15.94 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.1353, allocations: 59.34 kB / 0.5622 GB, free: 15.87 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003287/0.1356, allocations: 266.7 kB / 0.5624 GB, free: 15.6 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.079e-05/0.1356, allocations: 29.7 kB / 0.5625 GB, free: 15.57 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.1358, allocations: 212.2 kB / 0.5627 GB, free: 15.36 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.1359, allocations: 123 kB / 0.5628 GB, free: 15.23 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.136, allocations: 74.02 kB / 0.5628 GB, free: 15.16 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.1362, allocations: 338.8 kB / 0.5632 GB, free: 14.82 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002702/0.1365, allocations: 108.8 kB / 0.5633 GB, free: 14.71 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003592/0.1368, allocations: 171.5 kB / 0.5634 GB, free: 14.52 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005874/0.1374, allocations: 296.5 kB / 0.5637 GB, free: 14.2 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.1374, allocations: 0 / 0.5637 GB, free: 14.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007743/0.1382, allocations: 370.4 kB / 0.5641 GB, free: 13.84 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.1382, allocations: 4 kB / 0.5641 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.1382, allocations: 4 kB / 0.5641 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.353e-05/0.1383, allocations: 4 kB / 0.5641 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005203/0.1388, allocations: 99.81 kB / 0.5642 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.1388, allocations: 7.984 kB / 0.5642 GB, free: 13.72 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/0.1391, allocations: 43.95 kB / 0.5642 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.092e-05/0.1391, allocations: 15.98 kB / 0.5642 GB, free: 13.66 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.0001918/0.1393, allocations: 157.6 kB / 0.5644 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.917e-05/0.1394, allocations: 27.81 kB / 0.5644 GB, free: 13.47 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000745/0.1401, allocations: 324.2 kB / 0.5647 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.1401, allocations: 4 kB / 0.5647 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1401, allocations: 0 / 0.5647 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.1401, allocations: 7.984 kB / 0.5647 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005914/0.1407, allocations: 405.2 kB / 0.5651 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1407, allocations: 0 / 0.5651 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004619/0.1412, allocations: 87.88 kB / 0.5652 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.924e-06/0.1412, allocations: 4 kB / 0.5652 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.457e-05/0.1412, allocations: 4 kB / 0.5652 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.121e-06/0.1412, allocations: 4 kB / 0.5652 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1412, allocations: 0 / 0.5652 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.1423, allocations: 0.5145 MB / 0.5657 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001568/0.1424, allocations: 132.8 kB / 0.5659 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.06e-05/0.1425, allocations: 4 kB / 0.5659 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002397/0.1427, allocations: 15.98 kB / 0.5659 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.622e-05/0.1428, allocations: 19.97 kB / 0.5659 GB, free: 11.87 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-05/0.1428, allocations: 8 kB / 0.5659 GB, free: 11.86 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002164/0.143, allocations: 198 kB / 0.5661 GB, free: 11.67 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.143, allocations: 0 / 0.5661 GB, free: 11.67 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004043/0.1434, allocations: 95.78 kB / 0.5662 GB, free: 11.57 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.001298/0.1447, allocations: 1.056 MB / 0.5672 GB, free: 10.49 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006569/0.1454, allocations: 263.8 kB / 0.5675 GB, free: 10.23 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1454, allocations: 3.938 kB / 0.5675 GB, free: 10.23 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002793/0.1457, allocations: 127.8 kB / 0.5676 GB, free: 10.11 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003884/0.146, allocations: 42.95 kB / 0.5676 GB, free: 10.07 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004759/0.1508, allocations: 3.143 MB / 0.5707 GB, free: 6.797 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.1512, allocations: 0.7835 MB / 0.5715 GB, free: 5.988 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000185/0.1514, allocations: 34.95 kB / 0.5715 GB, free: 5.957 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001974/0.1516, allocations: 107.4 kB / 0.5716 GB, free: 5.852 MB / 430.1 MB Notification: Performance of SimCode: time 8.81e-07/0.1516, allocations: 4 kB / 0.5716 GB, free: 5.848 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02451/0.1761, allocations: 5.807 MB / 0.5773 GB, free: 180 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.604/9.781, allocations: 13.31 kB / 0.5773 GB, free: 172 kB / 430.1 MB " [Timeout remaining time 650] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.059421149024274]