Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009788/0.0009788, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9819/0.9819, allocations: 173.3 MB / 201.1 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.553e-05/1.68e-05, allocations: 6.25 kB / 268 MB, free: 6.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01255/0.01256, allocations: 16.77 MB / 284.8 MB, free: 5.555 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009501/0.02206, allocations: 5.404 MB / 290.2 MB, free: 136 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.1177/0.1398, allocations: 140 kB / 290.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006348/0.1461, allocations: 4.692 MB / 295 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005128/0.1512, allocations: 2.95 MB / 298 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00189/0.1531, allocations: 1.665 MB / 299.6 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007403/0.1605, allocations: 9.728 MB / 309.4 MB, free: 10.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003797/0.1643, allocations: 5.608 MB / 315 MB, free: 6.816 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004208/0.1685, allocations: 5.199 MB / 320.2 MB, free: 2.156 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003381/0.1719, allocations: 4.435 MB / 324.6 MB, free: 14.04 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000817/0.1727, allocations: 0.5547 MB / 325.2 MB, free: 13.49 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003353/0.1761, allocations: 1.591 MB / 326.8 MB, free: 11.97 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003641/0.1797, allocations: 3.634 MB / 330.4 MB, free: 8.445 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003613/0.1833, allocations: 2.223 MB / 332.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009112/0.1925, allocations: 7.634 MB / 340.2 MB, free: 15.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1925, allocations: 0 / 340.2 MB, free: 15.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1925, allocations: 0 / 340.2 MB, free: 15.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003521/0.1928, allocations: 0 / 340.2 MB, free: 15.16 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.01338/0.2062, allocations: 9.006 MB / 349.3 MB, free: 6.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.2062, allocations: 12.92 kB / 349.3 MB, free: 6.219 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01402/0.2203, allocations: 4.461 MB / 353.7 MB, free: 1.805 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00723/0.2275, allocations: 4.111 MB / 357.8 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002734/0.2278, allocations: 369.7 kB / 358.2 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001122/0.2289, allocations: 0.5158 MB / 358.7 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01515/0.244, allocations: 10.34 MB / 369.1 MB, free: 1.574 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001587/0.2442, allocations: 77.75 kB / 369.1 MB, free: 1.527 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004229/0.2446, allocations: 238.5 kB / 369.4 MB, free: 1.348 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002495/0.2471, allocations: 2.85 MB / 372.2 MB, free: 14.53 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01243/0.2596, allocations: 5.663 MB / 377.9 MB, free: 8.859 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1794/0.439, allocations: 68.91 MB / 446.8 MB, free: 65.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01157/0.4505, allocations: 4.733 MB / 451.5 MB, free: 65.07 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001857/0.4524, allocations: 1.242 MB / 452.8 MB, free: 65.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0112/0.4636, allocations: 9.409 MB / 462.2 MB, free: 63.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.218e-05/0.4636, allocations: 69.92 kB / 462.2 MB, free: 63.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=259): time 4.999e-06/0.4636, allocations: 0 / 462.2 MB, free: 63.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=332): time 0.06571/0.5293, allocations: 31.05 MB / 493.3 MB, free: 43.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.783e-05/0.5294, allocations: 265.5 kB / 493.5 MB, free: 43.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005725/0.5351, allocations: 5.468 MB / 499 MB, free: 37.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003386/0.5355, allocations: 73.7 kB / 499.1 MB, free: 37.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002228/0.5377, allocations: 5.196 MB / 0.4925 GB, free: 33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001048/0.5387, allocations: 1.329 MB / 0.4938 GB, free: 31.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001967/0.5407, allocations: 1.996 MB / 0.4957 GB, free: 29.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.481e-05/0.5408, allocations: 484.7 kB / 0.4962 GB, free: 29.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002314/0.5431, allocations: 1.269 MB / 0.4974 GB, free: 27.94 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004415/0.5475, allocations: 9.395 MB / 0.5066 GB, free: 14.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008904/0.5564, allocations: 11.66 MB / 0.518 GB, free: 192 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001707/0.5566, allocations: 60 kB / 0.518 GB, free: 132 kB / 378.7 MB Notification: Performance of matching and sorting (n=1246) (initialization): time 0.01945/0.576, allocations: 10.38 MB / 0.5282 GB, free: 5.695 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.5761, allocations: 91.94 kB / 0.5283 GB, free: 5.605 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002005/0.5763, allocations: 192.2 kB / 0.5284 GB, free: 5.418 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00687/0.5832, allocations: 2.863 MB / 0.5312 GB, free: 2.547 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004831/0.588, allocations: 2.156 MB / 0.5333 GB, free: 396 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01135/0.5994, allocations: 8.982 MB / 0.5421 GB, free: 7.188 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005278/0.6046, allocations: 0.6704 MB / 0.5428 GB, free: 6.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001118/0.6058, allocations: 0.5352 MB / 0.5433 GB, free: 5.984 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 867 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1158): * Single equations (assignments): 1153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,29,100.0%), (4,32,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002778/0.6085, allocations: 0.9403 MB / 0.5442 GB, free: 5.035 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001139/0.6097, allocations: 0.6331 MB / 0.5448 GB, free: 4.398 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008378/0.6181, allocations: 4.737 MB / 0.5495 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.879e-05/0.6181, allocations: 32 kB / 0.5495 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.639e-05/0.6181, allocations: 12 kB / 0.5495 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/0.6181, allocations: 15.94 kB / 0.5495 GB, free: 15.53 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01969/0.6378, allocations: 11.41 MB / 0.5607 GB, free: 3.977 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/0.6378, allocations: 4 kB / 0.5607 GB, free: 3.973 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001267/0.6391, allocations: 0.4993 MB / 0.5611 GB, free: 3.473 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005861/0.645, allocations: 2.546 MB / 0.5636 GB, free: 0.918 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003219/0.6453, allocations: 60 kB / 0.5637 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009926/0.6552, allocations: 7.764 MB / 0.5713 GB, free: 8.855 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.807e-06/0.6552, allocations: 8 kB / 0.5713 GB, free: 8.848 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01085/0.6661, allocations: 6.262 MB / 0.5774 GB, free: 2.367 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001459/0.6675, allocations: 0.5509 MB / 0.5779 GB, free: 1.812 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007679/0.6683, allocations: 56 kB / 0.578 GB, free: 1.758 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001813/0.6701, allocations: 303.5 kB / 0.5783 GB, free: 1.461 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005223/0.6706, allocations: 221.4 kB / 0.5785 GB, free: 1.242 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001688/0.6708, allocations: 95.83 kB / 0.5786 GB, free: 1.152 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003925/0.6747, allocations: 2.395 MB / 0.5809 GB, free: 14.79 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6747, allocations: 0 / 0.5809 GB, free: 14.79 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00756/0.6823, allocations: 1.953 MB / 0.5828 GB, free: 12.83 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (255): * Single equations (assignments): 250 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,28,62.5%), (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.0006396/0.6829, allocations: 253.8 kB / 0.5831 GB, free: 12.58 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008318/0.6913, allocations: 5.476 MB / 0.5884 GB, free: 7.074 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/0.6913, allocations: 4 kB / 0.5884 GB, free: 7.07 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002404/0.6937, allocations: 1.847 MB / 0.5902 GB, free: 5.184 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00296/0.6966, allocations: 0.7141 MB / 0.5909 GB, free: 4.488 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1308/0.8275, allocations: 12.55 MB / 0.6032 GB, free: 175.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002333/0.8298, allocations: 1.997 MB / 0.6051 GB, free: 175.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003837/0.8336, allocations: 2.359 MB / 0.6074 GB, free: 175.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007877/0.8344, allocations: 369.8 kB / 0.6078 GB, free: 175.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.874e-06/0.8344, allocations: 0 / 0.6078 GB, free: 175.3 MB / 458.7 MB Notification: Performance of Templates: time 0.08217/0.9166, allocations: 70.49 MB / 0.6766 GB, free: 120.1 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.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: 5.1052385601215065]