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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009827/0.0009827, allocations: 104.2 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009801/0.0009801, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 222.9 MB / 242.3 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2316/0.2316, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002542/0.002542, allocations: 55.44 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1479, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.00653/0.1545, allocations: 2.997 MB / 472.4 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001901/0.1565, allocations: 0.717 MB / 473.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000205/0.1567, allocations: 8 kB / 473.1 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000237/0.1569, allocations: 63.38 kB / 473.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002855/0.1573, allocations: 103 kB / 473.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003765/0.1576, allocations: 111.8 kB / 473.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006305/0.1583, allocations: 474.5 kB / 473.8 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000383/0.1587, allocations: 159.9 kB / 474 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003188/0.159, allocations: 183.3 kB / 474.2 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003373/0.1594, allocations: 207.1 kB / 474.4 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.213e-05/0.1595, allocations: 36 kB / 474.4 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.215e-05/0.1596, allocations: 40 kB / 474.4 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001144/0.1597, allocations: 95.61 kB / 474.5 MB, free: 9.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002558/0.16, allocations: 199 kB / 474.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005805/0.1606, allocations: 470.3 kB / 475.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1606, allocations: 0 / 475.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.1606, allocations: 0 / 475.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.1606, allocations: 0 / 475.2 MB, free: 8.422 MB / 350.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.001761/0.1624, allocations: 0.7058 MB / 475.9 MB, free: 7.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.1624, allocations: 8.031 kB / 475.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.356e-05/0.1625, allocations: 78.72 kB / 476 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.984e-05/0.1626, allocations: 44.41 kB / 476 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000322/0.1629, allocations: 291.5 kB / 476.3 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/0.1629, allocations: 25.38 kB / 476.3 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.319e-05/0.163, allocations: 40.38 kB / 476.4 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005984/0.1636, allocations: 346.6 kB / 476.7 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.1636, allocations: 0 / 476.7 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.1637, allocations: 16 kB / 476.7 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.1637, allocations: 8 kB / 476.7 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007702/0.1645, allocations: 307.8 kB / 477 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00296/0.1674, allocations: 1.337 MB / 478.4 MB, free: 5.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000729/0.1682, allocations: 278.7 kB / 478.6 MB, free: 4.758 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000442/0.1687, allocations: 161.3 kB / 478.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.016e-05/0.1687, allocations: 8.281 kB / 478.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.1688, allocations: 34.84 kB / 478.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 5.009e-06/0.1688, allocations: 0 / 478.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.001189/0.17, allocations: 379.2 kB / 479.2 MB, free: 4.172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.603e-05/0.17, allocations: 63.33 kB / 479.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003975/0.1704, allocations: 266.7 kB / 479.5 MB, free: 3.828 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.969e-05/0.1705, allocations: 33.7 kB / 479.6 MB, free: 3.789 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001813/0.1707, allocations: 203.9 kB / 479.8 MB, free: 3.586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.1708, allocations: 118.3 kB / 479.9 MB, free: 3.469 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.171, allocations: 70.03 kB / 479.9 MB, free: 3.395 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.1712, allocations: 350.7 kB / 480.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003822/0.1716, allocations: 96.83 kB / 480.4 MB, free: 2.949 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004474/0.172, allocations: 175.5 kB / 480.5 MB, free: 2.754 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007884/0.1728, allocations: 292.6 kB / 480.8 MB, free: 2.445 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.1729, allocations: 3.938 kB / 480.8 MB, free: 2.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001024/0.1739, allocations: 362.1 kB / 481.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.1739, allocations: 8 kB / 481.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1739, allocations: 0 / 481.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.174, allocations: 4 kB / 481.2 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007616/0.1747, allocations: 107.8 kB / 481.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.1748, allocations: 4 kB / 481.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004184/0.1752, allocations: 43.52 kB / 481.4 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.584e-05/0.1753, allocations: 20.19 kB / 481.4 MB, free: 1.898 MB / 350.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.000231/0.1755, allocations: 149.7 kB / 481.5 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.1756, allocations: 31.62 kB / 481.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000984/0.1766, allocations: 324.3 kB / 481.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.198e-06/0.1766, allocations: 4 kB / 481.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.1766, allocations: 0 / 481.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.1767, allocations: 0 / 481.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006875/0.1774, allocations: 413.1 kB / 482.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1774, allocations: 0 / 482.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006551/0.178, allocations: 87.81 kB / 482.4 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.97e-06/0.1781, allocations: 0 / 482.4 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.37e-05/0.1781, allocations: 8 kB / 482.4 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.1781, allocations: 0 / 482.4 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1781, allocations: 0 / 482.4 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001313/0.1794, allocations: 0.5227 MB / 482.9 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002012/0.1797, allocations: 124.7 kB / 483 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.982e-05/0.1797, allocations: 8 kB / 483 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003634/0.1801, allocations: 11.98 kB / 483 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.264e-05/0.1802, allocations: 27.91 kB / 483.1 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.518e-05/0.1803, allocations: 4 kB / 483.1 MB, free: 108 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003372/0.1806, allocations: 194 kB / 483.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1806, allocations: 4.062 kB / 483.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005257/0.1812, allocations: 91.75 kB / 483.3 MB, free: 15.82 MB / 366.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.001691/0.1829, allocations: 1.059 MB / 484.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008763/0.1838, allocations: 291.9 kB / 484.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1838, allocations: 0 / 484.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002792/0.1841, allocations: 140.3 kB / 484.8 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006365/0.1847, allocations: 36.53 kB / 484.9 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004462/0.1892, allocations: 3.145 MB / 488 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003503/0.1896, allocations: 0.7835 MB / 488.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002088/0.1898, allocations: 34.95 kB / 488.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001672/0.19, allocations: 115.4 kB / 488.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.19, allocations: 0 / 488.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04275/0.2327, allocations: 5.587 MB / 494.5 MB, free: 4.555 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.807/8.04, allocations: 4.406 kB / 494.5 MB, free: 4.555 MB / 366.1 MB (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 --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) 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) Reference file matches