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.001507/0.001507, allocations: 109.4 kB / 16.92 MB, free: 5.762 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.001762/0.001763, allocations: 191.3 kB / 17.85 MB, free: 5.172 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.321/1.321, allocations: 222.9 MB / 241.5 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 48.05 kB / 300.6 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1056, allocations: 49.45 MB / 350.1 MB, free: 4.391 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01836/0.124, allocations: 17.29 MB / 367.3 MB, free: 3.016 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.185/0.309, allocations: 5.471 MB / 372.8 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003387/0.3124, allocations: 117.9 kB / 372.9 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008229/0.3207, allocations: 4.374 MB / 377.3 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007039/0.3278, allocations: 2.748 MB / 380.1 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003278/0.3311, allocations: 1.463 MB / 381.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01267/0.3438, allocations: 8.46 MB / 390 MB, free: 4.859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007516/0.3513, allocations: 5.382 MB / 395.4 MB, free: 1.781 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004751/0.3561, allocations: 2.669 MB / 398 MB, free: 468 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005446/0.3616, allocations: 3.838 MB / 401.9 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001759/0.3634, allocations: 0.5352 MB / 402.4 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003971/0.3673, allocations: 1.632 MB / 404 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003959/0.3713, allocations: 3.323 MB / 407.4 MB, free: 7.672 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005581/0.3769, allocations: 3.655 MB / 411 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01153/0.3885, allocations: 10.89 MB / 421.9 MB, free: 9.371 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3885, allocations: 0 / 421.9 MB, free: 9.371 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3885, allocations: 0 / 421.9 MB, free: 9.371 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002632/0.3888, allocations: 0 / 421.9 MB, free: 9.371 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.02116/0.4099, allocations: 8.21 MB / 430.1 MB, free: 1.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.41, allocations: 12.02 kB / 430.1 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0307/0.4407, allocations: 3.676 MB / 433.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01182/0.4526, allocations: 5.298 MB / 439.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002698/0.4529, allocations: 374 kB / 439.5 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00151/0.4544, allocations: 0.5156 MB / 440 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02872/0.4831, allocations: 16.24 MB / 456.2 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002042/0.4834, allocations: 83.28 kB / 456.3 MB, free: 6.215 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000612/0.484, allocations: 240.2 kB / 456.5 MB, free: 6.035 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00431/0.4883, allocations: 2.919 MB / 459.5 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02815/0.5165, allocations: 13.7 MB / 473.2 MB, free: 5.402 MB / 382.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.08946/0.6059, allocations: 64.81 MB / 0.5254 GB, free: 3.047 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2057/0.8117, allocations: 7.858 MB / 0.533 GB, free: 143 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005341/0.8171, allocations: 4.342 MB / 0.5373 GB, free: 141.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02387/0.8409, allocations: 19.38 MB / 0.5562 GB, free: 131.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/0.841, allocations: 62.25 kB / 0.5563 GB, free: 131.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 4.939e-06/0.841, allocations: 0 / 0.5563 GB, free: 131.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1527/0.9938, allocations: 49.84 MB / 0.6049 GB, free: 90.55 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.243e-05/0.9939, allocations: 273.8 kB / 0.6052 GB, free: 90.22 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00646/1, allocations: 6.047 MB / 0.6111 GB, free: 84.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006577/1.001, allocations: 81.7 kB / 0.6112 GB, free: 84.08 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001901/1.003, allocations: 4.663 MB / 0.6157 GB, free: 79.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001499/1.004, allocations: 1.373 MB / 0.6171 GB, free: 78.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002143/1.007, allocations: 1.912 MB / 0.6189 GB, free: 76.13 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.491e-05/1.007, allocations: 309.1 kB / 0.6192 GB, free: 75.82 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004536/1.011, allocations: 4.223 MB / 0.6233 GB, free: 71.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005873/1.017, allocations: 9.449 MB / 0.6326 GB, free: 59.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01167/1.029, allocations: 14.62 MB / 0.6469 GB, free: 42.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.93e-05/1.029, allocations: 52 kB / 0.6469 GB, free: 42.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.0282/1.057, allocations: 17.55 MB / 0.664 GB, free: 24.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.714e-05/1.057, allocations: 84 kB / 0.6641 GB, free: 24.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000156/1.057, allocations: 181.8 kB / 0.6643 GB, free: 24.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01283/1.07, allocations: 4.562 MB / 0.6687 GB, free: 19.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006415/1.077, allocations: 2.129 MB / 0.6708 GB, free: 17.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1878/1.264, allocations: 25.4 MB / 0.6956 GB, free: 135.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007521/1.272, allocations: 0.5245 MB / 0.6961 GB, free: 135.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001604/1.274, allocations: 0.5364 MB / 0.6967 GB, free: 135.1 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.00581/1.28, allocations: 3.124 MB / 0.6997 GB, free: 134 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001197/1.281, allocations: 0.5636 MB / 0.7003 GB, free: 134 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02078/1.302, allocations: 10.71 MB / 0.7107 GB, free: 130.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.937e-05/1.302, allocations: 45.81 kB / 0.7108 GB, free: 130.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.072e-05/1.302, allocations: 19.55 kB / 0.7108 GB, free: 130.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.014e-05/1.302, allocations: 20.22 kB / 0.7108 GB, free: 130.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03478/1.336, allocations: 20.51 MB / 0.7308 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.593e-05/1.337, allocations: 0 / 0.7308 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002982/1.34, allocations: 0.5425 MB / 0.7314 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01254/1.352, allocations: 4.194 MB / 0.7355 GB, free: 122.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006479/1.353, allocations: 63.67 kB / 0.7355 GB, free: 122.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02724/1.38, allocations: 23.13 MB / 0.7581 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/1.38, allocations: 2.719 kB / 0.7581 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.025/1.405, allocations: 15.64 MB / 0.7734 GB, free: 87.55 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001536/1.407, allocations: 0.5894 MB / 0.774 GB, free: 87.08 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001757/1.408, allocations: 56 kB / 0.774 GB, free: 87.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00356/1.412, allocations: 215.7 kB / 0.7742 GB, free: 86.81 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001033/1.413, allocations: 235.8 kB / 0.7744 GB, free: 86.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004587/1.414, allocations: 95.98 kB / 0.7745 GB, free: 86.49 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004945/1.418, allocations: 3.769 MB / 0.7782 GB, free: 82.73 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.61e-07/1.419, allocations: 0 / 0.7782 GB, free: 82.73 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007225/1.426, allocations: 1.927 MB / 0.7801 GB, free: 80.8 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.0005842/1.426, allocations: 223.9 kB / 0.7803 GB, free: 80.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02226/1.449, allocations: 15.42 MB / 0.7954 GB, free: 65.25 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/1.449, allocations: 0 / 0.7954 GB, free: 65.25 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005416/1.454, allocations: 4.126 MB / 0.7994 GB, free: 61.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004442/1.459, allocations: 0.7808 MB / 0.8002 GB, free: 60.34 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0241/1.483, allocations: 16.41 MB / 0.8162 GB, free: 43.97 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006829/1.49, allocations: 4.863 MB / 0.8209 GB, free: 39.08 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00752/1.497, allocations: 2.785 MB / 0.8237 GB, free: 36.29 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00168/1.499, allocations: 379.4 kB / 0.824 GB, free: 35.91 MB / 462.1 MB Notification: Performance of SimCode: time 1.292e-06/1.499, allocations: 0 / 0.824 GB, free: 35.91 MB / 462.1 MB Notification: Performance of Templates: time 0.2887/1.788, allocations: 84.72 MB / 0.9068 GB, free: 112.5 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