Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001346/0.001346, allocations: 117 kB / 18.49 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001537/0.001537, allocations: 212.7 kB / 21.45 MB, free: 1.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 230.5 MB / 254.7 MB, free: 15.18 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2615/0.2615, allocations: 46.92 MB / 357.7 MB, free: 10.2 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002292/0.002292, allocations: 79.88 kB / 0.4916 GB, free: 7.723 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1229, allocations: 66.04 MB / 0.5561 GB, free: 5.547 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004806/0.1278, allocations: 3.021 MB / 0.5591 GB, free: 2.504 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.1296, allocations: 0.7829 MB / 0.5599 GB, free: 1.715 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002938/0.1298, allocations: 7.938 kB / 0.5599 GB, free: 1.707 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002312/0.1301, allocations: 59.38 kB / 0.5599 GB, free: 1.648 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003134/0.1304, allocations: 107 kB / 0.56 GB, free: 1.543 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003634/0.1308, allocations: 115.8 kB / 0.5601 GB, free: 1.43 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000637/0.1314, allocations: 478.6 kB / 0.5606 GB, free: 0.957 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002519/0.1316, allocations: 112 kB / 0.5607 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003685/0.132, allocations: 195.3 kB / 0.5609 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003109/0.1323, allocations: 211 kB / 0.5611 GB, free: 452 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.771e-05/0.1324, allocations: 44 kB / 0.5611 GB, free: 408 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.393e-05/0.1325, allocations: 40 kB / 0.5612 GB, free: 368 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.989e-05/0.1326, allocations: 87.67 kB / 0.5612 GB, free: 280 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002116/0.1328, allocations: 203 kB / 0.5614 GB, free: 76 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006073/0.1334, allocations: 478 kB / 0.5619 GB, free: 15.61 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1334, allocations: 0 / 0.5619 GB, free: 15.61 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1334, allocations: 0 / 0.5619 GB, free: 15.61 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.932e-05/0.1334, allocations: 0 / 0.5619 GB, free: 15.61 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.001537/0.135, allocations: 0.7132 MB / 0.5626 GB, free: 14.84 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.135, allocations: 12.03 kB / 0.5626 GB, free: 14.83 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.898e-05/0.135, allocations: 9.188 kB / 0.5626 GB, free: 14.82 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.588e-05/0.1351, allocations: 78.7 kB / 0.5627 GB, free: 14.74 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002595/0.1354, allocations: 60.58 kB / 0.5627 GB, free: 14.68 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004401/0.1358, allocations: 295.5 kB / 0.563 GB, free: 14.35 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/0.1358, allocations: 29.38 kB / 0.5631 GB, free: 14.32 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.695e-05/0.1359, allocations: 40.38 kB / 0.5631 GB, free: 14.29 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006627/0.1366, allocations: 346.4 kB / 0.5634 GB, free: 13.94 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.1366, allocations: 7.984 kB / 0.5634 GB, free: 13.93 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.437e-05/0.1366, allocations: 12 kB / 0.5634 GB, free: 13.92 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.243e-05/0.1366, allocations: 12 kB / 0.5635 GB, free: 13.91 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006629/0.1373, allocations: 303.8 kB / 0.5637 GB, free: 13.61 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002269/0.1396, allocations: 1.33 MB / 0.565 GB, free: 12.19 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005263/0.1401, allocations: 252.9 kB / 0.5653 GB, free: 11.93 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002952/0.1404, allocations: 141.3 kB / 0.5654 GB, free: 11.79 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.42e-05/0.1404, allocations: 12.27 kB / 0.5654 GB, free: 11.78 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.1404, allocations: 38.84 kB / 0.5655 GB, free: 11.73 MB / 430.1 MB Notification: Performance of pre-optimization done (n=34): time 1.823e-06/0.1404, allocations: 0 / 0.5655 GB, free: 11.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008763/0.1413, allocations: 376 kB / 0.5658 GB, free: 11.36 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.1414, allocations: 59.34 kB / 0.5659 GB, free: 11.29 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002973/0.1417, allocations: 266.7 kB / 0.5661 GB, free: 11.02 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.55e-05/0.1417, allocations: 33.7 kB / 0.5662 GB, free: 10.98 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.1418, allocations: 208.3 kB / 0.5664 GB, free: 10.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.1419, allocations: 119 kB / 0.5665 GB, free: 10.66 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000118/0.1421, allocations: 70.08 kB / 0.5665 GB, free: 10.58 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1422, allocations: 342.8 kB / 0.5669 GB, free: 10.24 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002622/0.1425, allocations: 100.8 kB / 0.567 GB, free: 10.14 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003662/0.1429, allocations: 179.4 kB / 0.5671 GB, free: 9.938 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005745/0.1434, allocations: 296.5 kB / 0.5674 GB, free: 9.625 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.1434, allocations: 4 kB / 0.5674 GB, free: 9.621 MB / 430.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000714/0.1442, allocations: 366.5 kB / 0.5678 GB, free: 9.258 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.1442, allocations: 4 kB / 0.5678 GB, free: 9.254 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.1442, allocations: 4 kB / 0.5678 GB, free: 9.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.1442, allocations: 4 kB / 0.5678 GB, free: 9.246 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005541/0.1447, allocations: 99.86 kB / 0.5679 GB, free: 9.148 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/0.1448, allocations: 4 kB / 0.5679 GB, free: 9.145 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002798/0.145, allocations: 47.66 kB / 0.5679 GB, free: 9.098 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.368e-05/0.1451, allocations: 16 kB / 0.568 GB, free: 9.082 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.0001821/0.1453, allocations: 157.8 kB / 0.5681 GB, free: 8.918 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.478e-05/0.1453, allocations: 31.8 kB / 0.5681 GB, free: 8.887 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007471/0.1461, allocations: 324.2 kB / 0.5684 GB, free: 8.562 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1461, allocations: 0 / 0.5684 GB, free: 8.562 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1461, allocations: 4 kB / 0.5684 GB, free: 8.559 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1461, allocations: 0 / 0.5684 GB, free: 8.559 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005252/0.1466, allocations: 409.1 kB / 0.5688 GB, free: 8.109 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1466, allocations: 7.938 kB / 0.5688 GB, free: 8.102 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004428/0.147, allocations: 87.88 kB / 0.5689 GB, free: 8.016 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/0.1471, allocations: 4 kB / 0.5689 GB, free: 8.012 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.326e-05/0.1471, allocations: 8 kB / 0.5689 GB, free: 8.004 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.1471, allocations: 4 kB / 0.5689 GB, free: 8 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1471, allocations: 0 / 0.5689 GB, free: 8 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009089/0.148, allocations: 0.5145 MB / 0.5694 GB, free: 7.469 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.1481, allocations: 128.9 kB / 0.5696 GB, free: 7.324 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.116e-05/0.1482, allocations: 4 kB / 0.5696 GB, free: 7.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.1484, allocations: 15.98 kB / 0.5696 GB, free: 7.305 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.113e-05/0.1485, allocations: 23.91 kB / 0.5696 GB, free: 7.281 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.1485, allocations: 8 kB / 0.5696 GB, free: 7.273 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002127/0.1487, allocations: 190 kB / 0.5698 GB, free: 7.086 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1487, allocations: 0 / 0.5698 GB, free: 7.086 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003673/0.1491, allocations: 99.91 kB / 0.5699 GB, free: 6.988 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.001305/0.1504, allocations: 1.048 MB / 0.5709 GB, free: 5.914 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006275/0.151, allocations: 271.9 kB / 0.5712 GB, free: 5.648 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.151, allocations: 0 / 0.5712 GB, free: 5.648 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002628/0.1513, allocations: 127.8 kB / 0.5713 GB, free: 5.523 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003426/0.1516, allocations: 35.61 kB / 0.5713 GB, free: 5.492 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004535/0.1561, allocations: 3.149 MB / 0.5744 GB, free: 2.219 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.1566, allocations: 0.7874 MB / 0.5752 GB, free: 1.406 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001705/0.1568, allocations: 34.95 kB / 0.5752 GB, free: 1.375 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.1569, allocations: 111.4 kB / 0.5753 GB, free: 1.266 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1569, allocations: 0 / 0.5753 GB, free: 1.266 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02344/0.1804, allocations: 5.811 MB / 0.581 GB, free: 11.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.99/9.171, allocations: 4.688 kB / 0.581 GB, free: 11.56 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.32968190201791]