Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009737/0.0009737, allocations: 93.48 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 202.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.7 MB / 247.5 MB, free: 11.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002689/0.0002689, allocations: 8 kB / 308.4 MB, free: 0.7656 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1013, allocations: 51.52 MB / 359.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2379/0.3392, allocations: 70.9 MB / 430.8 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03386/0.3731, allocations: 14.44 MB / 445.3 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01536/0.3885, allocations: 323.1 kB / 445.6 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00235/0.3909, allocations: 0.6334 MB / 446.2 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006892/0.3978, allocations: 2.569 MB / 448.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003354/0.4012, allocations: 1.35 MB / 450.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01456/0.4157, allocations: 12.06 MB / 462.2 MB, free: 4.445 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01099/0.4268, allocations: 7.098 MB / 469.3 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004/0.4308, allocations: 2.058 MB / 471.3 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00536/0.4362, allocations: 3.668 MB / 475 MB, free: 7.516 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001421/0.4377, allocations: 248 kB / 475.3 MB, free: 7.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003624/0.4413, allocations: 1.408 MB / 476.7 MB, free: 5.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004118/0.4454, allocations: 3.003 MB / 479.7 MB, free: 2.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005491/0.451, allocations: 3.254 MB / 482.9 MB, free: 15.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009927/0.4609, allocations: 8.476 MB / 491.4 MB, free: 7.074 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.461, allocations: 0 / 491.4 MB, free: 7.074 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.461, allocations: 0 / 491.4 MB, free: 7.074 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004444/0.4614, allocations: 0 / 491.4 MB, free: 7.074 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.01699/0.4784, allocations: 6.792 MB / 498.2 MB, free: 204 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.4785, allocations: 8.031 kB / 498.2 MB, free: 196 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03207/0.5106, allocations: 3.756 MB / 0.4902 GB, free: 12.42 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01199/0.5226, allocations: 5.18 MB / 0.4952 GB, free: 7.156 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003434/0.523, allocations: 369.5 kB / 0.4956 GB, free: 6.793 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001817/0.5248, allocations: 0.515 MB / 0.4961 GB, free: 6.277 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03154/0.5564, allocations: 16.31 MB / 0.512 GB, free: 4.895 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003027/0.5567, allocations: 83.2 kB / 0.5121 GB, free: 4.812 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001461/0.5582, allocations: 239.8 kB / 0.5123 GB, free: 4.578 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004814/0.563, allocations: 2.923 MB / 0.5152 GB, free: 1.648 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02927/0.5923, allocations: 13.79 MB / 0.5287 GB, free: 3.828 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.2605/0.8528, allocations: 64.81 MB / 0.592 GB, free: 95.02 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02106/0.8739, allocations: 7.984 MB / 0.5998 GB, free: 90.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005066/0.8791, allocations: 4.353 MB / 0.604 GB, free: 86.16 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02596/0.905, allocations: 19.45 MB / 0.623 GB, free: 66.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.332e-05/0.9051, allocations: 56.56 kB / 0.6231 GB, free: 66.14 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 8.396e-06/0.9051, allocations: 3.984 kB / 0.6231 GB, free: 66.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1645/1.07, allocations: 50.55 MB / 0.6724 GB, free: 15.45 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.65e-05/1.07, allocations: 273.8 kB / 0.6727 GB, free: 15.12 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008063/1.078, allocations: 6.038 MB / 0.6786 GB, free: 9.074 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007866/1.079, allocations: 81.7 kB / 0.6787 GB, free: 8.988 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002276/1.081, allocations: 4.661 MB / 0.6832 GB, free: 4.328 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001524/1.082, allocations: 1.378 MB / 0.6846 GB, free: 2.961 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001015/1.084, allocations: 0.8217 MB / 0.6854 GB, free: 2.133 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.355e-05/1.084, allocations: 305.1 kB / 0.6857 GB, free: 1.832 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005918/1.089, allocations: 4.235 MB / 0.6898 GB, free: 13.59 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009646/1.099, allocations: 9.469 MB / 0.699 GB, free: 1.566 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2115/1.311, allocations: 14.65 MB / 0.7133 GB, free: 134.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002484/1.311, allocations: 51.31 kB / 0.7134 GB, free: 134.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03943/1.35, allocations: 17.61 MB / 0.7306 GB, free: 128.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001866/1.351, allocations: 80.84 kB / 0.7307 GB, free: 128.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003719/1.351, allocations: 184.2 kB / 0.7308 GB, free: 128.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01472/1.366, allocations: 4.584 MB / 0.7353 GB, free: 127.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007381/1.373, allocations: 2.14 MB / 0.7374 GB, free: 127.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02892/1.402, allocations: 23.74 MB / 0.7606 GB, free: 105.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007018/1.409, allocations: 0.536 MB / 0.7611 GB, free: 105 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001374/1.411, allocations: 0.5366 MB / 0.7616 GB, free: 104.4 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.005774/1.416, allocations: 3.118 MB / 0.7647 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001198/1.418, allocations: 0.5638 MB / 0.7652 GB, free: 101.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02151/1.439, allocations: 10.77 MB / 0.7758 GB, free: 90.34 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.954e-05/1.439, allocations: 36 kB / 0.7758 GB, free: 90.31 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.854e-05/1.439, allocations: 24 kB / 0.7758 GB, free: 90.29 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.471e-05/1.439, allocations: 16.55 kB / 0.7758 GB, free: 90.27 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03746/1.477, allocations: 20.58 MB / 0.7959 GB, free: 69.69 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.484e-05/1.477, allocations: 0 / 0.7959 GB, free: 69.69 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00298/1.48, allocations: 0.5462 MB / 0.7965 GB, free: 69.14 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01342/1.493, allocations: 4.217 MB / 0.8006 GB, free: 64.91 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008083/1.494, allocations: 68.62 kB / 0.8006 GB, free: 64.85 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02671/1.521, allocations: 21.55 MB / 0.8217 GB, free: 43.16 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/1.521, allocations: 7.969 kB / 0.8217 GB, free: 43.15 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02716/1.548, allocations: 15.69 MB / 0.837 GB, free: 27.38 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001506/1.55, allocations: 0.6004 MB / 0.8376 GB, free: 26.76 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0017/1.551, allocations: 56 kB / 0.8377 GB, free: 26.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003866/1.555, allocations: 228.9 kB / 0.8379 GB, free: 26.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001082/1.556, allocations: 234.1 kB / 0.8381 GB, free: 26.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003022/1.557, allocations: 103.7 kB / 0.8382 GB, free: 26.15 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005281/1.562, allocations: 3.765 MB / 0.8419 GB, free: 22.39 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.81e-07/1.562, allocations: 0 / 0.8419 GB, free: 22.39 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008282/1.57, allocations: 1.903 MB / 0.8437 GB, free: 20.49 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.0008659/1.571, allocations: 215.4 kB / 0.8439 GB, free: 20.28 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01409/1.585, allocations: 10.53 MB / 0.8542 GB, free: 9.734 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/1.585, allocations: 4 kB / 0.8542 GB, free: 9.73 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005449/1.591, allocations: 4.139 MB / 0.8583 GB, free: 5.562 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004716/1.596, allocations: 0.731 MB / 0.859 GB, free: 4.84 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2104/1.806, allocations: 20.31 MB / 0.8788 GB, free: 147.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008/1.814, allocations: 4.825 MB / 0.8835 GB, free: 146.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001963/1.816, allocations: 453.9 kB / 0.884 GB, free: 146.3 MB / 478.1 MB Notification: Performance of SimCode: time 8.12e-07/1.816, allocations: 0 / 0.884 GB, free: 146.3 MB / 478.1 MB Notification: Performance of Templates: time 0.1703/1.986, allocations: 151.7 MB / 1.032 GB, free: 14.83 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches