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.0007855/0.0007856, allocations: 91.23 kB / 16.65 MB, free: 6.598 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.0008324/0.0008325, allocations: 177.6 kB / 17.56 MB, free: 6.203 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.342/1.342, allocations: 223.3 MB / 241.6 MB, free: 14.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002476/0.0002478, allocations: 4 kB / 301.4 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0913/0.09156, allocations: 50.41 MB / 351.8 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2412/0.3328, allocations: 71.39 MB / 423.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0352/0.368, allocations: 14.62 MB / 437.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01784/0.3859, allocations: 323.2 kB / 438.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002613/0.3886, allocations: 0.6373 MB / 438.8 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007785/0.3964, allocations: 2.604 MB / 441.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002914/0.3993, allocations: 1.346 MB / 442.8 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01767/0.417, allocations: 11.87 MB / 454.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01588/0.4329, allocations: 7.119 MB / 461.7 MB, free: 6.129 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005846/0.4388, allocations: 2.066 MB / 463.8 MB, free: 4.055 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008832/0.4477, allocations: 3.687 MB / 467.5 MB, free: 364 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001393/0.4491, allocations: 248 kB / 467.7 MB, free: 116 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004795/0.4539, allocations: 1.424 MB / 469.2 MB, free: 14.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005499/0.4594, allocations: 3.023 MB / 472.2 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007002/0.4665, allocations: 3.281 MB / 475.5 MB, free: 8.348 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01753/0.484, allocations: 10.44 MB / 485.9 MB, free: 13.87 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4841, allocations: 0 / 485.9 MB, free: 13.87 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.567e-06/0.4841, allocations: 4 kB / 485.9 MB, free: 13.87 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002241/0.4843, allocations: 0 / 485.9 MB, free: 13.87 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.01375/0.4981, allocations: 6.815 MB / 492.7 MB, free: 6.969 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.4981, allocations: 8.031 kB / 492.7 MB, free: 6.961 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03076/0.5289, allocations: 3.759 MB / 496.5 MB, free: 3.188 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01215/0.5411, allocations: 5.286 MB / 0.49 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003169/0.5414, allocations: 373.5 kB / 0.4904 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001327/0.5427, allocations: 0.5228 MB / 0.4909 GB, free: 12.93 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02776/0.5705, allocations: 16.29 MB / 0.5068 GB, free: 11.57 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000179/0.5707, allocations: 83.3 kB / 0.5069 GB, free: 11.49 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005859/0.5713, allocations: 239.8 kB / 0.5071 GB, free: 11.25 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004485/0.5758, allocations: 2.919 MB / 0.51 GB, free: 8.328 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02513/0.601, allocations: 13.77 MB / 0.5234 GB, free: 10.53 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.2425/0.8435, allocations: 64.81 MB / 0.5867 GB, free: 102.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0217/0.8653, allocations: 7.981 MB / 0.5945 GB, free: 98.45 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005348/0.8706, allocations: 4.348 MB / 0.5987 GB, free: 96.09 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02456/0.8952, allocations: 19.36 MB / 0.6176 GB, free: 77.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.872e-05/0.8953, allocations: 64.56 kB / 0.6177 GB, free: 77.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 6.703e-06/0.8954, allocations: 0 / 0.6177 GB, free: 77.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1643/1.06, allocations: 50.52 MB / 0.667 GB, free: 26.95 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/1.06, allocations: 273.1 kB / 0.6673 GB, free: 26.62 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007181/1.067, allocations: 6.05 MB / 0.6732 GB, free: 20.56 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008521/1.068, allocations: 82.64 kB / 0.6733 GB, free: 20.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002398/1.07, allocations: 4.668 MB / 0.6778 GB, free: 15.81 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001463/1.072, allocations: 1.375 MB / 0.6792 GB, free: 14.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009739/1.073, allocations: 0.8163 MB / 0.68 GB, free: 13.62 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.3e-05/1.073, allocations: 305.1 kB / 0.6803 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005784/1.079, allocations: 4.224 MB / 0.6844 GB, free: 9.09 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009195/1.088, allocations: 9.457 MB / 0.6936 GB, free: 13.08 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2322/1.32, allocations: 14.63 MB / 0.7079 GB, free: 145.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002006/1.32, allocations: 51.81 kB / 0.708 GB, free: 145.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.04198/1.362, allocations: 17.59 MB / 0.7251 GB, free: 141.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.514e-05/1.362, allocations: 83.16 kB / 0.7252 GB, free: 141.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001798/1.363, allocations: 183.1 kB / 0.7254 GB, free: 141.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01429/1.377, allocations: 4.583 MB / 0.7299 GB, free: 140.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007378/1.384, allocations: 2.135 MB / 0.732 GB, free: 140.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03017/1.415, allocations: 23.74 MB / 0.7551 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007739/1.422, allocations: 0.5286 MB / 0.7557 GB, free: 122 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001397/1.424, allocations: 0.5321 MB / 0.7562 GB, free: 121.4 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.00526/1.429, allocations: 3.124 MB / 0.7592 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001121/1.43, allocations: 0.5648 MB / 0.7598 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02137/1.451, allocations: 10.76 MB / 0.7703 GB, free: 107.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.047e-05/1.452, allocations: 44.77 kB / 0.7703 GB, free: 107.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.555e-05/1.452, allocations: 16 kB / 0.7703 GB, free: 107.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.394e-05/1.452, allocations: 19.94 kB / 0.7704 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03792/1.49, allocations: 20.55 MB / 0.7904 GB, free: 86.69 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-05/1.49, allocations: 0 / 0.7904 GB, free: 86.69 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002988/1.493, allocations: 0.5344 MB / 0.791 GB, free: 86.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01373/1.506, allocations: 4.217 MB / 0.7951 GB, free: 81.93 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008037/1.507, allocations: 63.98 kB / 0.7951 GB, free: 81.87 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02745/1.535, allocations: 21.57 MB / 0.8162 GB, free: 60.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/1.535, allocations: 3.938 kB / 0.8162 GB, free: 60.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02675/1.562, allocations: 15.67 MB / 0.8315 GB, free: 44.35 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001771/1.563, allocations: 0.5952 MB / 0.8321 GB, free: 43.73 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0016/1.565, allocations: 57.98 kB / 0.8321 GB, free: 43.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003431/1.568, allocations: 223.7 kB / 0.8324 GB, free: 43.46 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000938/1.569, allocations: 232.3 kB / 0.8326 GB, free: 43.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002639/1.57, allocations: 99.92 kB / 0.8327 GB, free: 43.13 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004904/1.575, allocations: 3.773 MB / 0.8364 GB, free: 39.36 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.202e-06/1.575, allocations: 0 / 0.8364 GB, free: 39.36 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009539/1.584, allocations: 1.934 MB / 0.8382 GB, free: 37.44 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.0008124/1.585, allocations: 223.3 kB / 0.8385 GB, free: 37.22 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01442/1.599, allocations: 10.51 MB / 0.8487 GB, free: 26.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-05/1.599, allocations: 0 / 0.8487 GB, free: 26.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00561/1.605, allocations: 4.125 MB / 0.8527 GB, free: 22.55 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005227/1.61, allocations: 0.7307 MB / 0.8535 GB, free: 21.82 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2215/1.832, allocations: 19.72 MB / 0.8727 GB, free: 139.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009454/1.841, allocations: 4.86 MB / 0.8775 GB, free: 138.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007872/1.849, allocations: 2.788 MB / 0.8802 GB, free: 138.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001389/1.851, allocations: 386.9 kB / 0.8806 GB, free: 138.4 MB / 462.1 MB Notification: Performance of SimCode: time 7.01e-07/1.851, allocations: 0 / 0.8806 GB, free: 138.4 MB / 462.1 MB Notification: Performance of Templates: time 0.1199/1.971, allocations: 80.15 MB / 0.9588 GB, free: 77.95 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","/var/lib/jenkins/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