Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001328/0.001328, allocations: 114.6 kB / 17.28 MB, free: 6.219 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.001514/0.001514, allocations: 189.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001073/0.001073, allocations: 47.92 kB / 280.2 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08661/0.08769, allocations: 46.63 MB / 326.8 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2389/0.3267, allocations: 73.22 MB / 400 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03177/0.3585, allocations: 14.6 MB / 414.6 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01533/0.3739, allocations: 324.1 kB / 414.9 MB, free: 3.734 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007052/0.381, allocations: 4.197 MB / 419.1 MB, free: 2.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007026/0.388, allocations: 2.576 MB / 421.7 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003074/0.3911, allocations: 1.378 MB / 423.1 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01096/0.4021, allocations: 8.375 MB / 431.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007909/0.4101, allocations: 5.673 MB / 437.1 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006093/0.4162, allocations: 2.762 MB / 439.9 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006391/0.4226, allocations: 4.269 MB / 444.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001299/0.424, allocations: 0.5429 MB / 444.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003532/0.4275, allocations: 1.63 MB / 446.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003759/0.4313, allocations: 3.408 MB / 449.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005183/0.4365, allocations: 3.693 MB / 453.4 MB, free: 4.938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01312/0.4496, allocations: 10.96 MB / 464.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.4497, allocations: 0 / 464.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4497, allocations: 0 / 464.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003993/0.4501, allocations: 0 / 464.4 MB, free: 10.23 MB / 366.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.01984/0.4699, allocations: 8.233 MB / 472.6 MB, free: 2.066 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.47, allocations: 8.031 kB / 472.6 MB, free: 2.059 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02878/0.4988, allocations: 3.676 MB / 476.3 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01246/0.5113, allocations: 5.487 MB / 481.8 MB, free: 8.871 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003137/0.5116, allocations: 372.3 kB / 482.2 MB, free: 8.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001843/0.5135, allocations: 0.5175 MB / 482.7 MB, free: 8.094 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03302/0.5465, allocations: 16.23 MB / 498.9 MB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002833/0.5468, allocations: 87.2 kB / 499 MB, free: 6.871 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009531/0.5478, allocations: 238.6 kB / 499.2 MB, free: 6.691 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004519/0.5523, allocations: 2.921 MB / 0.4904 GB, free: 3.781 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03067/0.583, allocations: 13.71 MB / 0.5038 GB, free: 6.055 MB / 414.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.35/0.9331, allocations: 64.84 MB / 0.5671 GB, free: 123.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02177/0.9549, allocations: 7.876 MB / 0.5748 GB, free: 121.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005467/0.9604, allocations: 4.342 MB / 0.579 GB, free: 119.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02459/0.985, allocations: 19.37 MB / 0.5979 GB, free: 108.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/0.9851, allocations: 61.06 kB / 0.598 GB, free: 108.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 6.883e-06/0.9851, allocations: 3.984 kB / 0.598 GB, free: 108.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1515/1.137, allocations: 49.91 MB / 0.6467 GB, free: 60.54 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.708e-05/1.137, allocations: 273.3 kB / 0.647 GB, free: 60.22 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006777/1.143, allocations: 6.098 MB / 0.6529 GB, free: 54.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008132/1.144, allocations: 81.7 kB / 0.653 GB, free: 54.03 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002032/1.146, allocations: 4.675 MB / 0.6576 GB, free: 49.35 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001129/1.147, allocations: 1.366 MB / 0.6589 GB, free: 48 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001986/1.149, allocations: 1.912 MB / 0.6608 GB, free: 46.07 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.548e-05/1.15, allocations: 313 kB / 0.6611 GB, free: 45.77 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004378/1.154, allocations: 4.223 MB / 0.6652 GB, free: 41.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006215/1.16, allocations: 9.456 MB / 0.6744 GB, free: 29.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01208/1.172, allocations: 14.63 MB / 0.6887 GB, free: 12.43 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.345e-05/1.172, allocations: 56 kB / 0.6888 GB, free: 12.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03212/1.204, allocations: 17.55 MB / 0.7059 GB, free: 10.78 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002195/1.205, allocations: 88.25 kB / 0.706 GB, free: 10.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002718/1.205, allocations: 180 kB / 0.7062 GB, free: 10.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01469/1.22, allocations: 4.558 MB / 0.7106 GB, free: 5.953 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007679/1.227, allocations: 2.129 MB / 0.7127 GB, free: 3.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.246/1.473, allocations: 25.39 MB / 0.7375 GB, free: 149.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008684/1.482, allocations: 0.5233 MB / 0.738 GB, free: 149.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002198/1.484, allocations: 0.5333 MB / 0.7385 GB, free: 149.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.00677/1.491, allocations: 3.129 MB / 0.7416 GB, free: 148.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00137/1.493, allocations: 0.5689 MB / 0.7421 GB, free: 148.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02085/1.513, allocations: 10.72 MB / 0.7526 GB, free: 145.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.418e-05/1.514, allocations: 34.62 kB / 0.7526 GB, free: 145.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.314e-05/1.514, allocations: 19.22 kB / 0.7527 GB, free: 145.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.519e-05/1.514, allocations: 16.45 kB / 0.7527 GB, free: 145.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03486/1.549, allocations: 20.53 MB / 0.7727 GB, free: 130.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.564e-05/1.549, allocations: 0 / 0.7727 GB, free: 130.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002706/1.551, allocations: 0.5411 MB / 0.7733 GB, free: 129.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01179/1.563, allocations: 4.196 MB / 0.7774 GB, free: 125.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007426/1.564, allocations: 66.72 kB / 0.7774 GB, free: 125.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02633/1.59, allocations: 23.12 MB / 0.8 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/1.59, allocations: 3.938 kB / 0.8 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02521/1.616, allocations: 15.63 MB / 0.8153 GB, free: 86.62 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003729/1.619, allocations: 1.182 MB / 0.8164 GB, free: 85.42 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001453/1.621, allocations: 56 kB / 0.8165 GB, free: 85.36 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002901/1.624, allocations: 215.7 kB / 0.8167 GB, free: 85.15 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007895/1.624, allocations: 230 kB / 0.8169 GB, free: 84.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002522/1.625, allocations: 95.98 kB / 0.817 GB, free: 84.84 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006037/1.631, allocations: 3.805 MB / 0.8207 GB, free: 81.04 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.71e-07/1.631, allocations: 0 / 0.8207 GB, free: 81.04 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01147/1.642, allocations: 1.939 MB / 0.8226 GB, free: 79.1 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.0009374/1.643, allocations: 220.3 kB / 0.8228 GB, free: 78.89 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02668/1.67, allocations: 15.44 MB / 0.8379 GB, free: 63.53 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.224e-05/1.67, allocations: 0 / 0.8379 GB, free: 63.53 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00712/1.677, allocations: 4.109 MB / 0.8419 GB, free: 59.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006764/1.684, allocations: 0.7752 MB / 0.8427 GB, free: 58.64 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03087/1.715, allocations: 19.72 MB / 0.8619 GB, free: 38.91 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006199/1.721, allocations: 4.875 MB / 0.8667 GB, free: 34.01 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007498/1.729, allocations: 2.793 MB / 0.8694 GB, free: 31.21 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00129/1.73, allocations: 379.4 kB / 0.8698 GB, free: 30.84 MB / 462.1 MB Notification: Performance of SimCode: time 1.202e-06/1.73, allocations: 4 kB / 0.8698 GB, free: 30.83 MB / 462.1 MB Notification: Performance of Templates: time 0.3545/2.085, allocations: 84.89 MB / 0.9527 GB, free: 102.3 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches