Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json 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) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 173 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 221.5 MB / 230.7 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008922/0.0008922, allocations: 98.17 kB / 281.6 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1782/0.1782, allocations: 44.15 MB / 376.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.828e-05/1.869e-05, allocations: 4.219 kB / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1118, allocations: 61.92 MB / 0.4947 GB, free: 1.262 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3948/0.5066, allocations: 113.8 MB / 0.6058 GB, free: 14.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.5069, allocations: 79.56 kB / 0.6059 GB, free: 14.63 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6809/1.188, allocations: 135.3 MB / 0.738 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.063e-06/1.188, allocations: 0 / 0.738 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0007498/1.189, allocations: 138.6 kB / 0.7381 GB, free: 107.9 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.03393/1.223, allocations: 7.027 MB / 0.745 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.635e-05/1.223, allocations: 14.67 kB / 0.745 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04885/1.271, allocations: 7.554 MB / 0.7524 GB, free: 104.8 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02673/1.298, allocations: 9.197 MB / 0.7613 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003997/1.299, allocations: 211.2 kB / 0.7615 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003772/1.302, allocations: 395.6 kB / 0.7619 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01852/1.321, allocations: 9.658 MB / 0.7714 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02958/1.351, allocations: 14.22 MB / 0.7852 GB, free: 89.71 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005117/1.351, allocations: 99.03 kB / 0.7853 GB, free: 89.62 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00254/1.354, allocations: 44 kB / 0.7854 GB, free: 89.57 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002206/1.356, allocations: 1.587 MB / 0.7869 GB, free: 88.25 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07316/1.429, allocations: 73.61 MB / 0.8588 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006041/1.435, allocations: 5.13 MB / 0.8638 GB, free: 8.863 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004145/1.439, allocations: 3.716 MB / 0.8674 GB, free: 5.145 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002003/1.441, allocations: 2.253 MB / 0.8696 GB, free: 2.516 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.664e-05/1.441, allocations: 68.56 kB / 0.8697 GB, free: 2.441 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=296): time 5.761e-06/1.441, allocations: 0 / 0.8697 GB, free: 2.441 MB / 0.4948 GB Notification: Performance of matching and sorting (n=379): time 0.4213/1.863, allocations: 40.62 MB / 0.9094 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/1.863, allocations: 267.9 kB / 0.9096 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009717/1.873, allocations: 4.612 MB / 0.9141 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001133/1.874, allocations: 29.61 kB / 0.9142 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003529/1.877, allocations: 4.78 MB / 0.9188 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002306/1.88, allocations: 1.344 MB / 0.9201 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008689/1.881, allocations: 0 / 0.9201 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005149/1.881, allocations: 0.7112 MB / 0.9208 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004516/1.886, allocations: 3.612 MB / 0.9244 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007298/1.893, allocations: 8.905 MB / 0.9331 GB, free: 96.82 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007181/1.9, allocations: 5.548 MB / 0.9385 GB, free: 95.09 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001061/1.9, allocations: 51.06 kB / 0.9385 GB, free: 95.09 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.03272/1.933, allocations: 15 MB / 0.9532 GB, free: 90.81 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001289/1.933, allocations: 85.19 kB / 0.9533 GB, free: 90.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002433/1.933, allocations: 191.8 kB / 0.9534 GB, free: 90.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01277/1.946, allocations: 4.057 MB / 0.9574 GB, free: 90.17 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007567/1.954, allocations: 2.107 MB / 0.9595 GB, free: 89.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02681/1.981, allocations: 20.08 MB / 0.9791 GB, free: 80.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009047/1.99, allocations: 382.1 kB / 0.9794 GB, free: 80.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001902/1.992, allocations: 0.5454 MB / 0.98 GB, free: 80.71 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 855 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1121): * Single equations (assignments): 1116 * 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,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001515/1.993, allocations: 0.5939 MB / 0.9805 GB, free: 80.23 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001089/1.994, allocations: 0.5346 MB / 0.9811 GB, free: 79.93 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01883/2.013, allocations: 9.353 MB / 0.9902 GB, free: 73.14 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.918e-05/2.013, allocations: 40 kB / 0.9902 GB, free: 73.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.791e-05/2.013, allocations: 20 kB / 0.9903 GB, free: 73.08 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.181e-05/2.013, allocations: 17.16 kB / 0.9903 GB, free: 73.08 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03967/2.053, allocations: 17.98 MB / 1.008 GB, free: 58.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.463e-05/2.053, allocations: 3.953 kB / 1.008 GB, free: 58.81 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002909/2.056, allocations: 0.5276 MB / 1.008 GB, free: 58.37 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01145/2.068, allocations: 3.578 MB / 1.012 GB, free: 56.02 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008324/2.068, allocations: 11.84 kB / 1.012 GB, free: 56.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02264/2.091, allocations: 17.67 MB / 1.029 GB, free: 40.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/2.091, allocations: 0 / 1.029 GB, free: 40.27 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0243/2.116, allocations: 14.11 MB / 1.043 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001945/2.118, allocations: 0.5436 MB / 1.043 GB, free: 25.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001386/2.119, allocations: 4 kB / 1.043 GB, free: 25.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003396/2.122, allocations: 179.7 kB / 1.044 GB, free: 25.22 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001011/2.123, allocations: 230.1 kB / 1.044 GB, free: 24.99 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003191/2.124, allocations: 104.4 kB / 1.044 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005941/2.13, allocations: 3.092 MB / 1.047 GB, free: 21.83 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.41e-07/2.13, allocations: 4 kB / 1.047 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01197/2.142, allocations: 1.607 MB / 1.049 GB, free: 20.23 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (279): * Single equations (assignments): 274 * 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.001074/2.143, allocations: 178 kB / 1.049 GB, free: 20.06 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01445/2.157, allocations: 9.142 MB / 1.058 GB, free: 10.91 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/2.157, allocations: 0 / 1.058 GB, free: 10.91 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005825/2.163, allocations: 3.64 MB / 1.061 GB, free: 7.25 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004929/2.168, allocations: 0.58 MB / 1.062 GB, free: 6.684 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02915/2.197, allocations: 12.99 MB / 1.074 GB, free: 9.621 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01031/2.208, allocations: 5 MB / 1.079 GB, free: 4.625 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009679/2.217, allocations: 2.875 MB / 1.082 GB, free: 1.766 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001569/2.219, allocations: 363.4 kB / 1.082 GB, free: 1.41 MB / 0.5261 GB Notification: Performance of SimCode: time 9.02e-07/2.219, allocations: 0.8438 kB / 1.082 GB, free: 1.41 MB / 0.5261 GB Notification: Performance of Templates: time 0.4068/2.626, allocations: 68.56 MB / 1.149 GB, free: 106.3 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches