Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.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.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_trunk_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_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001462/0.001462, allocations: 195.2 kB / 16.78 MB, free: 4.922 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 226.5 MB / 244.1 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008496/0.00085, allocations: 92.45 kB / 296.1 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3257/0.3257, allocations: 44.81 MB / 392.9 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002876/0.0002876, allocations: 8 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2744, allocations: 62.96 MB / 0.5165 GB, free: 37.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1154/0.3898, allocations: 107.9 MB / 0.6218 GB, free: 13.52 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002113/0.3901, allocations: 87.95 kB / 0.6219 GB, free: 13.43 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.531/0.921, allocations: 156.4 MB / 0.7746 GB, free: 68.03 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.9211, allocations: 0 / 0.7746 GB, free: 68.03 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004816/0.9216, allocations: 156 kB / 0.7748 GB, free: 67.88 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: 2607 * Number of variables: 2607 Notification: Performance of Generate backend data structure: time 0.02416/0.9458, allocations: 8.169 MB / 0.7828 GB, free: 59.61 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.9458, allocations: 15.97 kB / 0.7828 GB, free: 59.6 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03347/0.9793, allocations: 8.632 MB / 0.7912 GB, free: 50.94 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01753/0.9969, allocations: 8.297 MB / 0.7993 GB, free: 42.57 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004876/0.9974, allocations: 0.574 MB / 0.7999 GB, free: 41.99 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00327/1.001, allocations: 0.7695 MB / 0.8006 GB, free: 41.22 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03879/1.039, allocations: 17.97 MB / 0.8182 GB, free: 21.78 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006472/1.04, allocations: 107.2 kB / 0.8183 GB, free: 21.67 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003195/1.043, allocations: 367.8 kB / 0.8186 GB, free: 21.31 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002154/1.046, allocations: 1.571 MB / 0.8202 GB, free: 19.74 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02894/1.075, allocations: 14.37 MB / 0.8342 GB, free: 5.332 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3825/1.457, allocations: 75.37 MB / 0.9078 GB, free: 62.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01654/1.474, allocations: 7.293 MB / 0.9149 GB, free: 62.11 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003837/1.478, allocations: 3.488 MB / 0.9183 GB, free: 62.06 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005346/1.478, allocations: 0.6428 MB / 0.9189 GB, free: 61.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.1e-05/1.478, allocations: 67.31 kB / 0.919 GB, free: 61.46 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=231): time 5.249e-06/1.478, allocations: 1.094 kB / 0.919 GB, free: 61.46 MB / 0.5261 GB Notification: Performance of matching and sorting (n=255): time 0.06876/1.547, allocations: 26.11 MB / 0.9445 GB, free: 55.76 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.258e-05/1.547, allocations: 291.6 kB / 0.9448 GB, free: 55.44 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01398/1.561, allocations: 7.326 MB / 0.9519 GB, free: 54.91 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005129/1.562, allocations: 63.14 kB / 0.952 GB, free: 54.88 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003907/1.566, allocations: 5.363 MB / 0.9572 GB, free: 52.22 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00122/1.567, allocations: 0.9943 MB / 0.9582 GB, free: 51.67 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00061/1.567, allocations: 171.2 kB / 0.9584 GB, free: 51.67 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004413/1.568, allocations: 0.6636 MB / 0.959 GB, free: 51.34 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003908/1.572, allocations: 2.857 MB / 0.9618 GB, free: 51.32 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006225/1.578, allocations: 8.132 MB / 0.9697 GB, free: 43.86 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0107/1.589, allocations: 11.98 MB / 0.9815 GB, free: 34.72 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000174/1.589, allocations: 55.03 kB / 0.9815 GB, free: 34.72 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1110) (initialization): time 0.01931/1.608, allocations: 11.52 MB / 0.9928 GB, free: 30.64 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001104/1.608, allocations: 86.03 kB / 0.9928 GB, free: 30.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002054/1.609, allocations: 182.8 kB / 0.993 GB, free: 30.64 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002251/1.611, allocations: 1.006 MB / 0.994 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005926/1.617, allocations: 1.951 MB / 0.9959 GB, free: 30.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01013/1.627, allocations: 11.26 MB / 1.007 GB, free: 21.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006941/1.634, allocations: 461.3 kB / 1.007 GB, free: 21.29 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001519/1.636, allocations: 0.5118 MB / 1.008 GB, free: 20.79 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 847 * Number of states: 0 () * Number of discrete variables: 74 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.arrow.arrowLine.twoHeadedArrow,frameTorque4.arrow.headAtOrigin,frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.arrow.arrowLine.twoHeadedArrow,frameTorque3.arrow.headAtOrigin,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.arrow.arrowLine.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.arrow.arrowLine.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1030): * Single equations (assignments): 1023 * 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.006726/1.642, allocations: 3.529 MB / 1.011 GB, free: 17.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001208/1.644, allocations: 0.6209 MB / 1.012 GB, free: 17.07 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007059/1.651, allocations: 4.517 MB / 1.016 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.96e-05/1.651, allocations: 31.94 kB / 1.016 GB, free: 13.31 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.937e-05/1.651, allocations: 8 kB / 1.016 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-05/1.651, allocations: 16.14 kB / 1.016 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02297/1.674, allocations: 12.32 MB / 1.028 GB, free: 3.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.97e-05/1.674, allocations: 3.5 kB / 1.028 GB, free: 3.32 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00186/1.676, allocations: 404.5 kB / 1.029 GB, free: 3.004 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001907/1.678, allocations: 0.7018 MB / 1.029 GB, free: 2.477 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003203/1.678, allocations: 44 kB / 1.029 GB, free: 2.434 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01011/1.688, allocations: 10.15 MB / 1.039 GB, free: 8.699 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/1.688, allocations: 4.031 kB / 1.039 GB, free: 8.695 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01141/1.699, allocations: 7.654 MB / 1.047 GB, free: 1.957 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002108/1.702, allocations: 0.6791 MB / 1.048 GB, free: 1.281 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00145/1.703, allocations: 40 kB / 1.048 GB, free: 1.242 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002784/1.706, allocations: 147.4 kB / 1.048 GB, free: 1.141 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004386/1.706, allocations: 148.7 kB / 1.048 GB, free: 1.051 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001779/1.707, allocations: 65.64 kB / 1.048 GB, free: 0.9883 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01898/1.726, allocations: 5.453 MB / 1.053 GB, free: 15.1 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.62e-07/1.726, allocations: 0 / 1.053 GB, free: 15.1 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.009687/1.735, allocations: 1.644 MB / 1.055 GB, free: 13.47 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (195): * Single equations (assignments): 188 * 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.0007648/1.736, allocations: 198 kB / 1.055 GB, free: 13.28 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01185/1.748, allocations: 7.437 MB / 1.062 GB, free: 6.73 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/1.748, allocations: 0 / 1.062 GB, free: 6.73 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003508/1.751, allocations: 2.558 MB / 1.065 GB, free: 4.426 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008104/1.76, allocations: 0.9349 MB / 1.066 GB, free: 3.66 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03544/1.795, allocations: 19.7 MB / 1.085 GB, free: 488 kB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01105/1.806, allocations: 5.408 MB / 1.09 GB, free: 11.08 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001812/1.808, allocations: 463.4 kB / 1.091 GB, free: 10.62 MB / 0.5886 GB Notification: Performance of SimCode: time 1.463e-06/1.808, allocations: 0 / 1.091 GB, free: 10.62 MB / 0.5886 GB Notification: Performance of Templates: time 0.5235/2.332, allocations: 229.9 MB / 1.315 GB, free: 28.84 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameTorques2/FrameTorques2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches