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.0009672/0.0009672, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.00105/0.00105, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8803/0.8803, allocations: 177.1 MB / 204.3 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] 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.2421/0.2421, allocations: 32.8 MB / 293.5 MB, free: 1.227 MB / 266.7 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="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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 439.6 MB, free: 4.281 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.917e-05/2.087e-05, allocations: 9.172 kB / 439.6 MB, free: 4.273 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.002882/0.002903, allocations: 2.798 MB / 442.4 MB, free: 1.457 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.004013, allocations: 0.7439 MB / 443.1 MB, free: 0.707 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001446/0.004158, allocations: 15.88 kB / 443.1 MB, free: 0.6914 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001496/0.004307, allocations: 63.38 kB / 443.2 MB, free: 0.6289 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001603/0.004468, allocations: 103 kB / 443.3 MB, free: 0.5273 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002905/0.004758, allocations: 119.8 kB / 443.4 MB, free: 420 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.1698/0.1746, allocations: 482.9 kB / 443.9 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002813/0.1748, allocations: 108.2 kB / 444 MB, free: 43.28 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004013/0.1752, allocations: 269.3 kB / 444.3 MB, free: 43.28 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001357/0.1754, allocations: 163.6 kB / 444.4 MB, free: 43.28 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.804e-05/0.1754, allocations: 37.97 kB / 444.5 MB, free: 43.28 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.486e-05/0.1755, allocations: 47.52 kB / 444.5 MB, free: 43.28 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.41e-05/0.1755, allocations: 89.48 kB / 444.6 MB, free: 43.28 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.299e-05/0.1756, allocations: 142.1 kB / 444.7 MB, free: 43.28 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003305/0.1759, allocations: 480.3 kB / 445.2 MB, free: 43.26 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1759, allocations: 6.219 kB / 445.2 MB, free: 43.26 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1759, allocations: 0 / 445.2 MB, free: 43.26 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.892e-06/0.1759, allocations: 0 / 445.2 MB, free: 43.26 MB / 410.7 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.0007591/0.1767, allocations: 0.6331 MB / 445.8 MB, free: 42.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.1767, allocations: 8.344 kB / 445.8 MB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.065e-05/0.1768, allocations: 84.05 kB / 445.9 MB, free: 42.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/0.1769, allocations: 58.56 kB / 446 MB, free: 42.81 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002858/0.1772, allocations: 229.2 kB / 446.2 MB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.1772, allocations: 30.12 kB / 446.2 MB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.099e-05/0.1773, allocations: 47.45 kB / 446.3 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003605/0.1776, allocations: 337.1 kB / 446.6 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.1776, allocations: 2.812 kB / 446.6 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/0.1777, allocations: 15.53 kB / 446.6 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.1777, allocations: 11.84 kB / 446.6 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003484/0.178, allocations: 304.3 kB / 446.9 MB, free: 42.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001166/0.1792, allocations: 1.205 MB / 448.1 MB, free: 42.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002952/0.1795, allocations: 258.6 kB / 448.4 MB, free: 41.91 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.1796, allocations: 139.2 kB / 448.5 MB, free: 41.86 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.1797, allocations: 3.062 kB / 448.5 MB, free: 41.86 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.448e-05/0.1797, allocations: 41.59 kB / 448.6 MB, free: 41.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=34): time 1.462e-06/0.1797, allocations: 0 / 448.6 MB, free: 41.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=34): time 0.000468/0.1802, allocations: 378.6 kB / 448.9 MB, free: 41.66 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.04e-05/0.1802, allocations: 61.62 kB / 449 MB, free: 41.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.1803, allocations: 264.4 kB / 449.3 MB, free: 41.44 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.1803, allocations: 36.45 kB / 449.3 MB, free: 41.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.82e-05/0.1804, allocations: 208.2 kB / 449.5 MB, free: 41.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.693e-05/0.1804, allocations: 118.7 kB / 449.6 MB, free: 41.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.771e-05/0.1805, allocations: 77.88 kB / 449.7 MB, free: 41.09 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.567e-05/0.1805, allocations: 340 kB / 450 MB, free: 40.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.1807, allocations: 109.9 kB / 450.1 MB, free: 40.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.1808, allocations: 170 kB / 450.3 MB, free: 40.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002789/0.1811, allocations: 283.8 kB / 450.6 MB, free: 40.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1811, allocations: 2.875 kB / 450.6 MB, free: 40.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0003533/0.1814, allocations: 370.5 kB / 450.9 MB, free: 40.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.1815, allocations: 9.688 kB / 451 MB, free: 40.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.1815, allocations: 5.906 kB / 451 MB, free: 40.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.1815, allocations: 3.094 kB / 451 MB, free: 40.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002438/0.1817, allocations: 106.9 kB / 451.1 MB, free: 40.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.1817, allocations: 2.875 kB / 451.1 MB, free: 40.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001136/0.1818, allocations: 42.25 kB / 451.1 MB, free: 40.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.639e-05/0.1819, allocations: 18.48 kB / 451.1 MB, free: 40.28 MB / 410.7 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 8.043e-05/0.1819, allocations: 157.6 kB / 451.3 MB, free: 40.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.934e-05/0.182, allocations: 33.66 kB / 451.3 MB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003588/0.1823, allocations: 328.1 kB / 451.6 MB, free: 39.97 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.1823, allocations: 5.406 kB / 451.6 MB, free: 39.97 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.1823, allocations: 0 / 451.6 MB, free: 39.97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1823, allocations: 3.281 kB / 451.6 MB, free: 39.97 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002381/0.1826, allocations: 331.4 kB / 452 MB, free: 39.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1826, allocations: 3.828 kB / 452 MB, free: 39.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001935/0.1828, allocations: 81.38 kB / 452 MB, free: 39.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1828, allocations: 3.938 kB / 452.1 MB, free: 39.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.1828, allocations: 9.828 kB / 452.1 MB, free: 39.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.1828, allocations: 2.875 kB / 452.1 MB, free: 39.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1828, allocations: 5.875 kB / 452.1 MB, free: 39.72 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004582/0.1832, allocations: 0.5089 MB / 452.6 MB, free: 39.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.363e-05/0.1833, allocations: 50.39 kB / 452.6 MB, free: 39.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.456e-05/0.1833, allocations: 15.89 kB / 452.6 MB, free: 39.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.1834, allocations: 13.8 kB / 452.7 MB, free: 39.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.426e-05/0.1835, allocations: 19.53 kB / 452.7 MB, free: 39.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.1835, allocations: 10.56 kB / 452.7 MB, free: 39.39 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.71e-05/0.1836, allocations: 190.4 kB / 452.9 MB, free: 39.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1836, allocations: 4.062 kB / 452.9 MB, free: 39.28 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002062/0.1838, allocations: 93.89 kB / 453 MB, free: 39.26 MB / 410.7 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.0005247/0.1843, allocations: 1.051 MB / 454 MB, free: 38.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003086/0.1846, allocations: 269.9 kB / 454.3 MB, free: 38.37 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1846, allocations: 0 / 454.3 MB, free: 38.37 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.1847, allocations: 122.9 kB / 454.4 MB, free: 38.34 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002353/0.185, allocations: 31.62 kB / 454.4 MB, free: 38.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.1871, allocations: 3.094 MB / 457.5 MB, free: 36.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.684e-05/0.1872, allocations: 186.7 kB / 457.7 MB, free: 36.23 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001086/0.1873, allocations: 40.02 kB / 457.7 MB, free: 36.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.1874, allocations: 106 kB / 457.9 MB, free: 36.15 MB / 410.7 MB Notification: Performance of SimCode: time 9.31e-07/0.1874, allocations: 0 / 457.9 MB, free: 36.15 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01649/0.2039, allocations: 6.545 MB / 464.4 MB, free: 34.77 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.83/7.034, allocations: 10.03 kB / 464.4 MB, free: 34.77 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","/var/lib/jenkins/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: 8.974804414436221]