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.001077/0.001076, allocations: 111.5 kB / 17.06 MB, free: 5.973 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.001153/0.001154, allocations: 200 kB / 18.01 MB, free: 5.055 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.376/1.376, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001055, allocations: 51.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2852, allocations: 49.43 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01974/0.305, allocations: 17.29 MB / 418 MB, free: 7.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01329/0.3183, allocations: 5.478 MB / 423.5 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004321/0.3227, allocations: 119.6 kB / 423.6 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01/0.3328, allocations: 4.365 MB / 428 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008745/0.3416, allocations: 2.821 MB / 430.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003658/0.3453, allocations: 1.462 MB / 432.3 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01272/0.358, allocations: 8.476 MB / 440.7 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007782/0.3658, allocations: 5.375 MB / 446.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005365/0.3712, allocations: 2.667 MB / 448.8 MB, free: 8.621 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005749/0.377, allocations: 3.84 MB / 452.6 MB, free: 4.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001898/0.3789, allocations: 0.539 MB / 453.2 MB, free: 4.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004313/0.3833, allocations: 1.631 MB / 454.8 MB, free: 2.598 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005171/0.3885, allocations: 3.39 MB / 458.2 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00837/0.3969, allocations: 3.655 MB / 461.8 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01551/0.4124, allocations: 11.21 MB / 473.1 MB, free: 280 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.021e-05/0.4125, allocations: 3.984 kB / 473.1 MB, free: 276 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4125, allocations: 0 / 473.1 MB, free: 276 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004129/0.4129, allocations: 0 / 473.1 MB, free: 276 kB / 382.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.02168/0.4346, allocations: 8.206 MB / 481.3 MB, free: 7.977 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.4347, allocations: 12.03 kB / 481.3 MB, free: 7.965 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02613/0.4608, allocations: 3.681 MB / 485 MB, free: 4.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01427/0.4751, allocations: 5.398 MB / 490.4 MB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004382/0.4756, allocations: 373.5 kB / 490.7 MB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002703/0.4783, allocations: 0.5035 MB / 491.2 MB, free: 13.92 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03217/0.5105, allocations: 16.25 MB / 0.4956 GB, free: 12.6 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002375/0.5108, allocations: 83.31 kB / 0.4957 GB, free: 12.52 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007189/0.5115, allocations: 235.8 kB / 0.4959 GB, free: 12.29 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004309/0.5159, allocations: 2.927 MB / 0.4987 GB, free: 9.359 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02863/0.5445, allocations: 13.71 MB / 0.5121 GB, free: 11.63 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.3376/0.8821, allocations: 64.52 MB / 0.5751 GB, free: 86.52 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01947/0.9016, allocations: 7.865 MB / 0.5828 GB, free: 83.95 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005131/0.9068, allocations: 4.351 MB / 0.5871 GB, free: 81.6 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02445/0.9313, allocations: 19.36 MB / 0.606 GB, free: 64.27 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.68e-05/0.9313, allocations: 71.69 kB / 0.606 GB, free: 64.2 MB / 462.1 MB Notification: Performance of pre-optimization done (n=290): time 5.731e-06/0.9314, allocations: 3.938 kB / 0.606 GB, free: 64.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=372): time 0.1479/1.079, allocations: 49.84 MB / 0.6547 GB, free: 14.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001802/1.08, allocations: 273.8 kB / 0.655 GB, free: 13.97 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008206/1.088, allocations: 6.043 MB / 0.6609 GB, free: 7.918 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001092/1.089, allocations: 89.53 kB / 0.661 GB, free: 7.828 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002414/1.091, allocations: 4.663 MB / 0.6655 GB, free: 3.164 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001795/1.093, allocations: 1.371 MB / 0.6669 GB, free: 1.805 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002824/1.096, allocations: 1.916 MB / 0.6687 GB, free: 15.87 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/1.096, allocations: 301.1 kB / 0.669 GB, free: 15.57 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007137/1.103, allocations: 4.227 MB / 0.6731 GB, free: 11.34 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01265/1.116, allocations: 9.45 MB / 0.6824 GB, free: 15.34 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02119/1.137, allocations: 14.62 MB / 0.6967 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001722/1.137, allocations: 52 kB / 0.6967 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.04227/1.18, allocations: 17.55 MB / 0.7138 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002597/1.18, allocations: 87.94 kB / 0.7139 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003475/1.18, allocations: 180 kB / 0.7141 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0153/1.196, allocations: 4.548 MB / 0.7185 GB, free: 7.691 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0081/1.204, allocations: 2.133 MB / 0.7206 GB, free: 5.555 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2814/1.485, allocations: 25.35 MB / 0.7454 GB, free: 181.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007895/1.493, allocations: 0.5264 MB / 0.7459 GB, free: 181.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001868/1.495, allocations: 0.5448 MB / 0.7464 GB, free: 181.6 MB / 0.5294 GB 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.007623/1.503, allocations: 3.119 MB / 0.7495 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001748/1.504, allocations: 0.5688 MB / 0.75 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02084/1.525, allocations: 10.71 MB / 0.7605 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-05/1.525, allocations: 36.44 kB / 0.7605 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-05/1.525, allocations: 19.78 kB / 0.7605 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-05/1.525, allocations: 17 kB / 0.7606 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03287/1.558, allocations: 20.36 MB / 0.7804 GB, free: 168 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-05/1.558, allocations: 6.922 kB / 0.7804 GB, free: 168 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002664/1.561, allocations: 0.5421 MB / 0.781 GB, free: 167.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01186/1.573, allocations: 4.178 MB / 0.7851 GB, free: 163.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001049/1.574, allocations: 63.98 kB / 0.7851 GB, free: 163.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02626/1.6, allocations: 23.14 MB / 0.8077 GB, free: 140 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/1.6, allocations: 0 / 0.8077 GB, free: 140 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02373/1.624, allocations: 15.63 MB / 0.823 GB, free: 124.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00128/1.625, allocations: 0.5882 MB / 0.8236 GB, free: 124.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001157/1.627, allocations: 56 kB / 0.8236 GB, free: 124 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002895/1.629, allocations: 219.5 kB / 0.8238 GB, free: 123.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008522/1.63, allocations: 230.1 kB / 0.824 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000289/1.631, allocations: 97.95 kB / 0.8241 GB, free: 123.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004964/1.636, allocations: 3.769 MB / 0.8278 GB, free: 119.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.41e-07/1.636, allocations: 0 / 0.8278 GB, free: 119.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008693/1.644, allocations: 1.931 MB / 0.8297 GB, free: 117.8 MB / 0.5294 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 (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.0009051/1.645, allocations: 223.8 kB / 0.8299 GB, free: 117.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01321/1.658, allocations: 10.53 MB / 0.8402 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.375e-06/1.659, allocations: 3.828 kB / 0.8402 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004914/1.663, allocations: 4.124 MB / 0.8442 GB, free: 102.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00384/1.667, allocations: 0.7726 MB / 0.845 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02274/1.69, allocations: 16.21 MB / 0.8608 GB, free: 85.99 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004382/1.694, allocations: 4.863 MB / 0.8656 GB, free: 81.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005431/1.7, allocations: 2.797 MB / 0.8683 GB, free: 78.29 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001137/1.701, allocations: 383.4 kB / 0.8687 GB, free: 77.92 MB / 0.5294 GB Notification: Performance of SimCode: time 7.41e-07/1.701, allocations: 0 / 0.8687 GB, free: 77.92 MB / 0.5294 GB Notification: Performance of Templates: time 0.3384/2.04, allocations: 80.07 MB / 0.9469 GB, free: 171.6 MB / 0.5294 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/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