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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0008434/0.0008434, allocations: 179.4 kB / 17.04 MB, free: 5.113 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 8.827/8.827, allocations: 223.3 MB / 241 MB, free: 10.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009052/0.009052, allocations: 103.8 kB / 292.2 MB, free: 10.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002126/0.0002126, allocations: 11.94 kB / 351.8 MB, free: 15.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1905/0.1907, allocations: 50.41 MB / 402.2 MB, free: 32.52 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.04763/0.2384, allocations: 66.38 MB / 468.6 MB, free: 13.96 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02692/0.2653, allocations: 13.99 MB / 482.6 MB, free: 15.94 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009101/0.2745, allocations: 319.2 kB / 482.9 MB, free: 15.62 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0086/0.2831, allocations: 3.421 MB / 486.3 MB, free: 12.19 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02201/0.3051, allocations: 10.21 MB / 496.5 MB, free: 1.945 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004349/0.3095, allocations: 1.291 MB / 497.8 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.2369/0.5464, allocations: 64.48 MB / 0.5491 GB, free: 5.016 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006469/0.5529, allocations: 6.374 MB / 0.5553 GB, free: 488 kB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00281/0.5557, allocations: 2.244 MB / 0.5575 GB, free: 14.94 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003954/0.5597, allocations: 3.677 MB / 0.5611 GB, free: 12.28 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007599/0.5604, allocations: 248 kB / 0.5614 GB, free: 12.04 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002235/0.5627, allocations: 1.204 MB / 0.5625 GB, free: 11.07 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002472/0.5652, allocations: 2.98 MB / 0.5654 GB, free: 8.895 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001162/0.5663, allocations: 1.309 MB / 0.5667 GB, free: 8.418 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006653/0.573, allocations: 8.526 MB / 0.5751 GB, free: 1.008 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.573, allocations: 3.375 kB / 0.5751 GB, free: 1.008 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.573, allocations: 0 / 0.5751 GB, free: 1.008 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001946/0.5732, allocations: 0 / 0.5751 GB, free: 1.008 MB / 394.7 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.01192/0.5852, allocations: 6.901 MB / 0.5818 GB, free: 10.61 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.02e-05/0.5852, allocations: 12.03 kB / 0.5818 GB, free: 10.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02473/0.6099, allocations: 3.763 MB / 0.5855 GB, free: 6.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01036/0.6203, allocations: 5.188 MB / 0.5905 GB, free: 3.051 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001986/0.6206, allocations: 370.2 kB / 0.5909 GB, free: 2.852 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008763/0.6214, allocations: 0.511 MB / 0.5914 GB, free: 2.516 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02183/0.6433, allocations: 16.27 MB / 0.6073 GB, free: 5.633 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001426/0.6434, allocations: 76.83 kB / 0.6074 GB, free: 5.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005041/0.6439, allocations: 247.5 kB / 0.6076 GB, free: 5.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003884/0.6478, allocations: 2.921 MB / 0.6104 GB, free: 3.105 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02185/0.6697, allocations: 13.71 MB / 0.6238 GB, free: 9.43 MB / 442.7 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.2516/0.9213, allocations: 64.78 MB / 0.6871 GB, free: 156 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01925/0.9406, allocations: 7.959 MB / 0.6949 GB, free: 155.3 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004292/0.945, allocations: 4.343 MB / 0.6991 GB, free: 155.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02108/0.9661, allocations: 19.36 MB / 0.718 GB, free: 145.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/0.9661, allocations: 66.59 kB / 0.7181 GB, free: 145.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=290): time 4.248e-06/0.9661, allocations: 0 / 0.7181 GB, free: 145.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=372): time 0.1353/1.101, allocations: 50.47 MB / 0.7674 GB, free: 96.06 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.386e-05/1.102, allocations: 269.8 kB / 0.7676 GB, free: 95.74 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005801/1.107, allocations: 6.008 MB / 0.7735 GB, free: 89.72 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002664/1.108, allocations: 85.7 kB / 0.7736 GB, free: 89.63 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001774/1.109, allocations: 4.673 MB / 0.7781 GB, free: 84.96 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007779/1.11, allocations: 1.371 MB / 0.7795 GB, free: 83.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003615/1.111, allocations: 196 kB / 0.7797 GB, free: 83.41 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002928/1.111, allocations: 0.7112 MB / 0.7804 GB, free: 82.69 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004444/1.115, allocations: 4.184 MB / 0.7844 GB, free: 78.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006027/1.121, allocations: 9.419 MB / 0.7936 GB, free: 66.61 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006009/1.127, allocations: 6.072 MB / 0.7996 GB, free: 60.68 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-05/1.127, allocations: 52 kB / 0.7996 GB, free: 60.63 MB / 490.7 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.02586/1.153, allocations: 17.5 MB / 0.8167 GB, free: 43.51 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001115/1.153, allocations: 84.94 kB / 0.8168 GB, free: 43.43 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001956/1.154, allocations: 180 kB / 0.817 GB, free: 43.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01228/1.166, allocations: 4.608 MB / 0.8215 GB, free: 38.63 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005615/1.172, allocations: 2.129 MB / 0.8235 GB, free: 36.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02751/1.199, allocations: 23.73 MB / 0.8467 GB, free: 12.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006239/1.205, allocations: 0.5279 MB / 0.8472 GB, free: 11.97 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009734/1.206, allocations: 0.539 MB / 0.8478 GB, free: 11.43 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(2,100.0%) 50} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004224/1.211, allocations: 3.118 MB / 0.8508 GB, free: 8.301 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00093/1.211, allocations: 0.5631 MB / 0.8514 GB, free: 7.73 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01978/1.231, allocations: 10.74 MB / 0.8618 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.191e-05/1.231, allocations: 37.8 kB / 0.8619 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.889e-05/1.231, allocations: 23.95 kB / 0.8619 GB, free: 12.87 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.248e-05/1.231, allocations: 15.94 kB / 0.8619 GB, free: 12.85 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2086/1.44, allocations: 20.52 MB / 0.882 GB, free: 188.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.972e-05/1.44, allocations: 1.359 kB / 0.882 GB, free: 188.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002306/1.442, allocations: 0.5388 MB / 0.8825 GB, free: 188.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01165/1.454, allocations: 4.214 MB / 0.8866 GB, free: 188.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003146/1.454, allocations: 62.05 kB / 0.8867 GB, free: 188.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02407/1.478, allocations: 21.54 MB / 0.9077 GB, free: 179.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/1.478, allocations: 7.891 kB / 0.9077 GB, free: 179.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02324/1.502, allocations: 15.63 MB / 0.923 GB, free: 167.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/1.503, allocations: 0.5989 MB / 0.9236 GB, free: 167.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001377/1.505, allocations: 61.22 kB / 0.9236 GB, free: 167.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003318/1.508, allocations: 219.7 kB / 0.9238 GB, free: 167 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007162/1.509, allocations: 230.1 kB / 0.924 GB, free: 166.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003711/1.509, allocations: 99.77 kB / 0.9241 GB, free: 166.7 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005922/1.515, allocations: 3.734 MB / 0.9278 GB, free: 162.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.91e-07/1.515, allocations: 3.312 kB / 0.9278 GB, free: 162.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007231/1.522, allocations: 1.93 MB / 0.9297 GB, free: 161 MB / 0.4948 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006512/1.523, allocations: 222.6 kB / 0.9299 GB, free: 160.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01258/1.535, allocations: 10.46 MB / 0.9401 GB, free: 150.4 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/1.536, allocations: 0 / 0.9401 GB, free: 150.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00463/1.54, allocations: 4.122 MB / 0.9441 GB, free: 146.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00434/1.545, allocations: 0.731 MB / 0.9448 GB, free: 145.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02126/1.566, allocations: 19.55 MB / 0.9639 GB, free: 126.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004151/1.57, allocations: 4.831 MB / 0.9686 GB, free: 121.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001231/1.571, allocations: 455.3 kB / 0.9691 GB, free: 121 MB / 0.4948 GB Notification: Performance of SimCode: time 2.21e-07/1.571, allocations: 0 / 0.9691 GB, free: 121 MB / 0.4948 GB Notification: Performance of Templates: time 0.3103/1.881, allocations: 152.5 MB / 1.118 GB, free: 149 MB / 0.4948 GB 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","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches