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.001519/0.001519, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001682/0.001682, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.315/1.315, allocations: 222.9 MB / 241.1 MB, free: 13.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000924/0.000924, allocations: 39.03 kB / 299.9 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08082/0.08176, allocations: 49.46 MB / 349.4 MB, free: 4.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2459/0.3277, allocations: 73.16 MB / 422.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03498/0.3627, allocations: 14.69 MB / 437.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01381/0.3766, allocations: 331.1 kB / 437.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008053/0.3847, allocations: 4.351 MB / 441.9 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006513/0.3912, allocations: 2.589 MB / 444.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002958/0.3942, allocations: 1.35 MB / 445.9 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01286/0.4071, allocations: 11.89 MB / 457.8 MB, free: 8.266 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006904/0.414, allocations: 5.282 MB / 463.1 MB, free: 2.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003889/0.418, allocations: 2.406 MB / 465.5 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005799/0.4238, allocations: 4.093 MB / 469.6 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00189/0.4257, allocations: 388 kB / 469.9 MB, free: 12.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003802/0.4295, allocations: 1.556 MB / 471.5 MB, free: 10.47 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004009/0.4336, allocations: 3.218 MB / 474.7 MB, free: 7.246 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00567/0.4392, allocations: 3.51 MB / 478.2 MB, free: 3.715 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01129/0.4506, allocations: 10.74 MB / 488.9 MB, free: 8.941 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.4506, allocations: 0 / 488.9 MB, free: 8.941 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4506, allocations: 4 kB / 489 MB, free: 8.938 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002888/0.4509, allocations: 0 / 489 MB, free: 8.938 MB / 398.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.01619/0.4671, allocations: 8.214 MB / 497.2 MB, free: 0.6406 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.4672, allocations: 8.031 kB / 497.2 MB, free: 0.6328 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02729/0.4945, allocations: 3.67 MB / 0.4891 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01179/0.5063, allocations: 5.298 MB / 0.4943 GB, free: 7.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003192/0.5067, allocations: 369.5 kB / 0.4946 GB, free: 7.207 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001909/0.5086, allocations: 0.5112 MB / 0.4951 GB, free: 6.695 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02899/0.5376, allocations: 16.24 MB / 0.511 GB, free: 5.383 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002068/0.5378, allocations: 83.22 kB / 0.5111 GB, free: 5.301 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007127/0.5385, allocations: 231.8 kB / 0.5113 GB, free: 5.074 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004422/0.543, allocations: 2.927 MB / 0.5142 GB, free: 2.141 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02782/0.5708, allocations: 13.71 MB / 0.5275 GB, free: 4.406 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.248/0.8189, allocations: 64.81 MB / 0.5908 GB, free: 102 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02093/0.8398, allocations: 7.862 MB / 0.5985 GB, free: 97.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005309/0.8452, allocations: 4.349 MB / 0.6028 GB, free: 92.92 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0275/0.8727, allocations: 19.36 MB / 0.6217 GB, free: 73.14 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.954e-05/0.8728, allocations: 72.5 kB / 0.6217 GB, free: 73.05 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 5.21e-06/0.8728, allocations: 0 / 0.6217 GB, free: 73.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1608/1.034, allocations: 49.82 MB / 0.6704 GB, free: 23.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.118e-05/1.034, allocations: 273.8 kB / 0.6706 GB, free: 22.77 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009226/1.043, allocations: 6.05 MB / 0.6766 GB, free: 16.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007908/1.044, allocations: 81.7 kB / 0.6766 GB, free: 16.62 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002054/1.046, allocations: 4.669 MB / 0.6812 GB, free: 11.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001357/1.047, allocations: 1.369 MB / 0.6825 GB, free: 10.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002227/1.049, allocations: 1.916 MB / 0.6844 GB, free: 8.566 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.107e-05/1.05, allocations: 301.1 kB / 0.6847 GB, free: 8.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004989/1.055, allocations: 4.22 MB / 0.6888 GB, free: 4.043 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00896/1.063, allocations: 9.453 MB / 0.698 GB, free: 8.035 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.201/1.264, allocations: 14.62 MB / 0.7123 GB, free: 142.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001684/1.265, allocations: 51.25 kB / 0.7124 GB, free: 142.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03666/1.301, allocations: 17.56 MB / 0.7295 GB, free: 137.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001405/1.302, allocations: 85.09 kB / 0.7296 GB, free: 137.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002497/1.302, allocations: 178.8 kB / 0.7298 GB, free: 137.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01338/1.315, allocations: 4.547 MB / 0.7342 GB, free: 136.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006833/1.322, allocations: 2.133 MB / 0.7363 GB, free: 136.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02878/1.351, allocations: 23.64 MB / 0.7594 GB, free: 118 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006717/1.358, allocations: 0.5245 MB / 0.7599 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001006/1.359, allocations: 0.5351 MB / 0.7604 GB, free: 117 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.003727/1.362, allocations: 3.129 MB / 0.7635 GB, free: 114 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008425/1.363, allocations: 0.5621 MB / 0.764 GB, free: 113.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01923/1.382, allocations: 10.71 MB / 0.7745 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.257e-05/1.383, allocations: 36 kB / 0.7745 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.682e-05/1.383, allocations: 20 kB / 0.7745 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-05/1.383, allocations: 23.92 kB / 0.7746 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03451/1.417, allocations: 20.49 MB / 0.7946 GB, free: 82.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.052e-05/1.417, allocations: 0 / 0.7946 GB, free: 82.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002659/1.42, allocations: 0.5382 MB / 0.7951 GB, free: 81.85 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0125/1.432, allocations: 4.184 MB / 0.7992 GB, free: 77.65 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008882/1.433, allocations: 63.98 kB / 0.7992 GB, free: 77.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0251/1.458, allocations: 21.49 MB / 0.8202 GB, free: 55.86 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/1.459, allocations: 3.938 kB / 0.8202 GB, free: 55.86 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02429/1.483, allocations: 15.62 MB / 0.8355 GB, free: 40.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001444/1.484, allocations: 0.5938 MB / 0.8361 GB, free: 39.54 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008416/1.485, allocations: 56 kB / 0.8361 GB, free: 39.49 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002624/1.488, allocations: 215.7 kB / 0.8363 GB, free: 39.28 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007938/1.489, allocations: 230.1 kB / 0.8366 GB, free: 39.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002693/1.489, allocations: 99.92 kB / 0.8366 GB, free: 38.95 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004494/1.493, allocations: 3.769 MB / 0.8403 GB, free: 35.19 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.8e-07/1.493, allocations: 0 / 0.8403 GB, free: 35.19 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007287/1.501, allocations: 1.928 MB / 0.8422 GB, free: 33.27 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.0006935/1.501, allocations: 227.4 kB / 0.8424 GB, free: 33.05 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01309/1.514, allocations: 10.5 MB / 0.8527 GB, free: 22.54 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/1.515, allocations: 0 / 0.8527 GB, free: 22.54 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005236/1.52, allocations: 4.121 MB / 0.8567 GB, free: 18.39 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004399/1.524, allocations: 0.7403 MB / 0.8574 GB, free: 17.66 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1935/1.718, allocations: 19.62 MB / 0.8766 GB, free: 136.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007233/1.725, allocations: 4.861 MB / 0.8813 GB, free: 135.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007326/1.732, allocations: 2.787 MB / 0.884 GB, free: 135.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001431/1.734, allocations: 378.5 kB / 0.8844 GB, free: 135.2 MB / 462.1 MB Notification: Performance of SimCode: time 8.52e-07/1.734, allocations: 0 / 0.8844 GB, free: 135.2 MB / 462.1 MB Notification: Performance of Templates: time 0.1245/1.858, allocations: 81.47 MB / 0.964 GB, free: 73.49 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