Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001322, allocations: 194.8 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 226.5 MB / 244.1 MB, free: 8.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007672/0.0007672, allocations: 99.5 kB / 296.1 MB, free: 6.867 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3093/0.3093, allocations: 44.82 MB / 393 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002528/0.000253, allocations: 12 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2817, allocations: 62.96 MB / 0.5165 GB, free: 37 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1266/0.4084, allocations: 115.6 MB / 0.6294 GB, free: 5.703 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/0.4086, allocations: 75.95 kB / 0.6295 GB, free: 5.629 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5285/0.9372, allocations: 138.4 MB / 0.7646 GB, free: 79.09 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.296e-06/0.9372, allocations: 0 / 0.7646 GB, free: 79.09 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004617/0.9377, allocations: 136 kB / 0.7647 GB, free: 78.96 MB / 490.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.02367/0.9614, allocations: 7.383 MB / 0.772 GB, free: 71.49 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.9614, allocations: 8.031 kB / 0.772 GB, free: 71.48 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02376/0.9852, allocations: 5.845 MB / 0.7777 GB, free: 65.62 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01689/1.002, allocations: 7.51 MB / 0.785 GB, free: 58.02 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004606/1.003, allocations: 489.3 kB / 0.7855 GB, free: 57.54 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003258/1.006, allocations: 0.664 MB / 0.7861 GB, free: 56.88 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03447/1.04, allocations: 16.56 MB / 0.8023 GB, free: 38.86 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004635/1.041, allocations: 99.27 kB / 0.8024 GB, free: 38.76 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0024/1.043, allocations: 319.7 kB / 0.8027 GB, free: 38.45 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002188/1.046, allocations: 1.58 MB / 0.8042 GB, free: 36.86 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02573/1.071, allocations: 13.54 MB / 0.8175 GB, free: 23.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3574/1.429, allocations: 74.18 MB / 0.8899 GB, free: 75.02 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01989/1.449, allocations: 7.731 MB / 0.8975 GB, free: 74.33 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005014/1.454, allocations: 4.03 MB / 0.9014 GB, free: 74.28 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02953/1.483, allocations: 18.49 MB / 0.9194 GB, free: 69.95 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.174e-05/1.483, allocations: 72.23 kB / 0.9195 GB, free: 69.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=287): time 6.522e-06/1.483, allocations: 1.344 kB / 0.9195 GB, free: 69.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=370): time 0.1604/1.644, allocations: 49.06 MB / 0.9674 GB, free: 60.14 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.498e-05/1.644, allocations: 274.1 kB / 0.9677 GB, free: 59.85 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009945/1.654, allocations: 6.031 MB / 0.9736 GB, free: 56.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008517/1.655, allocations: 81.7 kB / 0.9737 GB, free: 56.62 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003342/1.658, allocations: 4.762 MB / 0.9783 GB, free: 52.34 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001933/1.66, allocations: 1.36 MB / 0.9796 GB, free: 51.13 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009019/1.661, allocations: 188 kB / 0.9798 GB, free: 50.95 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0006054/1.662, allocations: 0.6878 MB / 0.9805 GB, free: 50.36 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005748/1.667, allocations: 3.781 MB / 0.9842 GB, free: 47.18 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007878/1.675, allocations: 9.017 MB / 0.993 GB, free: 36.57 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01418/1.69, allocations: 13.84 MB / 1.006 GB, free: 21.87 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001996/1.69, allocations: 52 kB / 1.007 GB, free: 21.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03255/1.722, allocations: 16.13 MB / 1.022 GB, free: 8.719 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001134/1.723, allocations: 81.78 kB / 1.022 GB, free: 8.641 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002262/1.723, allocations: 184.9 kB / 1.023 GB, free: 8.461 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01214/1.735, allocations: 4.043 MB / 1.027 GB, free: 5.688 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007119/1.742, allocations: 2.046 MB / 1.028 GB, free: 3.777 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03115/1.773, allocations: 20.98 MB / 1.049 GB, free: 14.54 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007218/1.781, allocations: 0.55 MB / 1.05 GB, free: 13.99 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001541/1.782, allocations: 0.5273 MB / 1.05 GB, free: 13.46 MB / 0.5573 GB 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.006492/1.789, allocations: 3.116 MB / 1.053 GB, free: 10.34 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001123/1.79, allocations: 0.5747 MB / 1.054 GB, free: 9.754 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0204/1.81, allocations: 9.559 MB / 1.063 GB, free: 140 kB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.419e-05/1.81, allocations: 36 kB / 1.063 GB, free: 104 kB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.82e-05/1.81, allocations: 19.5 kB / 1.063 GB, free: 88 kB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.808e-05/1.81, allocations: 19.94 kB / 1.063 GB, free: 68 kB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04029/1.851, allocations: 19.05 MB / 1.082 GB, free: 12.92 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.822e-05/1.851, allocations: 0 / 1.082 GB, free: 12.92 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002706/1.853, allocations: 0.507 MB / 1.082 GB, free: 12.41 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01255/1.866, allocations: 3.632 MB / 1.086 GB, free: 8.773 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007701/1.867, allocations: 63.98 kB / 1.086 GB, free: 8.711 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0298/1.897, allocations: 18.89 MB / 1.104 GB, free: 5.555 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/1.897, allocations: 0 / 1.104 GB, free: 5.555 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2785/2.175, allocations: 14 MB / 1.118 GB, free: 184.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001709/2.177, allocations: 0.5846 MB / 1.118 GB, free: 184.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001663/2.179, allocations: 58.62 kB / 1.119 GB, free: 184.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003474/2.182, allocations: 224.1 kB / 1.119 GB, free: 184.7 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009311/2.183, allocations: 225.4 kB / 1.119 GB, free: 184.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002946/2.183, allocations: 89.84 kB / 1.119 GB, free: 184.7 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.007099/2.191, allocations: 3.764 MB / 1.123 GB, free: 184.5 MB / 0.6042 GB Notification: Performance of sort global known variables: time 5.21e-07/2.191, allocations: 0 / 1.123 GB, free: 184.5 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.009698/2.2, allocations: 1.85 MB / 1.125 GB, free: 184.5 MB / 0.6042 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 (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.0008271/2.201, allocations: 237.2 kB / 1.125 GB, free: 184.4 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01568/2.217, allocations: 9.663 MB / 1.134 GB, free: 184 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.226e-06/2.217, allocations: 1.031 kB / 1.134 GB, free: 184 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.005994/2.223, allocations: 3.793 MB / 1.138 GB, free: 183.7 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005883/2.229, allocations: 0.7582 MB / 1.139 GB, free: 183.7 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0283/2.257, allocations: 19.19 MB / 1.157 GB, free: 176.5 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008033/2.265, allocations: 4.868 MB / 1.162 GB, free: 174.9 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001762/2.267, allocations: 448.5 kB / 1.163 GB, free: 174.9 MB / 0.6042 GB Notification: Performance of SimCode: time 8.11e-07/2.267, allocations: 0 / 1.163 GB, free: 174.9 MB / 0.6042 GB Notification: Performance of Templates: time 0.1637/2.431, allocations: 151.6 MB / 1.311 GB, free: 57.78 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches