Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.FrameTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2") translateModel(ModelicaTest.MultiBody.Forces.FrameTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001499/0.001498, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.004/2.004, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001071/0.00107, allocations: 90.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2759/0.2759, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.384e-05/3.388e-05, allocations: 4 kB / 425.3 MB, free: 23.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1208, allocations: 58.85 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5233/0.6442, allocations: 105.7 MB / 0.576 GB, free: 14.18 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/0.6445, allocations: 77.78 kB / 0.5761 GB, free: 14.14 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.039/1.683, allocations: 171.1 MB / 0.7432 GB, free: 91.76 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.194e-06/1.684, allocations: 0 / 0.7432 GB, free: 91.76 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0006149/1.684, allocations: 176.2 kB / 0.7434 GB, free: 91.75 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: 2951 * Number of variables: 2951 Notification: Performance of Generate backend data structure: time 0.03444/1.719, allocations: 8.258 MB / 0.7514 GB, free: 88.58 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/1.719, allocations: 10.25 kB / 0.7514 GB, free: 88.58 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08657/1.805, allocations: 12.09 MB / 0.7632 GB, free: 87.99 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03842/1.844, allocations: 10.96 MB / 0.7739 GB, free: 86.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008329/1.845, allocations: 0.6369 MB / 0.7746 GB, free: 86.88 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004816/1.849, allocations: 0.8513 MB / 0.7754 GB, free: 86.87 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06529/1.915, allocations: 19.86 MB / 0.7948 GB, free: 80.91 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007114/1.916, allocations: 104.8 kB / 0.7949 GB, free: 80.9 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004313/1.92, allocations: 403.7 kB / 0.7953 GB, free: 80.66 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004218/1.924, allocations: 1.82 MB / 0.7971 GB, free: 80.36 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05176/1.976, allocations: 16.05 MB / 0.8127 GB, free: 70.84 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1374/2.113, allocations: 82.21 MB / 0.893 GB, free: 8.25 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03693/2.15, allocations: 8.069 MB / 0.9009 GB, free: 32 kB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4107/2.561, allocations: 4.076 MB / 0.9049 GB, free: 99.02 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001205/2.563, allocations: 0.6665 MB / 0.9055 GB, free: 98.45 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.633e-05/2.563, allocations: 67.11 kB / 0.9056 GB, free: 98.41 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=311): time 7.544e-06/2.563, allocations: 2 kB / 0.9056 GB, free: 98.41 MB / 0.5105 GB Notification: Performance of matching and sorting (n=335): time 0.1211/2.684, allocations: 26.28 MB / 0.9313 GB, free: 92.66 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/2.684, allocations: 301.5 kB / 0.9315 GB, free: 92.34 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01594/2.7, allocations: 6.827 MB / 0.9382 GB, free: 91.75 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008554/2.701, allocations: 74.98 kB / 0.9383 GB, free: 91.72 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004969/2.706, allocations: 5.547 MB / 0.9437 GB, free: 89.03 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002059/2.708, allocations: 1.27 MB / 0.9449 GB, free: 88.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00114/2.709, allocations: 197.4 kB / 0.9451 GB, free: 88.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005965/2.71, allocations: 0.7168 MB / 0.9458 GB, free: 87.96 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008471/2.718, allocations: 3.448 MB / 0.9492 GB, free: 87.94 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01229/2.73, allocations: 9.121 MB / 0.9581 GB, free: 80.63 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01229/2.743, allocations: 5.541 MB / 0.9635 GB, free: 80.58 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002063/2.743, allocations: 59.25 kB / 0.9636 GB, free: 80.58 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1262) (initialization): time 0.0346/2.778, allocations: 12.91 MB / 0.9762 GB, free: 77 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000161/2.778, allocations: 92 kB / 0.9763 GB, free: 77 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002729/2.778, allocations: 199.4 kB / 0.9765 GB, free: 77 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004048/2.782, allocations: 1.056 MB / 0.9775 GB, free: 76.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01475/2.797, allocations: 2.247 MB / 0.9797 GB, free: 76.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01753/2.815, allocations: 11.28 MB / 0.9907 GB, free: 68.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01215/2.827, allocations: 0.518 MB / 0.9912 GB, free: 68.53 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002297/2.829, allocations: 0.5772 MB / 0.9918 GB, free: 68.45 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 915 * Number of states: 0 () * Number of discrete variables: 66 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1182): * Single equations (assignments): 1175 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002896/2.832, allocations: 0.8513 MB / 0.9926 GB, free: 67.77 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001898/2.834, allocations: 0.683 MB / 0.9933 GB, free: 67.39 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01731/2.851, allocations: 5.957 MB / 0.9991 GB, free: 65.14 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-05/2.851, allocations: 34.31 kB / 0.9991 GB, free: 65.14 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-05/2.851, allocations: 10.16 kB / 0.9991 GB, free: 65.14 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.649e-05/2.852, allocations: 16.08 kB / 0.9991 GB, free: 65.14 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04549/2.897, allocations: 15.03 MB / 1.014 GB, free: 57.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.892e-05/2.897, allocations: 4 kB / 1.014 GB, free: 57.93 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005897/2.903, allocations: 0.5548 MB / 1.014 GB, free: 57.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00341/2.907, allocations: 0.7011 MB / 1.015 GB, free: 56.96 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007288/2.907, allocations: 62.23 kB / 1.015 GB, free: 56.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01463/2.922, allocations: 10.13 MB / 1.025 GB, free: 47.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/2.922, allocations: 4.031 kB / 1.025 GB, free: 47.16 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02235/2.944, allocations: 10.06 MB / 1.035 GB, free: 38.09 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004747/2.949, allocations: 1.19 MB / 1.036 GB, free: 36.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002138/2.951, allocations: 60 kB / 1.036 GB, free: 36.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006103/2.957, allocations: 196.9 kB / 1.036 GB, free: 36.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001085/2.959, allocations: 190.9 kB / 1.036 GB, free: 36.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003745/2.959, allocations: 86.83 kB / 1.036 GB, free: 36.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01226/2.971, allocations: 4.863 MB / 1.041 GB, free: 32.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.433e-06/2.971, allocations: 0 / 1.041 GB, free: 32.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01226/2.984, allocations: 1.88 MB / 1.043 GB, free: 30.43 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,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 (276): * Single equations (assignments): 269 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00119/2.985, allocations: 214 kB / 1.043 GB, free: 30.23 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01957/3.004, allocations: 8.856 MB / 1.052 GB, free: 22.14 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.278e-06/3.004, allocations: 0 / 1.052 GB, free: 22.14 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00664/3.011, allocations: 3.194 MB / 1.055 GB, free: 19.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007454/3.019, allocations: 0.9223 MB / 1.056 GB, free: 18.42 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04165/3.06, allocations: 15.98 MB / 1.072 GB, free: 4.223 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01551/3.076, allocations: 6.215 MB / 1.078 GB, free: 15.96 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003655/3.08, allocations: 0.5198 MB / 1.078 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of SimCode: time 1.353e-06/3.08, allocations: 0 / 1.078 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of Templates: time 1.352/4.431, allocations: 245.2 MB / 1.318 GB, free: 134.7 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/FrameTorques2/FrameTorques2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches