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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 111.3 kB / 17.68 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001525/0.001525, allocations: 192 kB / 18.62 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001003/0.001003, allocations: 55.22 kB / 302.1 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09398/0.095, allocations: 49.45 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01733/0.1124, allocations: 17.29 MB / 368.8 MB, free: 2.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1678/0.2802, allocations: 5.465 MB / 374.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002956/0.2832, allocations: 117.6 kB / 374.4 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007772/0.291, allocations: 4.375 MB / 378.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006582/0.2976, allocations: 2.748 MB / 381.5 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002891/0.3006, allocations: 1.461 MB / 383 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01129/0.3119, allocations: 8.473 MB / 391.4 MB, free: 4.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006078/0.318, allocations: 5.366 MB / 396.8 MB, free: 1.906 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004091/0.3221, allocations: 2.677 MB / 399.5 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005018/0.3271, allocations: 3.836 MB / 403.3 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001137/0.3283, allocations: 0.5352 MB / 403.8 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003164/0.3315, allocations: 1.632 MB / 405.5 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002946/0.3344, allocations: 3.332 MB / 408.8 MB, free: 7.602 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00486/0.3393, allocations: 3.652 MB / 412.5 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01134/0.3507, allocations: 11.22 MB / 423.7 MB, free: 8.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.331e-06/0.3507, allocations: 0 / 423.7 MB, free: 8.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3507, allocations: 0 / 423.7 MB, free: 8.969 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002302/0.351, allocations: 0 / 423.7 MB, free: 8.969 MB / 334.1 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.0163/0.3673, allocations: 8.204 MB / 431.9 MB, free: 0.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.3673, allocations: 8.031 kB / 431.9 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02591/0.3932, allocations: 3.68 MB / 435.6 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01233/0.4056, allocations: 5.397 MB / 441 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000284/0.4059, allocations: 370.9 kB / 441.3 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001469/0.4074, allocations: 0.5169 MB / 441.9 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03081/0.4382, allocations: 16.24 MB / 458.1 MB, free: 5.805 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002689/0.4385, allocations: 79.3 kB / 458.2 MB, free: 5.727 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006817/0.4392, allocations: 235.2 kB / 458.4 MB, free: 5.551 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004431/0.4437, allocations: 2.929 MB / 461.3 MB, free: 2.633 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02722/0.4709, allocations: 13.7 MB / 475 MB, free: 4.91 MB / 382.1 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.07948/0.5504, allocations: 64.54 MB / 0.5269 GB, free: 2.82 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1821/0.7325, allocations: 7.855 MB / 0.5346 GB, free: 144.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005401/0.738, allocations: 4.345 MB / 0.5388 GB, free: 143 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0238/0.7618, allocations: 19.37 MB / 0.5578 GB, free: 133.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.623e-05/0.7619, allocations: 67.5 kB / 0.5578 GB, free: 133.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 4.638e-06/0.7619, allocations: 0 / 0.5578 GB, free: 133.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1477/0.9096, allocations: 49.81 MB / 0.6065 GB, free: 92.12 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.362e-05/0.9097, allocations: 273.8 kB / 0.6067 GB, free: 91.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008449/0.9182, allocations: 6.047 MB / 0.6126 GB, free: 85.74 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007774/0.919, allocations: 81.7 kB / 0.6127 GB, free: 85.66 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002305/0.9213, allocations: 4.666 MB / 0.6173 GB, free: 80.99 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001334/0.9227, allocations: 1.377 MB / 0.6186 GB, free: 79.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003598/0.9263, allocations: 1.908 MB / 0.6205 GB, free: 77.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.521e-05/0.9263, allocations: 305.1 kB / 0.6208 GB, free: 77.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005261/0.9316, allocations: 4.22 MB / 0.6249 GB, free: 73.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006858/0.9385, allocations: 9.456 MB / 0.6341 GB, free: 61.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01332/0.9518, allocations: 14.63 MB / 0.6484 GB, free: 43.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001366/0.952, allocations: 52 kB / 0.6485 GB, free: 43.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03108/0.9831, allocations: 17.55 MB / 0.6656 GB, free: 26.34 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001481/0.9832, allocations: 82.81 kB / 0.6657 GB, free: 26.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002101/0.9835, allocations: 184 kB / 0.6658 GB, free: 26.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01316/0.9966, allocations: 4.55 MB / 0.6703 GB, free: 21.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006721/1.003, allocations: 2.121 MB / 0.6724 GB, free: 19.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1866/1.19, allocations: 25.38 MB / 0.6971 GB, free: 120.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007314/1.197, allocations: 0.5199 MB / 0.6977 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001719/1.199, allocations: 0.5413 MB / 0.6982 GB, free: 120.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * 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 (1136): * Single equations (assignments): 1131 * 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,44,100.0%), (2,50,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005833/1.205, allocations: 3.124 MB / 0.7012 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001214/1.206, allocations: 0.5625 MB / 0.7018 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02258/1.229, allocations: 10.71 MB / 0.7122 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.537e-05/1.229, allocations: 38.17 kB / 0.7123 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.111e-05/1.229, allocations: 19.72 kB / 0.7123 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.706e-05/1.229, allocations: 16.45 kB / 0.7123 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03859/1.268, allocations: 20.36 MB / 0.7322 GB, free: 109.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.72e-05/1.268, allocations: 1.375 kB / 0.7322 GB, free: 109.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002851/1.27, allocations: 0.5377 MB / 0.7327 GB, free: 109.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0127/1.283, allocations: 4.192 MB / 0.7368 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007318/1.284, allocations: 59.09 kB / 0.7369 GB, free: 108.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02817/1.312, allocations: 23.13 MB / 0.7595 GB, free: 88.09 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/1.312, allocations: 0 / 0.7595 GB, free: 88.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02496/1.337, allocations: 15.63 MB / 0.7747 GB, free: 72.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001538/1.339, allocations: 0.5865 MB / 0.7753 GB, free: 72.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001703/1.34, allocations: 60 kB / 0.7754 GB, free: 72.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003441/1.344, allocations: 219.5 kB / 0.7756 GB, free: 71.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009223/1.345, allocations: 230.4 kB / 0.7758 GB, free: 71.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004315/1.345, allocations: 91.98 kB / 0.7759 GB, free: 71.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005656/1.351, allocations: 3.777 MB / 0.7796 GB, free: 67.87 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/1.351, allocations: 2 kB / 0.7796 GB, free: 67.87 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008275/1.359, allocations: 1.935 MB / 0.7815 GB, free: 65.94 MB / 446.1 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 (272): * Single equations (assignments): 267 * 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,43,100.0%), (1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008052/1.36, allocations: 223.8 kB / 0.7817 GB, free: 65.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01288/1.373, allocations: 10.52 MB / 0.7919 GB, free: 55.25 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/1.373, allocations: 0 / 0.7919 GB, free: 55.25 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004912/1.378, allocations: 4.126 MB / 0.796 GB, free: 51.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004676/1.383, allocations: 0.7729 MB / 0.7967 GB, free: 50.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02157/1.404, allocations: 16.22 MB / 0.8126 GB, free: 34.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005193/1.409, allocations: 4.863 MB / 0.8173 GB, free: 29.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005742/1.415, allocations: 2.789 MB / 0.82 GB, free: 26.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001322/1.417, allocations: 375.4 kB / 0.8204 GB, free: 26.14 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/1.417, allocations: 0 / 0.8204 GB, free: 26.14 MB / 446.1 MB Notification: Performance of Templates: time 0.2742/1.691, allocations: 77.05 MB / 0.8956 GB, free: 125.2 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (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=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches