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.001142/0.001142, allocations: 106.2 kB / 18.25 MB, free: 4.785 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.001065/0.001065, allocations: 195.3 kB / 19.19 MB, free: 3.859 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.398/1.398, allocations: 205.1 MB / 225 MB, free: 12.31 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.001342/0.001342, allocations: 48.3 kB / 281.3 MB, free: 3.191 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08722/0.08857, allocations: 46.64 MB / 328 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01832/0.1069, allocations: 17.34 MB / 345.3 MB, free: 3.051 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01203/0.119, allocations: 5.483 MB / 350.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003071/0.1222, allocations: 115.6 kB / 350.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008365/0.1306, allocations: 4.372 MB / 355.3 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007411/0.138, allocations: 2.754 MB / 358 MB, free: 6.285 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003906/0.142, allocations: 1.459 MB / 359.5 MB, free: 4.824 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01136/0.1534, allocations: 8.156 MB / 367.6 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008032/0.1614, allocations: 5.383 MB / 373 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005158/0.1666, allocations: 2.691 MB / 375.7 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005868/0.1725, allocations: 3.856 MB / 379.6 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001923/0.1745, allocations: 0.5391 MB / 380.1 MB, free: 88 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1783/0.3528, allocations: 1.61 MB / 381.7 MB, free: 20.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005763/0.3586, allocations: 3.345 MB / 385.1 MB, free: 20.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009154/0.3678, allocations: 3.665 MB / 388.7 MB, free: 19.06 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01635/0.3842, allocations: 10.9 MB / 399.6 MB, free: 17.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3843, allocations: 0 / 399.6 MB, free: 17.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3843, allocations: 3.125 kB / 399.6 MB, free: 17.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004237/0.3847, allocations: 3.094 kB / 399.6 MB, free: 17.52 MB / 318.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.02339/0.4081, allocations: 8.231 MB / 407.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.4082, allocations: 12.03 kB / 407.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02876/0.4369, allocations: 3.68 MB / 411.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01352/0.4505, allocations: 5.487 MB / 417 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002932/0.4508, allocations: 369 kB / 417.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002507/0.4534, allocations: 0.5217 MB / 417.9 MB, free: 8.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0326/0.486, allocations: 16.24 MB / 434.2 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000307/0.4863, allocations: 79.64 kB / 434.2 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001454/0.4878, allocations: 241.2 kB / 434.5 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005047/0.4928, allocations: 2.927 MB / 437.4 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03285/0.5257, allocations: 13.7 MB / 451.1 MB, free: 8.906 MB / 350.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.1022/0.628, allocations: 64.84 MB / 0.5038 GB, free: 7.039 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02448/0.6525, allocations: 7.869 MB / 0.5115 GB, free: 15.04 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007196/0.6597, allocations: 4.346 MB / 0.5158 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2136/0.8733, allocations: 19.36 MB / 0.5347 GB, free: 142 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.102e-05/0.8734, allocations: 61.52 kB / 0.5347 GB, free: 142 MB / 430.1 MB Notification: Performance of pre-optimization done (n=290): time 7.444e-06/0.8734, allocations: 3.844 kB / 0.5347 GB, free: 142 MB / 430.1 MB Notification: Performance of matching and sorting (n=372): time 0.1642/1.038, allocations: 49.93 MB / 0.5835 GB, free: 109.3 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/1.038, allocations: 277.8 kB / 0.5838 GB, free: 108.9 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007642/1.045, allocations: 6.087 MB / 0.5897 GB, free: 102.8 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001009/1.046, allocations: 85.7 kB / 0.5898 GB, free: 102.8 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002177/1.049, allocations: 4.674 MB / 0.5944 GB, free: 98.09 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001716/1.05, allocations: 1.373 MB / 0.5957 GB, free: 96.73 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002493/1.053, allocations: 1.916 MB / 0.5976 GB, free: 94.8 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.134e-05/1.053, allocations: 305.1 kB / 0.5979 GB, free: 94.5 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005202/1.058, allocations: 4.22 MB / 0.602 GB, free: 90.27 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007812/1.066, allocations: 9.455 MB / 0.6112 GB, free: 78.28 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01425/1.08, allocations: 14.64 MB / 0.6255 GB, free: 61.08 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/1.08, allocations: 52 kB / 0.6256 GB, free: 61.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03374/1.114, allocations: 17.55 MB / 0.6427 GB, free: 43.43 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001046/1.114, allocations: 80 kB / 0.6428 GB, free: 43.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001583/1.114, allocations: 184 kB / 0.6429 GB, free: 43.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01379/1.128, allocations: 4.563 MB / 0.6474 GB, free: 38.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007306/1.136, allocations: 2.117 MB / 0.6495 GB, free: 36.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04421/1.18, allocations: 25.39 MB / 0.6743 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009209/1.189, allocations: 0.5304 MB / 0.6748 GB, free: 10.29 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001879/1.191, allocations: 0.5351 MB / 0.6753 GB, free: 9.754 MB / 430.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.006741/1.198, allocations: 3.129 MB / 0.6784 GB, free: 6.613 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00145/1.199, allocations: 0.5669 MB / 0.6789 GB, free: 6.039 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1962/1.396, allocations: 10.7 MB / 0.6894 GB, free: 127.7 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.714e-05/1.396, allocations: 37.91 kB / 0.6894 GB, free: 127.7 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.861e-05/1.396, allocations: 21.31 kB / 0.6894 GB, free: 127.7 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.365e-05/1.396, allocations: 20.2 kB / 0.6894 GB, free: 127.7 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04096/1.437, allocations: 20.52 MB / 0.7095 GB, free: 120.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.343e-05/1.437, allocations: 0 / 0.7095 GB, free: 120.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002963/1.44, allocations: 0.5342 MB / 0.71 GB, free: 120.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01268/1.453, allocations: 4.198 MB / 0.7141 GB, free: 120.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009016/1.453, allocations: 61.69 kB / 0.7142 GB, free: 120.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02816/1.482, allocations: 23.15 MB / 0.7368 GB, free: 99.38 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/1.482, allocations: 0 / 0.7368 GB, free: 99.38 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02628/1.508, allocations: 15.63 MB / 0.752 GB, free: 84.01 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003771/1.512, allocations: 1.181 MB / 0.7532 GB, free: 83.12 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001566/1.513, allocations: 59.66 kB / 0.7532 GB, free: 83.06 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003528/1.517, allocations: 215.7 kB / 0.7534 GB, free: 82.85 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008319/1.518, allocations: 236.7 kB / 0.7537 GB, free: 82.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002843/1.518, allocations: 95.98 kB / 0.7538 GB, free: 82.53 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005814/1.524, allocations: 3.805 MB / 0.7575 GB, free: 78.73 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.61e-07/1.524, allocations: 0 / 0.7575 GB, free: 78.73 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01094/1.535, allocations: 1.935 MB / 0.7594 GB, free: 76.8 MB / 430.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.001372/1.536, allocations: 214.9 kB / 0.7596 GB, free: 76.6 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.02426/1.561, allocations: 15.43 MB / 0.7746 GB, free: 61.27 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/1.561, allocations: 0 / 0.7746 GB, free: 61.27 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00567/1.566, allocations: 4.127 MB / 0.7787 GB, free: 57.15 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005169/1.571, allocations: 0.7713 MB / 0.7794 GB, free: 56.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02857/1.6, allocations: 17.04 MB / 0.7961 GB, free: 39.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006383/1.607, allocations: 4.844 MB / 0.8008 GB, free: 34.53 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001936/1.608, allocations: 443.4 kB / 0.8012 GB, free: 34.09 MB / 430.1 MB Notification: Performance of SimCode: time 1.182e-06/1.609, allocations: 0 / 0.8012 GB, free: 34.09 MB / 430.1 MB Notification: Performance of Templates: time 0.3705/1.979, allocations: 153.6 MB / 0.9512 GB, free: 45.02 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches