Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques.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.ForcesAndTorques,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_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques") translateModel(ModelicaTest.MultiBody.Forces.ForcesAndTorques,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_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001381/0.001381, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 225.6 MB / 234.8 MB, free: 3.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007854/0.0007854, allocations: 93.56 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1803/0.1803, allocations: 45.15 MB / 383.7 MB, free: 228 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.484e-05/1.488e-05, allocations: 0 / 453.2 MB, free: 75.81 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 63.25 MB / 0.5044 GB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4343/0.5371, allocations: 111.1 MB / 0.6128 GB, free: 7.797 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/0.5374, allocations: 80.14 kB / 0.6129 GB, free: 7.758 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3304/0.8677, allocations: 137.3 MB / 0.7469 GB, free: 6.316 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.594e-06/0.8678, allocations: 4 kB / 0.7469 GB, free: 6.312 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003836/0.8682, allocations: 136 kB / 0.7471 GB, free: 6.18 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.6359/1.504, allocations: 6.963 MB / 0.7539 GB, free: 103.6 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/1.504, allocations: 8.969 kB / 0.7539 GB, free: 103.6 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03237/1.537, allocations: 7.194 MB / 0.7609 GB, free: 103.1 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01923/1.556, allocations: 6.645 MB / 0.7674 GB, free: 102.7 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004994/1.556, allocations: 230.4 kB / 0.7676 GB, free: 102.7 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003306/1.56, allocations: 427.3 kB / 0.768 GB, free: 102.7 MB / 0.5262 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01662/1.576, allocations: 9.885 MB / 0.7777 GB, free: 102.7 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02762/1.604, allocations: 15.03 MB / 0.7924 GB, free: 98.8 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003739/1.604, allocations: 86.92 kB / 0.7924 GB, free: 98.8 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001721/1.606, allocations: 46.53 kB / 0.7925 GB, free: 98.8 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002152/1.608, allocations: 1.626 MB / 0.7941 GB, free: 98.79 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07468/1.683, allocations: 73.05 MB / 0.8654 GB, free: 50.95 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006061/1.689, allocations: 5.992 MB / 0.8713 GB, free: 47.83 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003772/1.693, allocations: 3.805 MB / 0.875 GB, free: 46.26 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000717/1.694, allocations: 0.7079 MB / 0.8757 GB, free: 45.67 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.201e-05/1.694, allocations: 63.31 kB / 0.8757 GB, free: 45.61 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=268): time 5.39e-06/1.694, allocations: 0 / 0.8757 GB, free: 45.61 MB / 0.5262 GB Notification: Performance of matching and sorting (n=312): time 0.05718/1.751, allocations: 29.65 MB / 0.9047 GB, free: 25.9 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.882e-05/1.751, allocations: 241.6 kB / 0.9049 GB, free: 25.61 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007224/1.758, allocations: 4.721 MB / 0.9095 GB, free: 21.5 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0009542/1.759, allocations: 29.7 kB / 0.9095 GB, free: 21.47 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.003/1.762, allocations: 4.988 MB / 0.9144 GB, free: 16.95 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.002061/1.764, allocations: 1.151 MB / 0.9155 GB, free: 15.91 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004596/1.765, allocations: 0 / 0.9155 GB, free: 15.91 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0005157/1.765, allocations: 0.6951 MB / 0.9162 GB, free: 15.32 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004592/1.77, allocations: 3.328 MB / 0.9195 GB, free: 12.36 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006198/1.776, allocations: 8.655 MB / 0.9279 GB, free: 1.711 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01011/1.786, allocations: 5.563 MB / 0.9334 GB, free: 13.85 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-05/1.786, allocations: 59.94 kB / 0.9334 GB, free: 13.79 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.02398/1.81, allocations: 12.29 MB / 0.9454 GB, free: 3.277 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001819/1.811, allocations: 88 kB / 0.9455 GB, free: 3.191 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003011/1.811, allocations: 188.8 kB / 0.9457 GB, free: 3.008 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004049/1.815, allocations: 1.722 MB / 0.9474 GB, free: 1.711 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008839/1.824, allocations: 2.298 MB / 0.9496 GB, free: 0 / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0141/1.838, allocations: 10.79 MB / 0.9602 GB, free: 6.371 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007459/1.845, allocations: 348 kB / 0.9605 GB, free: 6.105 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001174/1.847, allocations: 0.54 MB / 0.961 GB, free: 5.582 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 865 * Number of states: 0 () * Number of discrete variables: 77 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque2.torqueArrow.headAtOrigin,forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque2.forceArrow.headAtOrigin,forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque1.torqueArrow.headAtOrigin,forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque1.forceArrow.headAtOrigin,forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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 (1128): * Single equations (assignments): 1123 * 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 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001309/1.848, allocations: 0.5958 MB / 0.9616 GB, free: 4.977 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00096/1.849, allocations: 0.5013 MB / 0.9621 GB, free: 4.469 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3701/2.219, allocations: 6.308 MB / 0.9682 GB, free: 119.2 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.052e-05/2.219, allocations: 32.77 kB / 0.9683 GB, free: 119.2 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-05/2.219, allocations: 12.69 kB / 0.9683 GB, free: 119.2 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.992e-05/2.219, allocations: 15.28 kB / 0.9683 GB, free: 119.2 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03312/2.252, allocations: 13.92 MB / 0.9819 GB, free: 118.6 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-05/2.252, allocations: 10.36 kB / 0.9819 GB, free: 118.5 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002977/2.255, allocations: 0.5944 MB / 0.9825 GB, free: 118.5 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003736/2.259, allocations: 1.406 MB / 0.9839 GB, free: 118.5 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000311/2.26, allocations: 10.7 kB / 0.9839 GB, free: 118.5 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01165/2.271, allocations: 9.895 MB / 0.9935 GB, free: 116 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/2.271, allocations: 1.719 kB / 0.9935 GB, free: 116 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0129/2.284, allocations: 10.77 MB / 1.004 GB, free: 114.9 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001521/2.286, allocations: 0.5317 MB / 1.005 GB, free: 114.8 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005667/2.286, allocations: 10.36 kB / 1.005 GB, free: 114.8 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002095/2.288, allocations: 159.3 kB / 1.005 GB, free: 114.8 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000389/2.289, allocations: 183.6 kB / 1.005 GB, free: 114.8 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002001/2.289, allocations: 79.56 kB / 1.005 GB, free: 114.8 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.004628/2.294, allocations: 3.163 MB / 1.008 GB, free: 114.6 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.7e-07/2.294, allocations: 0 / 1.008 GB, free: 114.6 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.006799/2.3, allocations: 1.442 MB / 1.009 GB, free: 114.6 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 8 (Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 249 * 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 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004836/2.301, allocations: 160.8 kB / 1.01 GB, free: 114.6 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.01125/2.312, allocations: 8.414 MB / 1.018 GB, free: 114.3 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/2.312, allocations: 0 / 1.018 GB, free: 114.3 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.004182/2.316, allocations: 3.225 MB / 1.021 GB, free: 114 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002817/2.319, allocations: 0.5829 MB / 1.022 GB, free: 113.9 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01953/2.339, allocations: 13.13 MB / 1.034 GB, free: 109.3 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005811/2.345, allocations: 5.206 MB / 1.039 GB, free: 107.6 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.007123/2.352, allocations: 2.983 MB / 1.042 GB, free: 107.6 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/2.353, allocations: 360.5 kB / 1.043 GB, free: 107.6 MB / 0.5574 GB Notification: Performance of SimCode: time 1.302e-06/2.353, allocations: 0 / 1.043 GB, free: 107.6 MB / 0.5574 GB Notification: Performance of Templates: time 0.097/2.45, allocations: 53.11 MB / 1.095 GB, free: 84.68 MB / 0.5574 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForcesAndTorques/ForcesAndTorques.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches