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.001555/0.001555, allocations: 114 kB / 17.17 MB, free: 6.082 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.001636/0.001636, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.391/1.391, allocations: 222.9 MB / 241.8 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 51.52 kB / 300.6 MB, free: 6.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1386, allocations: 49.45 MB / 350.1 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2915/0.4301, allocations: 73.17 MB / 423.2 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03583/0.466, allocations: 14.7 MB / 437.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01549/0.4815, allocations: 323.2 kB / 438.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008952/0.4906, allocations: 4.347 MB / 442.6 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007491/0.4981, allocations: 2.588 MB / 445.2 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003392/0.5015, allocations: 1.354 MB / 446.5 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01415/0.5157, allocations: 11.89 MB / 458.4 MB, free: 8.391 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008615/0.5243, allocations: 5.288 MB / 463.7 MB, free: 3.047 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005003/0.5294, allocations: 2.402 MB / 466.1 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006396/0.5358, allocations: 4.093 MB / 470.2 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002021/0.5379, allocations: 392 kB / 470.6 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004734/0.5426, allocations: 1.548 MB / 472.1 MB, free: 10.6 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005213/0.5479, allocations: 3.226 MB / 475.4 MB, free: 7.363 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007016/0.5549, allocations: 3.51 MB / 478.9 MB, free: 3.832 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0108/0.5657, allocations: 8.716 MB / 487.6 MB, free: 11.1 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.5658, allocations: 3.938 kB / 487.6 MB, free: 11.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.5658, allocations: 0 / 487.6 MB, free: 11.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004569/0.5663, allocations: 4 kB / 487.6 MB, free: 11.09 MB / 398.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.02169/0.588, allocations: 8.214 MB / 495.8 MB, free: 2.789 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.588, allocations: 12.03 kB / 495.8 MB, free: 2.777 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02883/0.6169, allocations: 3.673 MB / 499.5 MB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0138/0.6307, allocations: 5.286 MB / 0.493 GB, free: 9.723 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004438/0.6312, allocations: 369.5 kB / 0.4933 GB, free: 9.359 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002383/0.6336, allocations: 0.5112 MB / 0.4938 GB, free: 8.848 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03373/0.6674, allocations: 16.24 MB / 0.5097 GB, free: 7.543 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000319/0.6677, allocations: 87.19 kB / 0.5097 GB, free: 7.457 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00155/0.6693, allocations: 239.8 kB / 0.51 GB, free: 7.223 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004793/0.6741, allocations: 2.923 MB / 0.5128 GB, free: 4.293 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03146/0.7056, allocations: 13.72 MB / 0.5262 GB, free: 6.555 MB / 446.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.2588/0.9645, allocations: 64.81 MB / 0.5895 GB, free: 102.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02036/0.9849, allocations: 7.859 MB / 0.5972 GB, free: 98.36 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005233/0.9901, allocations: 4.352 MB / 0.6014 GB, free: 94.56 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0269/1.017, allocations: 19.36 MB / 0.6203 GB, free: 74.79 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.175e-05/1.017, allocations: 76.48 kB / 0.6204 GB, free: 74.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 1.802e-05/1.017, allocations: 0 / 0.6204 GB, free: 74.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1655/1.183, allocations: 49.82 MB / 0.6691 GB, free: 24.76 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.806e-05/1.183, allocations: 277.7 kB / 0.6693 GB, free: 24.43 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007366/1.19, allocations: 6.047 MB / 0.6752 GB, free: 18.37 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009641/1.191, allocations: 81.7 kB / 0.6753 GB, free: 18.29 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002354/1.194, allocations: 4.672 MB / 0.6799 GB, free: 13.61 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00167/1.195, allocations: 1.376 MB / 0.6812 GB, free: 12.22 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0024/1.198, allocations: 1.908 MB / 0.6831 GB, free: 10.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.418e-05/1.198, allocations: 305.1 kB / 0.6834 GB, free: 9.996 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00514/1.203, allocations: 4.22 MB / 0.6875 GB, free: 5.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008859/1.212, allocations: 9.457 MB / 0.6967 GB, free: 9.762 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2383/1.45, allocations: 14.62 MB / 0.711 GB, free: 143.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001378/1.45, allocations: 51.09 kB / 0.7111 GB, free: 143.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03675/1.487, allocations: 17.55 MB / 0.7282 GB, free: 138.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.701e-05/1.487, allocations: 83.12 kB / 0.7283 GB, free: 138.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001684/1.487, allocations: 183.5 kB / 0.7284 GB, free: 138.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01365/1.501, allocations: 4.542 MB / 0.7329 GB, free: 138.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006769/1.508, allocations: 2.127 MB / 0.735 GB, free: 137.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02863/1.536, allocations: 23.64 MB / 0.7581 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008008/1.544, allocations: 0.533 MB / 0.7586 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001905/1.546, allocations: 0.533 MB / 0.7591 GB, free: 118.7 MB / 462.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.006716/1.553, allocations: 3.132 MB / 0.7622 GB, free: 115.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001474/1.555, allocations: 0.5589 MB / 0.7627 GB, free: 115.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02076/1.575, allocations: 10.7 MB / 0.7732 GB, free: 104.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-05/1.575, allocations: 36 kB / 0.7732 GB, free: 104.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.911e-05/1.576, allocations: 23.94 kB / 0.7732 GB, free: 104.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.376e-05/1.576, allocations: 19.92 kB / 0.7732 GB, free: 104.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04252/1.618, allocations: 20.51 MB / 0.7933 GB, free: 84.12 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.876e-05/1.618, allocations: 0 / 0.7933 GB, free: 84.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002971/1.621, allocations: 0.5382 MB / 0.7938 GB, free: 83.58 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01329/1.635, allocations: 4.187 MB / 0.7979 GB, free: 79.38 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001019/1.636, allocations: 63.98 kB / 0.7979 GB, free: 79.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0295/1.665, allocations: 21.48 MB / 0.8189 GB, free: 57.59 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/1.665, allocations: 7.875 kB / 0.8189 GB, free: 57.58 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03031/1.696, allocations: 15.62 MB / 0.8342 GB, free: 41.88 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001909/1.698, allocations: 0.5874 MB / 0.8347 GB, free: 41.27 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002291/1.7, allocations: 60 kB / 0.8348 GB, free: 41.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004278/1.704, allocations: 215.7 kB / 0.835 GB, free: 41 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001393/1.706, allocations: 226.1 kB / 0.8352 GB, free: 40.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004204/1.706, allocations: 105.3 kB / 0.8353 GB, free: 40.67 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006235/1.712, allocations: 3.769 MB / 0.839 GB, free: 36.91 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.91e-07/1.712, allocations: 0 / 0.839 GB, free: 36.91 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0106/1.723, allocations: 1.935 MB / 0.8409 GB, free: 34.98 MB / 462.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.001412/1.724, allocations: 226.3 kB / 0.8411 GB, free: 34.76 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01598/1.74, allocations: 10.5 MB / 0.8514 GB, free: 24.25 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/1.74, allocations: 0 / 0.8514 GB, free: 24.25 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005755/1.746, allocations: 4.114 MB / 0.8554 GB, free: 20.11 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006235/1.752, allocations: 0.7299 MB / 0.8561 GB, free: 19.38 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2597/2.012, allocations: 20.19 MB / 0.8758 GB, free: 136.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01082/2.023, allocations: 4.837 MB / 0.8805 GB, free: 136 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003287/2.026, allocations: 446.8 kB / 0.881 GB, free: 135.9 MB / 462.1 MB Notification: Performance of SimCode: time 2.024e-06/2.026, allocations: 2.812 kB / 0.881 GB, free: 135.9 MB / 462.1 MB Notification: Performance of Templates: time 0.2187/2.245, allocations: 153.3 MB / 1.031 GB, free: 5.617 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 -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