Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.0009535/0.0009535, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.000958/0.000958, allocations: 169 kB / 24.91 MB, free: 8.723 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.8934/0.8934, allocations: 177.1 MB / 205.3 MB, free: 4.488 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.1375/0.1375, allocations: 32.8 MB / 294.6 MB, free: 15.43 MB / 282.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: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 323.2 MB, free: 2.797 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.336e-05/1.469e-05, allocations: 6.25 kB / 323.2 MB, free: 2.789 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.007786/0.007801, allocations: 9.812 MB / 333 MB, free: 8.93 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005472/0.01327, allocations: 3.906 MB / 336.9 MB, free: 5.008 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005462/0.01382, allocations: 75.62 kB / 337 MB, free: 4.934 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002148/0.01597, allocations: 2.215 MB / 339.2 MB, free: 2.711 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002025/0.01799, allocations: 1.804 MB / 341 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009316/0.01892, allocations: 0.7755 MB / 341.8 MB, free: 124 kB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.1299/0.1488, allocations: 4.379 MB / 346.2 MB, free: 19.8 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003539/0.1524, allocations: 2.573 MB / 348.8 MB, free: 19.5 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00427/0.1566, allocations: 2.451 MB / 351.2 MB, free: 19.03 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002849/0.1595, allocations: 1.917 MB / 353.1 MB, free: 18.68 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006741/0.1602, allocations: 272.3 kB / 353.4 MB, free: 18.68 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001554/0.1617, allocations: 1.136 MB / 354.5 MB, free: 18.54 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00129/0.163, allocations: 1.783 MB / 356.3 MB, free: 17.83 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001475/0.1645, allocations: 1.078 MB / 357.4 MB, free: 17.36 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004032/0.1685, allocations: 4.237 MB / 361.6 MB, free: 14.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.1685, allocations: 4 kB / 361.6 MB, free: 14.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1685, allocations: 0 / 361.6 MB, free: 14.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001423/0.1687, allocations: 4 kB / 361.6 MB, free: 14.33 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.004632/0.1733, allocations: 3.949 MB / 365.6 MB, free: 10.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.1733, allocations: 11.98 kB / 365.6 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002912/0.1762, allocations: 1.102 MB / 366.7 MB, free: 9.617 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002403/0.1786, allocations: 1.683 MB / 368.4 MB, free: 8.023 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.642e-05/0.1787, allocations: 204 kB / 368.6 MB, free: 7.855 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003777/0.1791, allocations: 270.5 kB / 368.9 MB, free: 7.629 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005767/0.1849, allocations: 4.352 MB / 373.2 MB, free: 3.031 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.803e-05/0.185, allocations: 39.78 kB / 373.2 MB, free: 3.012 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002165/0.1852, allocations: 127.3 kB / 373.4 MB, free: 2.922 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001139/0.1863, allocations: 1.535 MB / 374.9 MB, free: 1.414 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003787/0.1901, allocations: 2.171 MB / 377.1 MB, free: 15.44 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02153/0.2116, allocations: 26.82 MB / 403.9 MB, free: 4.586 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00301/0.2147, allocations: 1.447 MB / 405.3 MB, free: 3.145 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004737/0.2151, allocations: 353.5 kB / 405.7 MB, free: 2.805 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005755/0.2209, allocations: 3.456 MB / 409.1 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.366e-05/0.2209, allocations: 55.02 kB / 409.2 MB, free: 15.33 MB / 362.7 MB Notification: Performance of pre-optimization done (n=137): time 4.248e-06/0.2209, allocations: 0 / 409.2 MB, free: 15.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=169): time 0.02184/0.2428, allocations: 7.284 MB / 416.5 MB, free: 8.125 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.352e-05/0.2429, allocations: 199.6 kB / 416.7 MB, free: 7.891 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003397/0.2463, allocations: 3.012 MB / 419.7 MB, free: 5.406 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002168/0.2465, allocations: 52.75 kB / 419.7 MB, free: 5.352 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001488/0.248, allocations: 2.805 MB / 422.5 MB, free: 2.523 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006683/0.2486, allocations: 0.6745 MB / 423.2 MB, free: 1.844 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001192/0.2498, allocations: 1.132 MB / 424.3 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.356e-05/0.2499, allocations: 305.1 kB / 424.6 MB, free: 408 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/0.2514, allocations: 0.7621 MB / 425.4 MB, free: 15.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003431/0.2548, allocations: 4.362 MB / 429.8 MB, free: 9.469 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005281/0.2601, allocations: 5.595 MB / 435.4 MB, free: 2.168 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.523e-05/0.2602, allocations: 40 kB / 435.4 MB, free: 2.129 MB / 378.7 MB Notification: Performance of matching and sorting (n=783) (initialization): time 0.008208/0.2684, allocations: 4.371 MB / 439.8 MB, free: 13.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.041e-05/0.2685, allocations: 60 kB / 439.8 MB, free: 13.69 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000161/0.2686, allocations: 135.9 kB / 440 MB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001972/0.2706, allocations: 0.7066 MB / 440.7 MB, free: 12.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002427/0.273, allocations: 1.318 MB / 442 MB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00366/0.2767, allocations: 2.996 MB / 445 MB, free: 8.441 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002774/0.2795, allocations: 271.8 kB / 445.3 MB, free: 8.176 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005093/0.28, allocations: 312 kB / 445.6 MB, free: 7.871 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 593 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (730): * Single equations (assignments): 726 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001273/0.2812, allocations: 0.6029 MB / 446.2 MB, free: 7.254 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004331/0.2817, allocations: 207.8 kB / 446.4 MB, free: 7.051 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002115/0.2838, allocations: 1.211 MB / 447.6 MB, free: 5.82 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.178e-05/0.2838, allocations: 20 kB / 447.6 MB, free: 5.801 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.2838, allocations: 4 kB / 447.6 MB, free: 5.797 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.2838, allocations: 11.97 kB / 447.6 MB, free: 5.785 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006199/0.29, allocations: 3.791 MB / 451.4 MB, free: 1.914 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.29, allocations: 7.938 kB / 451.4 MB, free: 1.906 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005394/0.2906, allocations: 207.7 kB / 451.6 MB, free: 1.703 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001703/0.2923, allocations: 0.6909 MB / 452.3 MB, free: 1.008 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.471e-05/0.2924, allocations: 27.98 kB / 452.3 MB, free: 0.9805 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002847/0.2952, allocations: 2.566 MB / 454.9 MB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.2952, allocations: 11.88 kB / 454.9 MB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00296/0.2982, allocations: 1.979 MB / 456.9 MB, free: 12.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009637/0.2992, allocations: 281.8 kB / 457.2 MB, free: 12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004819/0.2996, allocations: 32 kB / 457.2 MB, free: 11.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000907/0.3005, allocations: 31.98 kB / 457.2 MB, free: 11.94 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002473/0.3008, allocations: 100.8 kB / 457.3 MB, free: 11.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.3009, allocations: 39.98 kB / 457.4 MB, free: 11.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001691/0.3026, allocations: 1.074 MB / 458.4 MB, free: 10.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3026, allocations: 0 / 458.4 MB, free: 10.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005941/0.3085, allocations: 0.9569 MB / 459.4 MB, free: 9.777 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 2 (revolute.phi,revolute.w) * 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 (122): * Single equations (assignments): 118 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006046/0.3091, allocations: 156.1 kB / 459.5 MB, free: 9.613 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005253/0.3144, allocations: 2.564 MB / 462.1 MB, free: 7.051 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0003407/0.3147, allocations: 96.16 kB / 462.2 MB, free: 6.949 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.3158, allocations: 0.5993 MB / 462.8 MB, free: 6.336 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002192/0.318, allocations: 0.5012 MB / 463.3 MB, free: 5.836 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007601/0.3256, allocations: 6.463 MB / 469.8 MB, free: 15.28 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009015/0.3265, allocations: 1.092 MB / 470.9 MB, free: 14.17 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001018/0.3276, allocations: 469 kB / 471.3 MB, free: 13.71 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006327/0.3282, allocations: 0.4894 MB / 471.8 MB, free: 13.22 MB / 426.7 MB Notification: Performance of SimCode: time 1.974e-06/0.3282, allocations: 4 kB / 471.8 MB, free: 13.22 MB / 426.7 MB Notification: Performance of Templates: time 0.04226/0.3704, allocations: 31.47 MB / 0.4915 GB, free: 14.04 MB / 458.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.00336746731773]