Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 195.4 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 226.5 MB / 245.4 MB, free: 8.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008622/0.000862, allocations: 102.2 kB / 297.4 MB, free: 6.867 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003049/0.000305, allocations: 8 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3197, allocations: 51.29 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1434/0.4632, allocations: 105.7 MB / 0.5023 GB, free: 1.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003257/0.4636, allocations: 87.95 kB / 0.5023 GB, free: 1.824 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5557/1.019, allocations: 138.4 MB / 0.6375 GB, free: 4.695 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.436e-06/1.019, allocations: 0 / 0.6375 GB, free: 4.695 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006675/1.02, allocations: 136 kB / 0.6376 GB, free: 4.562 MB / 410.7 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.02881/1.049, allocations: 7.386 MB / 0.6448 GB, free: 13.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/1.049, allocations: 8.031 kB / 0.6448 GB, free: 13.08 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02858/1.078, allocations: 5.849 MB / 0.6506 GB, free: 7.211 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02112/1.099, allocations: 7.416 MB / 0.6578 GB, free: 15.71 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007014/1.099, allocations: 493.3 kB / 0.6583 GB, free: 15.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004198/1.104, allocations: 0.6562 MB / 0.6589 GB, free: 14.57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3738/1.478, allocations: 16.55 MB / 0.6751 GB, free: 66.38 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008017/1.478, allocations: 102 kB / 0.6752 GB, free: 66.38 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003643/1.482, allocations: 312.8 kB / 0.6755 GB, free: 66.38 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002894/1.485, allocations: 1.586 MB / 0.677 GB, free: 66.36 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03326/1.518, allocations: 13.54 MB / 0.6902 GB, free: 66.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09155/1.61, allocations: 74.2 MB / 0.7627 GB, free: 20.41 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02181/1.632, allocations: 7.738 MB / 0.7702 GB, free: 18.07 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005717/1.638, allocations: 4.018 MB / 0.7742 GB, free: 16.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03076/1.668, allocations: 18.5 MB / 0.7922 GB, free: 6.652 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.393e-05/1.668, allocations: 78.12 kB / 0.7923 GB, free: 6.586 MB / 442.7 MB Notification: Performance of pre-optimization done (n=287): time 7.905e-06/1.668, allocations: 0 / 0.7923 GB, free: 6.586 MB / 442.7 MB Notification: Performance of matching and sorting (n=370): time 0.1797/1.848, allocations: 49.21 MB / 0.8404 GB, free: 4.168 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001632/1.848, allocations: 277.8 kB / 0.8406 GB, free: 3.84 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2845/2.133, allocations: 6.029 MB / 0.8465 GB, free: 99.88 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009672/2.134, allocations: 82.61 kB / 0.8466 GB, free: 99.85 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003759/2.138, allocations: 4.765 MB / 0.8512 GB, free: 98.69 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002025/2.14, allocations: 1.357 MB / 0.8526 GB, free: 97.89 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008472/2.141, allocations: 183.1 kB / 0.8527 GB, free: 97.89 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004945/2.141, allocations: 0.6966 MB / 0.8534 GB, free: 97.57 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006088/2.147, allocations: 3.774 MB / 0.8571 GB, free: 97.54 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009369/2.157, allocations: 9.014 MB / 0.8659 GB, free: 90.89 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01535/2.172, allocations: 13.85 MB / 0.8794 GB, free: 84.25 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001823/2.172, allocations: 50.41 kB / 0.8795 GB, free: 84.25 MB / 474.7 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03248/2.205, allocations: 16.13 MB / 0.8952 GB, free: 82.46 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001455/2.205, allocations: 82.94 kB / 0.8953 GB, free: 82.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002627/2.205, allocations: 186.8 kB / 0.8955 GB, free: 82.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01194/2.217, allocations: 4.038 MB / 0.8994 GB, free: 81.88 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007171/2.224, allocations: 2.046 MB / 0.9014 GB, free: 81.63 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02843/2.253, allocations: 20.96 MB / 0.9219 GB, free: 72.28 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007327/2.26, allocations: 0.5567 MB / 0.9224 GB, free: 72.11 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001617/2.262, allocations: 0.5224 MB / 0.923 GB, free: 72.04 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * 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 (1088): * Single equations (assignments): 1083 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006375/2.268, allocations: 3.126 MB / 0.926 GB, free: 70.61 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001106/2.269, allocations: 0.5691 MB / 0.9266 GB, free: 70.29 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01896/2.288, allocations: 9.566 MB / 0.9359 GB, free: 67.16 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.776e-05/2.288, allocations: 38.22 kB / 0.9359 GB, free: 67.16 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.572e-05/2.289, allocations: 18.31 kB / 0.936 GB, free: 67.16 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.395e-05/2.289, allocations: 16.03 kB / 0.936 GB, free: 67.16 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03641/2.325, allocations: 19.05 MB / 0.9546 GB, free: 54.22 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.469e-05/2.325, allocations: 0 / 0.9546 GB, free: 54.22 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00251/2.328, allocations: 0.507 MB / 0.9551 GB, free: 53.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01085/2.338, allocations: 3.618 MB / 0.9586 GB, free: 51.44 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007462/2.339, allocations: 60.73 kB / 0.9587 GB, free: 51.38 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02435/2.364, allocations: 18.9 MB / 0.9771 GB, free: 35.22 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/2.364, allocations: 0 / 0.9771 GB, free: 35.22 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02344/2.387, allocations: 14.01 MB / 0.9908 GB, free: 23.69 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001664/2.389, allocations: 0.584 MB / 0.9914 GB, free: 23.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001548/2.39, allocations: 60.48 kB / 0.9914 GB, free: 23.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003303/2.394, allocations: 224.6 kB / 0.9916 GB, free: 22.89 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000904/2.395, allocations: 230.9 kB / 0.9919 GB, free: 22.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002762/2.395, allocations: 92.81 kB / 0.992 GB, free: 22.67 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006397/2.401, allocations: 3.763 MB / 0.9956 GB, free: 18.97 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.91e-07/2.401, allocations: 0 / 0.9956 GB, free: 18.97 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009033/2.41, allocations: 1.853 MB / 0.9974 GB, free: 17.12 MB / 474.7 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 (270): * Single equations (assignments): 265 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008883/2.411, allocations: 231.9 kB / 0.9977 GB, free: 16.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01435/2.426, allocations: 9.678 MB / 1.007 GB, free: 7.207 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/2.426, allocations: 0 / 1.007 GB, free: 7.207 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005317/2.431, allocations: 3.789 MB / 1.011 GB, free: 3.383 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005513/2.437, allocations: 0.7684 MB / 1.012 GB, free: 2.645 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.235/2.672, allocations: 19.17 MB / 1.03 GB, free: 82.99 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007496/2.679, allocations: 4.867 MB / 1.035 GB, free: 82.12 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001778/2.681, allocations: 446.2 kB / 1.035 GB, free: 82.12 MB / 474.7 MB Notification: Performance of SimCode: time 1.122e-06/2.681, allocations: 3.75 kB / 1.035 GB, free: 82.12 MB / 474.7 MB Notification: Performance of Templates: time 0.1867/2.868, allocations: 151.7 MB / 1.184 GB, free: 1.625 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches