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.001206/0.001206, allocations: 107 kB / 17.74 MB, free: 5.359 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.001262/0.001262, allocations: 188.5 kB / 18.66 MB, free: 4.438 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.381/1.381, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001058/0.001058, allocations: 51.92 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2964, allocations: 49.43 MB / 401.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01653/0.313, allocations: 17.3 MB / 418.7 MB, free: 7.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01138/0.3244, allocations: 5.47 MB / 424.2 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003491/0.3279, allocations: 119.6 kB / 424.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007851/0.3358, allocations: 4.361 MB / 428.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007636/0.3435, allocations: 2.746 MB / 431.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003494/0.347, allocations: 1.466 MB / 432.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01292/0.36, allocations: 8.464 MB / 441.3 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007481/0.3675, allocations: 5.379 MB / 446.7 MB, free: 11.37 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005641/0.3732, allocations: 2.659 MB / 449.4 MB, free: 8.703 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006293/0.3795, allocations: 3.844 MB / 453.2 MB, free: 4.848 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00187/0.3814, allocations: 0.5352 MB / 453.8 MB, free: 4.312 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004143/0.3856, allocations: 1.639 MB / 455.4 MB, free: 2.672 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004045/0.3896, allocations: 3.386 MB / 458.8 MB, free: 15.28 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005686/0.3954, allocations: 3.651 MB / 462.4 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01311/0.4085, allocations: 11.23 MB / 473.7 MB, free: 348 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.4085, allocations: 0 / 473.7 MB, free: 348 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.4086, allocations: 0 / 473.7 MB, free: 348 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003339/0.4089, allocations: 0 / 473.7 MB, free: 348 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.01985/0.4288, allocations: 8.202 MB / 481.9 MB, free: 8.051 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.4288, allocations: 12.03 kB / 481.9 MB, free: 8.039 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02875/0.4576, allocations: 3.669 MB / 485.5 MB, free: 4.355 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0148/0.4724, allocations: 5.398 MB / 490.9 MB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004761/0.4729, allocations: 373.5 kB / 491.3 MB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003034/0.476, allocations: 0.5112 MB / 491.8 MB, free: 14 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03703/0.5131, allocations: 16.24 MB / 0.4962 GB, free: 12.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003979/0.5135, allocations: 79.3 kB / 0.4962 GB, free: 12.61 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001908/0.5154, allocations: 243.8 kB / 0.4965 GB, free: 12.37 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005226/0.5207, allocations: 2.915 MB / 0.4993 GB, free: 9.449 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03116/0.5519, allocations: 13.72 MB / 0.5127 GB, free: 11.71 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.3303/0.8822, allocations: 64.53 MB / 0.5757 GB, free: 86.46 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02079/0.903, allocations: 7.874 MB / 0.5834 GB, free: 83.88 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005082/0.9081, allocations: 4.346 MB / 0.5877 GB, free: 81.54 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02752/0.9357, allocations: 19.36 MB / 0.6066 GB, free: 64.29 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.362e-05/0.9359, allocations: 64.11 kB / 0.6066 GB, free: 64.22 MB / 462.1 MB Notification: Performance of pre-optimization done (n=290): time 7.965e-06/0.9359, allocations: 0 / 0.6066 GB, free: 64.22 MB / 462.1 MB Notification: Performance of matching and sorting (n=372): time 0.1648/1.101, allocations: 49.83 MB / 0.6553 GB, free: 14.33 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001522/1.101, allocations: 285.7 kB / 0.6556 GB, free: 13.99 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01008/1.111, allocations: 6.047 MB / 0.6615 GB, free: 7.934 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009774/1.112, allocations: 81.7 kB / 0.6615 GB, free: 7.848 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00274/1.115, allocations: 4.671 MB / 0.6661 GB, free: 3.18 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001839/1.117, allocations: 1.367 MB / 0.6674 GB, free: 1.824 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005073/1.122, allocations: 1.919 MB / 0.6693 GB, free: 15.91 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/1.122, allocations: 305.1 kB / 0.6696 GB, free: 15.61 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007726/1.13, allocations: 4.223 MB / 0.6737 GB, free: 11.38 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01208/1.142, allocations: 9.453 MB / 0.683 GB, free: 15.38 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01955/1.161, allocations: 14.63 MB / 0.6973 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001977/1.162, allocations: 52 kB / 0.6973 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03996/1.201, allocations: 17.55 MB / 0.7144 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001946/1.202, allocations: 83.94 kB / 0.7145 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002692/1.202, allocations: 180 kB / 0.7147 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01456/1.217, allocations: 4.549 MB / 0.7191 GB, free: 7.723 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007713/1.224, allocations: 2.129 MB / 0.7212 GB, free: 5.59 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2977/1.522, allocations: 25.35 MB / 0.746 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007899/1.53, allocations: 0.5296 MB / 0.7465 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001632/1.532, allocations: 0.5371 MB / 0.747 GB, free: 181.7 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.005491/1.537, allocations: 3.125 MB / 0.7501 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0012/1.538, allocations: 0.5662 MB / 0.7506 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02095/1.559, allocations: 10.71 MB / 0.7611 GB, free: 178 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.366e-05/1.559, allocations: 35.09 kB / 0.7611 GB, free: 178 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.524e-05/1.559, allocations: 24.44 kB / 0.7611 GB, free: 178 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.626e-05/1.56, allocations: 17.39 kB / 0.7611 GB, free: 178 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03966/1.599, allocations: 20.35 MB / 0.781 GB, free: 168 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.217e-05/1.599, allocations: 7.875 kB / 0.781 GB, free: 168 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00304/1.602, allocations: 0.5381 MB / 0.7816 GB, free: 167.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01266/1.615, allocations: 4.183 MB / 0.7856 GB, free: 163.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009507/1.616, allocations: 65.3 kB / 0.7857 GB, free: 163.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0295/1.646, allocations: 23.13 MB / 0.8083 GB, free: 140.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.646, allocations: 0 / 0.8083 GB, free: 140.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02792/1.674, allocations: 15.64 MB / 0.8236 GB, free: 124.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00173/1.675, allocations: 0.5893 MB / 0.8241 GB, free: 124.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001861/1.677, allocations: 57.5 kB / 0.8242 GB, free: 124 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00418/1.681, allocations: 221.7 kB / 0.8244 GB, free: 123.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001258/1.683, allocations: 226 kB / 0.8246 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006667/1.683, allocations: 95.98 kB / 0.8247 GB, free: 123.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006628/1.69, allocations: 3.769 MB / 0.8284 GB, free: 119.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.81e-07/1.69, allocations: 4 kB / 0.8284 GB, free: 119.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01019/1.7, allocations: 1.927 MB / 0.8303 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.001185/1.701, allocations: 224.1 kB / 0.8305 GB, free: 117.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01526/1.717, allocations: 10.53 MB / 0.8408 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/1.717, allocations: 192 / 0.8408 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006018/1.723, allocations: 4.127 MB / 0.8448 GB, free: 103 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006512/1.729, allocations: 0.7681 MB / 0.8456 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02794/1.757, allocations: 16.84 MB / 0.862 GB, free: 85.41 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005282/1.763, allocations: 4.827 MB / 0.8667 GB, free: 80.55 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001823/1.765, allocations: 451.4 kB / 0.8671 GB, free: 80.11 MB / 0.5294 GB Notification: Performance of SimCode: time 1.142e-06/1.765, allocations: 0 / 0.8671 GB, free: 80.11 MB / 0.5294 GB Notification: Performance of Templates: time 0.4144/2.179, allocations: 155.3 MB / 1.019 GB, free: 104.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","/var/lib/jenkins1/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