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.001192/0.001192, allocations: 201.1 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007697/0.0007697, allocations: 98.55 kB / 295.1 MB, free: 10.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1785/0.1785, allocations: 44.84 MB / 392 MB, free: 9.301 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002181/0.0002181, allocations: 8 kB / 464.7 MB, free: 49.74 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08262/0.08285, allocations: 62.96 MB / 0.5153 GB, free: 2.742 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.2755/0.3583, allocations: 111.9 MB / 0.6246 GB, free: 13.43 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.04798/0.4064, allocations: 22.25 MB / 0.6464 GB, free: 7.105 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01866/0.4251, allocations: 0.5183 MB / 0.6469 GB, free: 6.586 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01556/0.4407, allocations: 5.964 MB / 0.6527 GB, free: 0.5938 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03921/0.4799, allocations: 17.16 MB / 0.6695 GB, free: 15.38 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005734/0.4856, allocations: 1.237 MB / 0.6707 GB, free: 14.14 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.3633/0.849, allocations: 121.5 MB / 0.7894 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01138/0.8604, allocations: 9.791 MB / 0.7989 GB, free: 17.16 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00553/0.8659, allocations: 2.449 MB / 0.8013 GB, free: 15.52 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005655/0.8716, allocations: 3.861 MB / 0.8051 GB, free: 12.78 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.001487/0.8731, allocations: 268 kB / 0.8053 GB, free: 12.52 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003103/0.8763, allocations: 1.146 MB / 0.8065 GB, free: 11.59 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.003269/0.8795, allocations: 3.401 MB / 0.8098 GB, free: 9.094 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.002507/0.8821, allocations: 1.541 MB / 0.8113 GB, free: 8.555 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.01003/0.8921, allocations: 10.45 MB / 0.8215 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 8.285e-06/0.8922, allocations: 4 kB / 0.8215 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.135e-06/0.8922, allocations: 0 / 0.8215 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004273/0.8926, allocations: 0 / 0.8215 GB, free: 15.5 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: 2607 * Number of variables: 2607 Notification: Performance of Generate backend data structure: time 0.01937/0.912, allocations: 7.737 MB / 0.829 GB, free: 8.348 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.9121, allocations: 8.031 kB / 0.829 GB, free: 8.34 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01793/0.93, allocations: 3.669 MB / 0.8326 GB, free: 4.82 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0138/0.9438, allocations: 5.886 MB / 0.8384 GB, free: 0.5312 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004035/0.9443, allocations: 461.3 kB / 0.8388 GB, free: 284 kB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002659/0.947, allocations: 0.5995 MB / 0.8394 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03683/0.9838, allocations: 17.87 MB / 0.8569 GB, free: 1.938 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005551/0.9844, allocations: 90 kB / 0.8569 GB, free: 1.887 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002115/0.9865, allocations: 281.3 kB / 0.8572 GB, free: 1.809 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00576/0.9923, allocations: 3.133 MB / 0.8603 GB, free: 15.21 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02941/1.022, allocations: 14.93 MB / 0.8748 GB, free: 4.738 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4562/1.478, allocations: 66.43 MB / 0.9397 GB, free: 236.1 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01704/1.495, allocations: 6.623 MB / 0.9462 GB, free: 235.4 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004743/1.5, allocations: 3.878 MB / 0.95 GB, free: 235.4 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005548/1.5, allocations: 0.6502 MB / 0.9506 GB, free: 234.8 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/1.5, allocations: 67.27 kB / 0.9507 GB, free: 234.8 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=231): time 4.799e-06/1.5, allocations: 0 / 0.9507 GB, free: 234.8 MB / 0.6043 GB Notification: Performance of matching and sorting (n=255): time 0.0706/1.571, allocations: 31.52 MB / 0.9815 GB, free: 225.3 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.811e-05/1.571, allocations: 287.8 kB / 0.9817 GB, free: 225 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0074/1.579, allocations: 7.382 MB / 0.9889 GB, free: 221.2 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 0.0004197/1.579, allocations: 61.14 kB / 0.989 GB, free: 221.2 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 0.002127/1.581, allocations: 5.253 MB / 0.9941 GB, free: 216.6 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007196/1.582, allocations: 1.003 MB / 0.9951 GB, free: 215.8 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003145/1.582, allocations: 178.1 kB / 0.9953 GB, free: 215.6 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 0.0002913/1.582, allocations: 0.6895 MB / 0.996 GB, free: 215.1 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003642/1.586, allocations: 3.408 MB / 0.9993 GB, free: 212.8 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004911/1.591, allocations: 8.679 MB / 1.008 GB, free: 201.8 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00509/1.596, allocations: 5.279 MB / 1.013 GB, free: 196.9 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.314e-05/1.596, allocations: 56.16 kB / 1.013 GB, free: 196.8 MB / 0.6043 GB Notification: Performance of matching and sorting (n=1178) (initialization): time 0.01841/1.615, allocations: 13.87 MB / 1.027 GB, free: 183.1 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 8.341e-05/1.615, allocations: 84 kB / 1.027 GB, free: 183 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001365/1.615, allocations: 184.6 kB / 1.027 GB, free: 182.8 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005023/1.62, allocations: 2.348 MB / 1.029 GB, free: 180.4 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005731/1.626, allocations: 2.047 MB / 1.031 GB, free: 178.4 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01423/1.64, allocations: 15.57 MB / 1.046 GB, free: 162.3 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00648/1.646, allocations: 0.4993 MB / 1.047 GB, free: 161.8 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001017/1.647, allocations: 0.5351 MB / 1.047 GB, free: 161.3 MB / 0.6043 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 839 * Number of states: 0 () * Number of discrete variables: 74 (frameTorque4.arrow.arrowLine.twoHeadedArrow,frameTorque4.arrow.headAtOrigin,frameTorque3.arrow.arrowLine.twoHeadedArrow,frameTorque3.arrow.headAtOrigin,frameTorque2.arrow.arrowLine.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque1.arrow.arrowLine.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1098): * Single equations (assignments): 1091 * 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 {(2,100.0%) 13,(2,100.0%) 13,(1,100.0%) 14,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004606/1.652, allocations: 3.529 MB / 1.051 GB, free: 157.7 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/1.653, allocations: 0.6093 MB / 1.051 GB, free: 157.1 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009034/1.662, allocations: 6.442 MB / 1.058 GB, free: 150.6 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.888e-05/1.662, allocations: 32 kB / 1.058 GB, free: 150.6 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.51e-05/1.662, allocations: 8 kB / 1.058 GB, free: 150.6 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.915e-05/1.662, allocations: 11.97 kB / 1.058 GB, free: 150.6 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02005/1.682, allocations: 14.55 MB / 1.072 GB, free: 136 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/1.682, allocations: 4 kB / 1.072 GB, free: 136 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001671/1.684, allocations: 399.4 kB / 1.072 GB, free: 135.6 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004358/1.688, allocations: 1.99 MB / 1.074 GB, free: 133.6 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000165/1.689, allocations: 49.94 kB / 1.074 GB, free: 133.6 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01242/1.701, allocations: 14.47 MB / 1.088 GB, free: 118.6 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/1.701, allocations: 0 / 1.088 GB, free: 118.6 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01225/1.713, allocations: 10.11 MB / 1.098 GB, free: 108.4 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001636/1.715, allocations: 0.6921 MB / 1.099 GB, free: 107.7 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006455/1.716, allocations: 43.95 kB / 1.099 GB, free: 107.6 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002151/1.718, allocations: 189.1 kB / 1.099 GB, free: 107.4 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003523/1.718, allocations: 157.7 kB / 1.099 GB, free: 107.3 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001619/1.718, allocations: 67.98 kB / 1.099 GB, free: 107.2 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 0.00529/1.724, allocations: 4.681 MB / 1.104 GB, free: 102.6 MB / 0.6043 GB Notification: Performance of sort global known variables: time 1.2e-07/1.724, allocations: 0 / 1.104 GB, free: 102.6 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.005959/1.73, allocations: 1.778 MB / 1.106 GB, free: 100.8 MB / 0.6043 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.0004557/1.73, allocations: 183.9 kB / 1.106 GB, free: 100.6 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.009098/1.739, allocations: 8.497 MB / 1.114 GB, free: 92.12 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 5.81e-06/1.739, allocations: 6.344 kB / 1.114 GB, free: 92.12 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.002827/1.742, allocations: 2.932 MB / 1.117 GB, free: 89.14 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003805/1.746, allocations: 0.8915 MB / 1.118 GB, free: 88.26 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02218/1.768, allocations: 20.18 MB / 1.138 GB, free: 68.04 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004575/1.773, allocations: 5.362 MB / 1.143 GB, free: 62.65 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001509/1.774, allocations: 463.3 kB / 1.143 GB, free: 62.2 MB / 0.6043 GB Notification: Performance of SimCode: time 8.32e-07/1.774, allocations: 0 / 1.143 GB, free: 62.2 MB / 0.6043 GB Notification: Performance of Templates: time 0.419/2.193, allocations: 230.8 MB / 1.369 GB, free: 75.83 MB / 0.6043 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/jenkins/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