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.001404/0.001404, allocations: 123.4 kB / 17.79 MB, free: 5.281 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.001429/0.001429, allocations: 204.3 kB / 20.74 MB, free: 2.34 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.505/1.505, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.2334/0.2334, allocations: 46.92 MB / 357.1 MB, free: 10.32 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.002058/0.002058, allocations: 71.88 kB / 0.4909 GB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1261, allocations: 65.99 MB / 0.5554 GB, free: 5.852 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004886/0.131, allocations: 3.028 MB / 0.5583 GB, free: 2.809 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.1327, allocations: 0.7751 MB / 0.5591 GB, free: 2.027 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002873/0.133, allocations: 7.938 kB / 0.5591 GB, free: 2.02 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002404/0.1332, allocations: 63.38 kB / 0.5592 GB, free: 1.957 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003296/0.1336, allocations: 99.05 kB / 0.5592 GB, free: 1.859 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003926/0.134, allocations: 119.8 kB / 0.5594 GB, free: 1.742 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006482/0.1346, allocations: 474.6 kB / 0.5598 GB, free: 1.273 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002625/0.1349, allocations: 120 kB / 0.5599 GB, free: 1.148 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003838/0.1353, allocations: 199.3 kB / 0.5601 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003312/0.1356, allocations: 203.1 kB / 0.5603 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.847e-05/0.1357, allocations: 40 kB / 0.5603 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001155/0.1358, allocations: 40 kB / 0.5604 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.331e-05/0.1359, allocations: 91.67 kB / 0.5605 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002174/0.1361, allocations: 206.9 kB / 0.5607 GB, free: 392 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006104/0.1367, allocations: 482 kB / 0.5611 GB, free: 15.91 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1367, allocations: 0 / 0.5611 GB, free: 15.91 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1367, allocations: 0 / 0.5611 GB, free: 15.91 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.692e-05/0.1367, allocations: 0 / 0.5611 GB, free: 15.91 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.001619/0.1383, allocations: 0.7132 MB / 0.5618 GB, free: 15.15 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.1384, allocations: 8.031 kB / 0.5618 GB, free: 15.14 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00011/0.1385, allocations: 78.72 kB / 0.5619 GB, free: 15.05 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002725/0.1388, allocations: 56.64 kB / 0.562 GB, free: 15 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004873/0.1393, allocations: 287.5 kB / 0.5622 GB, free: 14.68 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.262e-05/0.1393, allocations: 33.31 kB / 0.5623 GB, free: 14.65 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.105e-05/0.1394, allocations: 40.38 kB / 0.5623 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007393/0.1401, allocations: 350.5 kB / 0.5626 GB, free: 14.26 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.1401, allocations: 8 kB / 0.5627 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.98e-05/0.1402, allocations: 12 kB / 0.5627 GB, free: 14.24 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.1402, allocations: 12 kB / 0.5627 GB, free: 14.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000704/0.1409, allocations: 299.8 kB / 0.563 GB, free: 13.93 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002574/0.1434, allocations: 1.337 MB / 0.5643 GB, free: 12.5 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005761/0.144, allocations: 263.2 kB / 0.5645 GB, free: 12.23 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003109/0.1443, allocations: 133.4 kB / 0.5646 GB, free: 12.1 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.1444, allocations: 4.281 kB / 0.5646 GB, free: 12.1 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/0.1444, allocations: 38.83 kB / 0.5647 GB, free: 12.05 MB / 430.1 MB Notification: Performance of pre-optimization done (n=34): time 1.883e-06/0.1444, allocations: 0 / 0.5647 GB, free: 12.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009461/0.1454, allocations: 383.4 kB / 0.5651 GB, free: 11.67 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.1454, allocations: 59.34 kB / 0.5651 GB, free: 11.6 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003222/0.1457, allocations: 262.7 kB / 0.5654 GB, free: 11.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/0.1458, allocations: 29.7 kB / 0.5654 GB, free: 11.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.1459, allocations: 212.2 kB / 0.5656 GB, free: 11.09 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.146, allocations: 119 kB / 0.5657 GB, free: 10.98 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/0.1462, allocations: 74.06 kB / 0.5658 GB, free: 10.9 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.1463, allocations: 342.8 kB / 0.5661 GB, free: 10.55 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000264/0.1466, allocations: 104.8 kB / 0.5662 GB, free: 10.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003293/0.1469, allocations: 167.5 kB / 0.5664 GB, free: 10.26 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005831/0.1475, allocations: 292.5 kB / 0.5666 GB, free: 9.953 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.1475, allocations: 11.94 kB / 0.5666 GB, free: 9.941 MB / 430.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007909/0.1483, allocations: 366.4 kB / 0.567 GB, free: 9.578 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.1483, allocations: 4 kB / 0.567 GB, free: 9.574 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.1483, allocations: 4 kB / 0.567 GB, free: 9.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.1483, allocations: 4 kB / 0.567 GB, free: 9.566 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005387/0.1489, allocations: 100.1 kB / 0.5671 GB, free: 9.469 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.1489, allocations: 7.984 kB / 0.5671 GB, free: 9.461 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003137/0.1492, allocations: 43.67 kB / 0.5672 GB, free: 9.418 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.67e-05/0.1493, allocations: 15.98 kB / 0.5672 GB, free: 9.402 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.0002017/0.1495, allocations: 157.7 kB / 0.5673 GB, free: 9.238 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.055e-05/0.1495, allocations: 27.81 kB / 0.5673 GB, free: 9.211 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008048/0.1503, allocations: 328.2 kB / 0.5677 GB, free: 8.879 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.1503, allocations: 0 / 0.5677 GB, free: 8.879 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1503, allocations: 4 kB / 0.5677 GB, free: 8.875 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.1503, allocations: 3.984 kB / 0.5677 GB, free: 8.871 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005679/0.1509, allocations: 405.1 kB / 0.5681 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.1509, allocations: 0 / 0.5681 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004564/0.1514, allocations: 87.88 kB / 0.5681 GB, free: 8.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.14e-05/0.1514, allocations: 11.92 kB / 0.5681 GB, free: 8.328 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.74e-05/0.1514, allocations: 8 kB / 0.5682 GB, free: 8.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.1514, allocations: 4 kB / 0.5682 GB, free: 8.316 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1514, allocations: 4 kB / 0.5682 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009926/0.1524, allocations: 0.5106 MB / 0.5687 GB, free: 7.785 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001665/0.1526, allocations: 128.8 kB / 0.5688 GB, free: 7.641 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.965e-05/0.1526, allocations: 8 kB / 0.5688 GB, free: 7.633 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002466/0.1529, allocations: 12.06 kB / 0.5688 GB, free: 7.621 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.968e-05/0.1529, allocations: 19.97 kB / 0.5688 GB, free: 7.602 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/0.153, allocations: 19.92 kB / 0.5688 GB, free: 7.582 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000221/0.1532, allocations: 186 kB / 0.569 GB, free: 7.398 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1532, allocations: 0 / 0.569 GB, free: 7.398 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000429/0.1536, allocations: 95.84 kB / 0.5691 GB, free: 7.305 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.001394/0.155, allocations: 1.056 MB / 0.5701 GB, free: 6.223 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006948/0.1557, allocations: 267.8 kB / 0.5704 GB, free: 5.961 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.1557, allocations: 0 / 0.5704 GB, free: 5.961 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002808/0.156, allocations: 124.3 kB / 0.5705 GB, free: 5.84 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.1564, allocations: 28.55 kB / 0.5705 GB, free: 5.812 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005025/0.1614, allocations: 3.147 MB / 0.5736 GB, free: 2.539 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/0.1619, allocations: 0.7835 MB / 0.5744 GB, free: 1.73 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002018/0.1621, allocations: 38.94 kB / 0.5744 GB, free: 1.695 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002124/0.1623, allocations: 115.4 kB / 0.5745 GB, free: 1.582 MB / 430.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1623, allocations: 0 / 0.5745 GB, free: 1.582 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03147/0.1937, allocations: 5.771 MB / 0.5802 GB, free: 11.92 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.904/9.098, allocations: 9.469 kB / 0.5802 GB, free: 11.91 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 & /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.272893035085872]