Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002059/0.002059, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002501/0.002501, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 177 MB / 204.4 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.194e-06/2.194e-06, allocations: 0 / 272.2 MB, free: 1.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.444e-05/3.663e-05, allocations: 2.312 kB / 272.2 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.02227/0.02231, allocations: 14.93 MB / 287.2 MB, free: 2.793 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1607/0.183, allocations: 5.263 MB / 292.4 MB, free: 14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004853/0.1879, allocations: 139.2 kB / 292.6 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01045/0.1983, allocations: 4.535 MB / 297.1 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008436/0.2067, allocations: 2.904 MB / 300 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003685/0.2104, allocations: 1.656 MB / 301.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01106/0.2215, allocations: 10.06 MB / 311.7 MB, free: 7.809 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005304/0.2268, allocations: 5.587 MB / 317.3 MB, free: 2.648 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005995/0.2328, allocations: 4.123 MB / 321.4 MB, free: 14.77 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007927/0.2407, allocations: 4.448 MB / 325.9 MB, free: 10.64 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001697/0.2424, allocations: 0.5586 MB / 326.4 MB, free: 10.09 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003697/0.2461, allocations: 1.601 MB / 328 MB, free: 8.535 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004537/0.2506, allocations: 3.591 MB / 331.6 MB, free: 5.051 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004225/0.2549, allocations: 2.205 MB / 333.8 MB, free: 2.941 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01755/0.2724, allocations: 11.47 MB / 345.3 MB, free: 7.777 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.2724, allocations: 0 / 345.3 MB, free: 7.777 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2724, allocations: 0 / 345.3 MB, free: 7.777 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0004045/0.2728, allocations: 0 / 345.3 MB, free: 7.777 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.02628/0.2991, allocations: 8.497 MB / 353.8 MB, free: 15.21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.2992, allocations: 15.98 kB / 353.8 MB, free: 15.2 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03248/0.3316, allocations: 4.635 MB / 358.4 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01465/0.3463, allocations: 5.196 MB / 363.6 MB, free: 5.273 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004502/0.3467, allocations: 374.4 kB / 364 MB, free: 4.906 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002179/0.3489, allocations: 0.5113 MB / 364.5 MB, free: 4.395 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03737/0.3863, allocations: 16.56 MB / 381.1 MB, free: 2.727 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002701/0.3866, allocations: 79.45 kB / 381.1 MB, free: 2.648 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001006/0.3876, allocations: 243.7 kB / 381.4 MB, free: 2.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005873/0.3934, allocations: 2.934 MB / 384.3 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03321/0.4266, allocations: 13.79 MB / 398.1 MB, free: 1.664 MB / 346.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.2317/0.6583, allocations: 60.96 MB / 459.1 MB, free: 80.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02076/0.6791, allocations: 7.401 MB / 466.5 MB, free: 79.4 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004554/0.6836, allocations: 4.064 MB / 470.5 MB, free: 77.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02401/0.7077, allocations: 16.91 MB / 487.4 MB, free: 69.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.299e-05/0.7077, allocations: 67.75 kB / 487.5 MB, free: 69.01 MB / 378.7 MB Notification: Performance of pre-optimization done (n=294): time 6.171e-06/0.7077, allocations: 0 / 487.5 MB, free: 69.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=377): time 0.2046/0.9123, allocations: 70.98 MB / 0.5454 GB, free: 14.25 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002288/0.9126, allocations: 277.8 kB / 0.5457 GB, free: 13.92 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01057/0.9231, allocations: 6.061 MB / 0.5516 GB, free: 7.879 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001051/0.9242, allocations: 84.89 kB / 0.5517 GB, free: 7.793 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005342/0.9295, allocations: 4.829 MB / 0.5564 GB, free: 2.984 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00262/0.9321, allocations: 1.428 MB / 0.5578 GB, free: 1.574 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003808/0.936, allocations: 1.898 MB / 0.5596 GB, free: 15.67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.9361, allocations: 305.1 kB / 0.5599 GB, free: 15.37 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008894/0.945, allocations: 4.606 MB / 0.5644 GB, free: 10.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1572/1.102, allocations: 9.9 MB / 0.5741 GB, free: 134.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01921/1.121, allocations: 15.39 MB / 0.5891 GB, free: 124.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002219/1.122, allocations: 54.31 kB / 0.5892 GB, free: 124.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=1252) (initialization): time 0.0405/1.162, allocations: 20.37 MB / 0.6091 GB, free: 118.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001259/1.162, allocations: 82.31 kB / 0.6091 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002225/1.163, allocations: 177.2 kB / 0.6093 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02263/1.185, allocations: 7.764 MB / 0.6169 GB, free: 112.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007117/1.192, allocations: 2.121 MB / 0.619 GB, free: 109.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03804/1.23, allocations: 30.84 MB / 0.6491 GB, free: 79.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009845/1.24, allocations: 0.6968 MB / 0.6498 GB, free: 78.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001953/1.242, allocations: 0.5273 MB / 0.6503 GB, free: 77.92 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 819 * 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 (1126): * Single equations (assignments): 1121 * 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 {(2,47,100.0%), (2,53,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005165/1.247, allocations: 3.123 MB / 0.6533 GB, free: 74.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001899/1.249, allocations: 0.6535 MB / 0.654 GB, free: 74.55 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0267/1.276, allocations: 13.18 MB / 0.6668 GB, free: 61.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.81e-05/1.276, allocations: 36 kB / 0.6669 GB, free: 61.26 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.846e-05/1.276, allocations: 23.94 kB / 0.6669 GB, free: 61.24 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.114e-05/1.276, allocations: 19.92 kB / 0.6669 GB, free: 61.22 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04495/1.321, allocations: 22.23 MB / 0.6886 GB, free: 39.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.778e-05/1.321, allocations: 3.984 kB / 0.6886 GB, free: 39.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002853/1.324, allocations: 0.5422 MB / 0.6891 GB, free: 38.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02294/1.347, allocations: 7.394 MB / 0.6964 GB, free: 31.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009522/1.348, allocations: 66.06 kB / 0.6964 GB, free: 31.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1987/1.546, allocations: 28.38 MB / 0.7241 GB, free: 127.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/1.546, allocations: 1.156 kB / 0.7242 GB, free: 127.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0352/1.582, allocations: 18.85 MB / 0.7426 GB, free: 121.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001738/1.583, allocations: 0.5558 MB / 0.7431 GB, free: 121.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002008/1.585, allocations: 67.27 kB / 0.7432 GB, free: 121.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004614/1.59, allocations: 400.2 kB / 0.7435 GB, free: 121.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001494/1.592, allocations: 244.4 kB / 0.7438 GB, free: 121.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004221/1.592, allocations: 92.23 kB / 0.7439 GB, free: 121.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005218/1.597, allocations: 3.591 MB / 0.7474 GB, free: 120.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/1.597, allocations: 0 / 0.7474 GB, free: 120.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.009663/1.607, allocations: 2.251 MB / 0.7496 GB, free: 120.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (271): * Single equations (assignments): 266 * 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 {(2,46,100.0%), (1,39,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008706/1.608, allocations: 229.7 kB / 0.7498 GB, free: 119.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01458/1.622, allocations: 10.9 MB / 0.7604 GB, free: 111.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/1.622, allocations: 0 / 0.7604 GB, free: 111.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006088/1.628, allocations: 4.281 MB / 0.7646 GB, free: 107.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00474/1.633, allocations: 0.7242 MB / 0.7653 GB, free: 106.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02376/1.657, allocations: 16.9 MB / 0.7818 GB, free: 89.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005358/1.662, allocations: 4.386 MB / 0.7861 GB, free: 85.58 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00604/1.668, allocations: 2.734 MB / 0.7888 GB, free: 82.94 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001643/1.67, allocations: 376.4 kB / 0.7891 GB, free: 82.57 MB / 410.7 MB Notification: Performance of SimCode: time 2.164e-06/1.67, allocations: 0 / 0.7891 GB, free: 82.57 MB / 410.7 MB Notification: Performance of Templates: time 0.2518/1.922, allocations: 90.51 MB / 0.8775 GB, free: 117.1 MB / 410.7 MB " [Timeout remaining time 658] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.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.956686082994565]