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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001285/0.001285, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001413/0.001413, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 62.8 kB / 306.9 MB, free: 0.6562 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09757/0.09872, allocations: 50.53 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.1825/0.2813, allocations: 17.24 MB / 374.7 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01362/0.2949, allocations: 5.488 MB / 380.2 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002877/0.2979, allocations: 117.4 kB / 380.3 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007351/0.3053, allocations: 4.359 MB / 384.7 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006595/0.3119, allocations: 2.701 MB / 387.4 MB, free: 5.953 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002951/0.3148, allocations: 1.466 MB / 388.8 MB, free: 5.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01087/0.3257, allocations: 8.646 MB / 397.5 MB, free: 1.371 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005793/0.3316, allocations: 5.371 MB / 402.9 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00487/0.3365, allocations: 2.66 MB / 405.5 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005514/0.342, allocations: 3.828 MB / 409.3 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001442/0.3435, allocations: 0.5352 MB / 409.9 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003837/0.3473, allocations: 1.604 MB / 411.5 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003442/0.3508, allocations: 3.312 MB / 414.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005351/0.3561, allocations: 3.627 MB / 418.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.012/0.3681, allocations: 10.8 MB / 429.2 MB, free: 3.566 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3682, allocations: 7.938 kB / 429.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3682, allocations: 0 / 429.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.00031/0.3685, allocations: 0 / 429.2 MB, free: 3.559 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.01785/0.3864, allocations: 8.199 MB / 437.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.3864, allocations: 8.031 kB / 437.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02989/0.4163, allocations: 3.673 MB / 441.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01233/0.4287, allocations: 5.177 MB / 446.3 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004137/0.4292, allocations: 373.5 kB / 446.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001923/0.4311, allocations: 0.515 MB / 447.2 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03021/0.4613, allocations: 16.26 MB / 463.4 MB, free: 116 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002145/0.4616, allocations: 87.2 kB / 463.5 MB, free: 28 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007383/0.4623, allocations: 235.8 kB / 463.7 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004944/0.4673, allocations: 2.923 MB / 466.7 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02885/0.4961, allocations: 13.73 MB / 480.4 MB, free: 15.11 MB / 398.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.2583/0.7544, allocations: 64.81 MB / 0.5324 GB, free: 124.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02404/0.7785, allocations: 7.861 MB / 0.5401 GB, free: 123.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005406/0.784, allocations: 4.353 MB / 0.5443 GB, free: 123.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02786/0.8119, allocations: 19.46 MB / 0.5634 GB, free: 113.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.671e-05/0.8119, allocations: 63.56 kB / 0.5634 GB, free: 113.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 4.989e-06/0.8119, allocations: 0 / 0.5634 GB, free: 113.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1513/0.9633, allocations: 49.84 MB / 0.6121 GB, free: 73.84 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.485e-05/0.9634, allocations: 277.2 kB / 0.6123 GB, free: 73.51 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006739/0.9701, allocations: 6.042 MB / 0.6182 GB, free: 67.46 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008533/0.971, allocations: 77.7 kB / 0.6183 GB, free: 67.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002038/0.9731, allocations: 4.665 MB / 0.6229 GB, free: 62.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001257/0.9743, allocations: 1.373 MB / 0.6242 GB, free: 61.35 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002285/0.9766, allocations: 1.916 MB / 0.6261 GB, free: 59.42 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.353e-05/0.9767, allocations: 301.1 kB / 0.6264 GB, free: 59.12 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00507/0.9818, allocations: 4.227 MB / 0.6305 GB, free: 54.89 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007421/0.9892, allocations: 9.466 MB / 0.6397 GB, free: 42.96 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01338/1.003, allocations: 14.65 MB / 0.654 GB, free: 25.85 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001111/1.003, allocations: 56 kB / 0.6541 GB, free: 25.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03069/1.033, allocations: 17.57 MB / 0.6713 GB, free: 8.184 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001101/1.034, allocations: 80 kB / 0.6713 GB, free: 8.105 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001452/1.034, allocations: 184 kB / 0.6715 GB, free: 7.926 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01308/1.047, allocations: 4.554 MB / 0.676 GB, free: 3.363 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006733/1.054, allocations: 2.133 MB / 0.678 GB, free: 1.227 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2042/1.258, allocations: 25.39 MB / 0.7028 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006869/1.265, allocations: 0.53 MB / 0.7033 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001176/1.266, allocations: 0.5388 MB / 0.7039 GB, free: 146.3 MB / 478.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.00556/1.271, allocations: 3.119 MB / 0.7069 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001563/1.273, allocations: 0.5634 MB / 0.7075 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02282/1.296, allocations: 10.72 MB / 0.7179 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.995e-05/1.296, allocations: 39.34 kB / 0.718 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-05/1.296, allocations: 18.86 kB / 0.718 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.281e-05/1.296, allocations: 15.47 kB / 0.718 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03439/1.33, allocations: 20.52 MB / 0.7381 GB, free: 134.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.217e-05/1.331, allocations: 0 / 0.7381 GB, free: 134.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002674/1.333, allocations: 0.5437 MB / 0.7386 GB, free: 134.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0122/1.345, allocations: 4.189 MB / 0.7427 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005986/1.346, allocations: 68.86 kB / 0.7427 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02711/1.373, allocations: 23.12 MB / 0.7653 GB, free: 113 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.373, allocations: 4 kB / 0.7653 GB, free: 113 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02462/1.398, allocations: 15.65 MB / 0.7806 GB, free: 97.58 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001773/1.4, allocations: 0.5927 MB / 0.7812 GB, free: 97.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001163/1.401, allocations: 56.98 kB / 0.7812 GB, free: 97.05 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002871/1.404, allocations: 229.7 kB / 0.7815 GB, free: 96.83 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009082/1.405, allocations: 222.2 kB / 0.7817 GB, free: 96.61 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002905/1.405, allocations: 91.98 kB / 0.7818 GB, free: 96.52 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006368/1.411, allocations: 3.776 MB / 0.7854 GB, free: 92.75 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.411, allocations: 1.125 kB / 0.7854 GB, free: 92.75 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008968/1.42, allocations: 1.905 MB / 0.7873 GB, free: 90.85 MB / 478.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.0008201/1.421, allocations: 215.5 kB / 0.7875 GB, free: 90.64 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02326/1.444, allocations: 15.45 MB / 0.8026 GB, free: 75.27 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.774e-06/1.444, allocations: 0 / 0.8026 GB, free: 75.27 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005033/1.45, allocations: 4.128 MB / 0.8066 GB, free: 71.12 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004064/1.454, allocations: 0.7727 MB / 0.8074 GB, free: 70.37 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02534/1.479, allocations: 16.42 MB / 0.8234 GB, free: 53.98 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00717/1.486, allocations: 4.851 MB / 0.8282 GB, free: 49.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.008205/1.494, allocations: 2.789 MB / 0.8309 GB, free: 46.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001733/1.496, allocations: 375.4 kB / 0.8312 GB, free: 45.93 MB / 478.1 MB Notification: Performance of SimCode: time 1.092e-06/1.496, allocations: 0 / 0.8312 GB, free: 45.93 MB / 478.1 MB Notification: Performance of Templates: time 0.2898/1.786, allocations: 84.46 MB / 0.9137 GB, free: 125.6 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (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) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches