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.001815/0.001815, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.002162/0.002162, allocations: 218.9 kB / 21.46 MB, free: 1.586 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.528/1.528, allocations: 230.6 MB / 254.8 MB, free: 15.24 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.2304/0.2304, allocations: 46.91 MB / 357.8 MB, free: 10.34 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 63.89 kB / 0.4916 GB, free: 7.988 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1225, allocations: 65.99 MB / 0.5561 GB, free: 5.871 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004457/0.1269, allocations: 3.019 MB / 0.559 GB, free: 2.836 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.1284, allocations: 0.7828 MB / 0.5598 GB, free: 2.047 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001706/0.1286, allocations: 8 kB / 0.5598 GB, free: 2.039 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002011/0.1288, allocations: 59.38 kB / 0.5598 GB, free: 1.98 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002232/0.129, allocations: 103 kB / 0.5599 GB, free: 1.879 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003469/0.1293, allocations: 119.8 kB / 0.56 GB, free: 1.762 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005182/0.1298, allocations: 474.6 kB / 0.5605 GB, free: 1.293 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002386/0.1301, allocations: 116 kB / 0.5606 GB, free: 1.172 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002998/0.1304, allocations: 203.3 kB / 0.5608 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002586/0.1306, allocations: 203.1 kB / 0.561 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.288e-05/0.1307, allocations: 40 kB / 0.561 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.894e-05/0.1308, allocations: 40 kB / 0.5611 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.472e-05/0.1309, allocations: 95.61 kB / 0.5612 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001828/0.1311, allocations: 199 kB / 0.5614 GB, free: 416 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005415/0.1316, allocations: 474.1 kB / 0.5618 GB, free: 15.94 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1316, allocations: 0 / 0.5618 GB, free: 15.94 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.737e-06/0.1316, allocations: 4 kB / 0.5618 GB, free: 15.93 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.1316, allocations: 4 kB / 0.5618 GB, free: 15.93 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.001418/0.1331, allocations: 0.7054 MB / 0.5625 GB, free: 15.18 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.1331, allocations: 12.03 kB / 0.5625 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.865e-05/0.1331, allocations: 9.188 kB / 0.5625 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.574e-05/0.1332, allocations: 74.72 kB / 0.5626 GB, free: 15.07 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002526/0.1335, allocations: 68.64 kB / 0.5627 GB, free: 15.01 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004957/0.134, allocations: 291.3 kB / 0.5629 GB, free: 14.69 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/0.134, allocations: 29.38 kB / 0.563 GB, free: 14.66 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.894e-05/0.134, allocations: 36.38 kB / 0.563 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006622/0.1347, allocations: 350.4 kB / 0.5633 GB, free: 14.27 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.1347, allocations: 0 / 0.5633 GB, free: 14.27 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.922e-05/0.1348, allocations: 20 kB / 0.5634 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.1348, allocations: 8 kB / 0.5634 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006703/0.1354, allocations: 299.8 kB / 0.5636 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00227/0.1377, allocations: 1.349 MB / 0.565 GB, free: 12.51 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005319/0.1382, allocations: 261.2 kB / 0.5652 GB, free: 12.25 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002968/0.1385, allocations: 133.4 kB / 0.5653 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.469e-05/0.1386, allocations: 4.266 kB / 0.5653 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.703e-05/0.1386, allocations: 42.77 kB / 0.5654 GB, free: 12.06 MB / 430.1 MB Notification: Performance of pre-optimization done (n=34): time 1.913e-06/0.1386, allocations: 0 / 0.5654 GB, free: 12.06 MB / 430.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009093/0.1395, allocations: 379.5 kB / 0.5657 GB, free: 11.68 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/0.1396, allocations: 59.34 kB / 0.5658 GB, free: 11.61 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002899/0.1398, allocations: 262.7 kB / 0.5661 GB, free: 11.35 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.043e-05/0.1399, allocations: 29.7 kB / 0.5661 GB, free: 11.32 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.14, allocations: 212.3 kB / 0.5663 GB, free: 11.1 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.1401, allocations: 115 kB / 0.5664 GB, free: 10.99 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/0.1403, allocations: 74.06 kB / 0.5665 GB, free: 10.91 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.1405, allocations: 338.8 kB / 0.5668 GB, free: 10.57 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003218/0.1408, allocations: 108.8 kB / 0.5669 GB, free: 10.46 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003239/0.1411, allocations: 179.4 kB / 0.5671 GB, free: 10.26 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005631/0.1417, allocations: 292.6 kB / 0.5673 GB, free: 9.953 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.1417, allocations: 0 / 0.5673 GB, free: 9.953 MB / 430.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007401/0.1424, allocations: 370.4 kB / 0.5677 GB, free: 9.586 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.1424, allocations: 4 kB / 0.5677 GB, free: 9.582 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.1425, allocations: 4 kB / 0.5677 GB, free: 9.578 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.1425, allocations: 4 kB / 0.5677 GB, free: 9.574 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005422/0.143, allocations: 103.8 kB / 0.5678 GB, free: 9.473 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.143, allocations: 8.203 kB / 0.5678 GB, free: 9.465 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003029/0.1433, allocations: 47.67 kB / 0.5679 GB, free: 9.418 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.1434, allocations: 11.98 kB / 0.5679 GB, free: 9.406 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.0002006/0.1436, allocations: 153.7 kB / 0.568 GB, free: 9.246 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.287e-05/0.1436, allocations: 27.81 kB / 0.568 GB, free: 9.219 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007647/0.1444, allocations: 328.2 kB / 0.5684 GB, free: 8.891 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.1444, allocations: 8 kB / 0.5684 GB, free: 8.883 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.1444, allocations: 0 / 0.5684 GB, free: 8.883 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.1444, allocations: 3.984 kB / 0.5684 GB, free: 8.879 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005479/0.145, allocations: 401.2 kB / 0.5688 GB, free: 8.438 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.145, allocations: 0 / 0.5688 GB, free: 8.438 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000439/0.1454, allocations: 91.88 kB / 0.5688 GB, free: 8.348 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.1454, allocations: 0 / 0.5688 GB, free: 8.348 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.423e-05/0.1454, allocations: 4 kB / 0.5688 GB, free: 8.344 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.1454, allocations: 4 kB / 0.5688 GB, free: 8.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1454, allocations: 0 / 0.5688 GB, free: 8.34 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009655/0.1464, allocations: 0.5106 MB / 0.5693 GB, free: 7.812 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001507/0.1466, allocations: 132.8 kB / 0.5695 GB, free: 7.664 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.516e-05/0.1466, allocations: 12 kB / 0.5695 GB, free: 7.652 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002464/0.1468, allocations: 15.94 kB / 0.5695 GB, free: 7.637 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.86e-05/0.1469, allocations: 19.91 kB / 0.5695 GB, free: 7.617 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.432e-05/0.1469, allocations: 20.05 kB / 0.5695 GB, free: 7.598 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002097/0.1472, allocations: 186 kB / 0.5697 GB, free: 7.414 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1472, allocations: 3.938 kB / 0.5697 GB, free: 7.41 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000389/0.1475, allocations: 95.84 kB / 0.5698 GB, free: 7.316 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.001293/0.1488, allocations: 1.056 MB / 0.5708 GB, free: 6.234 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006455/0.1495, allocations: 263.9 kB / 0.5711 GB, free: 5.977 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1495, allocations: 0 / 0.5711 GB, free: 5.977 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002674/0.1497, allocations: 120.3 kB / 0.5712 GB, free: 5.859 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003859/0.1501, allocations: 36.55 kB / 0.5712 GB, free: 5.824 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004497/0.1546, allocations: 3.147 MB / 0.5743 GB, free: 2.551 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004896/0.1551, allocations: 0.7835 MB / 0.5751 GB, free: 1.742 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001767/0.1553, allocations: 38.95 kB / 0.5751 GB, free: 1.707 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001898/0.1555, allocations: 111.4 kB / 0.5752 GB, free: 1.598 MB / 430.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1555, allocations: 0 / 0.5752 GB, free: 1.598 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02456/0.18, allocations: 5.815 MB / 0.5809 GB, free: 11.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.197/9.377, allocations: 4.625 kB / 0.5809 GB, free: 11.91 MB / 446.1 MB " [Timeout remaining time 650] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.740538810030557]