Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0009986/0.0009986, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.001175/0.001175, allocations: 170.2 kB / 24.92 MB, free: 9.188 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 1.045/1.045, allocations: 177.1 MB / 205.3 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] 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.279/0.279, allocations: 34.26 MB / 296.1 MB, free: 0.7148 MB / 266.7 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: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.1.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.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 325.3 MB, free: 7.637 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.976e-05/2.093e-05, allocations: 7.188 kB / 325.3 MB, free: 7.629 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.00774/0.007761, allocations: 9.852 MB / 335.1 MB, free: 13.73 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007071/0.01483, allocations: 3.914 MB / 339.1 MB, free: 9.797 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001519/0.01635, allocations: 71.62 kB / 339.1 MB, free: 9.727 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002554/0.0189, allocations: 2.184 MB / 341.3 MB, free: 7.535 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003216/0.02212, allocations: 1.777 MB / 343.1 MB, free: 5.75 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.02327, allocations: 0.7561 MB / 343.8 MB, free: 4.992 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004145/0.02741, allocations: 4.404 MB / 348.3 MB, free: 0.582 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002681/0.03009, allocations: 2.453 MB / 350.7 MB, free: 14.05 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003111/0.0332, allocations: 2.421 MB / 353.1 MB, free: 11.63 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00249/0.03569, allocations: 1.921 MB / 355 MB, free: 9.703 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007356/0.03643, allocations: 276 kB / 355.3 MB, free: 9.434 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001715/0.03814, allocations: 1.17 MB / 356.5 MB, free: 8.262 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001359/0.0395, allocations: 1.78 MB / 358.3 MB, free: 6.477 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001497/0.041, allocations: 1.079 MB / 359.3 MB, free: 5.395 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005019/0.04602, allocations: 4.239 MB / 363.6 MB, free: 1.141 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.04602, allocations: 0 / 363.6 MB, free: 1.141 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.04603, allocations: 0 / 363.6 MB, free: 1.141 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001792/0.0462, allocations: 0 / 363.6 MB, free: 1.141 MB / 330.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.005459/0.05166, allocations: 3.955 MB / 367.5 MB, free: 13.13 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.0517, allocations: 8.031 kB / 367.5 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003261/0.05497, allocations: 1.113 MB / 368.7 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002263/0.05723, allocations: 1.677 MB / 370.3 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/0.05733, allocations: 193.3 kB / 370.5 MB, free: 10.08 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004294/0.05776, allocations: 272.5 kB / 370.8 MB, free: 9.816 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004948/0.06271, allocations: 4.35 MB / 375.1 MB, free: 4.812 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.292e-05/0.0628, allocations: 43.64 kB / 375.2 MB, free: 4.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002244/0.06302, allocations: 127.9 kB / 375.3 MB, free: 4.645 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001327/0.06435, allocations: 1.544 MB / 376.9 MB, free: 3.102 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003917/0.06826, allocations: 2.167 MB / 379 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02054/0.08881, allocations: 26.82 MB / 405.8 MB, free: 5.066 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003229/0.09204, allocations: 1.459 MB / 407.3 MB, free: 3.566 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005031/0.09254, allocations: 357.6 kB / 407.6 MB, free: 3.211 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005167/0.09771, allocations: 3.449 MB / 411.1 MB, free: 15.73 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.088e-05/0.09775, allocations: 47.56 kB / 411.1 MB, free: 15.68 MB / 394.7 MB Notification: Performance of pre-optimization done (n=137): time 4.869e-06/0.09775, allocations: 0 / 411.1 MB, free: 15.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=169): time 0.01768/0.1154, allocations: 7.307 MB / 418.4 MB, free: 8.324 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.835e-05/0.1155, allocations: 204.8 kB / 418.6 MB, free: 8.082 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002755/0.1183, allocations: 3.006 MB / 421.7 MB, free: 5.062 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001328/0.1184, allocations: 53.7 kB / 421.7 MB, free: 5.004 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001207/0.1196, allocations: 2.802 MB / 424.5 MB, free: 2.168 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004683/0.1201, allocations: 0.6745 MB / 425.2 MB, free: 1.488 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009024/0.121, allocations: 1.136 MB / 426.3 MB, free: 348 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.139e-05/0.121, allocations: 301.1 kB / 426.6 MB, free: 44 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001145/0.1222, allocations: 0.7621 MB / 427.4 MB, free: 15.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002768/0.1249, allocations: 4.368 MB / 431.7 MB, free: 9.051 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004851/0.1298, allocations: 5.589 MB / 437.3 MB, free: 1.625 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001031/0.1299, allocations: 36 kB / 437.4 MB, free: 1.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=783) (initialization): time 0.006684/0.1366, allocations: 4.378 MB / 441.7 MB, free: 13.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.219e-05/0.1366, allocations: 63.94 kB / 441.8 MB, free: 13.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001195/0.1368, allocations: 128 kB / 441.9 MB, free: 13.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002066/0.1388, allocations: 0.711 MB / 442.6 MB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002597/0.1414, allocations: 1.369 MB / 444 MB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003504/0.1449, allocations: 2.993 MB / 447 MB, free: 7.832 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002679/0.1476, allocations: 259.7 kB / 447.3 MB, free: 7.578 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000423/0.148, allocations: 312 kB / 447.6 MB, free: 7.273 MB / 426.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.001315/0.1493, allocations: 0.6146 MB / 448.2 MB, free: 6.645 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004048/0.1498, allocations: 211.8 kB / 448.4 MB, free: 6.438 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002007/0.1518, allocations: 1.207 MB / 449.6 MB, free: 5.207 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.93e-05/0.1518, allocations: 16 kB / 449.6 MB, free: 5.191 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.1518, allocations: 8 kB / 449.6 MB, free: 5.184 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.1518, allocations: 15.91 kB / 449.6 MB, free: 5.168 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005885/0.1577, allocations: 3.784 MB / 453.4 MB, free: 1.309 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.1577, allocations: 0 / 453.4 MB, free: 1.309 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005745/0.1583, allocations: 227.7 kB / 453.6 MB, free: 1.086 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001639/0.1599, allocations: 0.6938 MB / 454.3 MB, free: 396 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.459e-05/0.16, allocations: 24 kB / 454.4 MB, free: 372 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1785/0.3385, allocations: 2.582 MB / 456.9 MB, free: 119.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3385, allocations: 6.781 kB / 456.9 MB, free: 119.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003069/0.3416, allocations: 1.986 MB / 458.9 MB, free: 119.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005543/0.3421, allocations: 284.3 kB / 459.2 MB, free: 119.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002885/0.3424, allocations: 26.59 kB / 459.2 MB, free: 119.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006168/0.343, allocations: 37.84 kB / 459.3 MB, free: 119.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001952/0.3432, allocations: 106.5 kB / 459.4 MB, free: 119.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.609e-05/0.3433, allocations: 33.53 kB / 459.4 MB, free: 119.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001241/0.3445, allocations: 1.074 MB / 460.5 MB, free: 119 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3445, allocations: 0 / 460.5 MB, free: 119 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002836/0.3474, allocations: 0.9587 MB / 461.4 MB, free: 119 MB / 426.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.0003488/0.3477, allocations: 152.1 kB / 461.6 MB, free: 119 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002737/0.3505, allocations: 2.558 MB / 464.1 MB, free: 118.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001554/0.3506, allocations: 96.75 kB / 464.2 MB, free: 118.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000594/0.3512, allocations: 0.5969 MB / 464.8 MB, free: 118.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001525/0.3527, allocations: 0.5097 MB / 465.3 MB, free: 118.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007612/0.3604, allocations: 6.464 MB / 471.8 MB, free: 115.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009466/0.3613, allocations: 1.089 MB / 472.9 MB, free: 114.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00129/0.3626, allocations: 467 kB / 473.4 MB, free: 114.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006642/0.3633, allocations: 495.4 kB / 473.8 MB, free: 114.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.834e-06/0.3633, allocations: 0 / 473.8 MB, free: 114.1 MB / 426.7 MB Notification: Performance of Templates: time 0.04322/0.4065, allocations: 31.48 MB / 0.4935 GB, free: 84.92 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.06982798082754]