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.001087/0.001087, allocations: 198.3 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 226.5 MB / 243.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000718/0.000718, allocations: 94.98 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3006/0.3006, allocations: 44.83 MB / 392.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004232/0.0004234, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3404, allocations: 62.95 MB / 0.5159 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.09223/0.4327, allocations: 112 MB / 0.6252 GB, free: 9.227 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.05225/0.485, allocations: 22.23 MB / 0.6469 GB, free: 2.914 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02114/0.5062, allocations: 0.5261 MB / 0.6474 GB, free: 2.387 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01742/0.5237, allocations: 5.968 MB / 0.6533 GB, free: 12.39 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04551/0.5692, allocations: 17.17 MB / 0.67 GB, free: 11.15 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007475/0.5767, allocations: 1.287 MB / 0.6713 GB, free: 9.863 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.4119/0.9887, allocations: 121.6 MB / 0.7901 GB, free: 9.438 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01468/1.003, allocations: 10.83 MB / 0.8006 GB, free: 1.676 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005509/1.009, allocations: 2.437 MB / 0.803 GB, free: 44 kB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005813/1.015, allocations: 3.862 MB / 0.8068 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.001395/1.016, allocations: 268 kB / 0.8071 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003701/1.02, allocations: 1.343 MB / 0.8084 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.004468/1.024, allocations: 3.402 MB / 0.8117 GB, free: 9.477 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.005876/1.03, allocations: 3.533 MB / 0.8151 GB, free: 8.238 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.01168/1.042, allocations: 10.46 MB / 0.8253 GB, free: 15.17 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/1.042, allocations: 0 / 0.8253 GB, free: 15.17 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.477e-06/1.042, allocations: 0 / 0.8253 GB, free: 15.17 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0004957/1.043, allocations: 0 / 0.8253 GB, free: 15.17 MB / 0.5573 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.01747/1.06, allocations: 7.637 MB / 0.8328 GB, free: 8.117 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/1.06, allocations: 8.031 kB / 0.8328 GB, free: 8.109 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01741/1.078, allocations: 3.661 MB / 0.8364 GB, free: 4.594 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01391/1.092, allocations: 6.001 MB / 0.8423 GB, free: 196 kB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004558/1.092, allocations: 454.6 kB / 0.8427 GB, free: 15.94 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002841/1.095, allocations: 0.6068 MB / 0.8433 GB, free: 15.54 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03847/1.133, allocations: 17.87 MB / 0.8607 GB, free: 1.594 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005398/1.134, allocations: 88.86 kB / 0.8608 GB, free: 1.539 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002302/1.136, allocations: 287.2 kB / 0.8611 GB, free: 1.461 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005904/1.142, allocations: 3.131 MB / 0.8641 GB, free: 14.87 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03297/1.175, allocations: 14.94 MB / 0.8787 GB, free: 4.387 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5446/1.72, allocations: 66.46 MB / 0.9436 GB, free: 204.1 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03193/1.752, allocations: 6.631 MB / 0.9501 GB, free: 203.4 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009456/1.761, allocations: 3.874 MB / 0.9539 GB, free: 202 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001073/1.762, allocations: 0.6456 MB / 0.9545 GB, free: 201.4 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.726e-05/1.763, allocations: 61.58 kB / 0.9546 GB, free: 201.3 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=231): time 1.318e-05/1.763, allocations: 0 / 0.9546 GB, free: 201.3 MB / 0.6043 GB Notification: Performance of matching and sorting (n=255): time 0.1539/1.917, allocations: 31.54 MB / 0.9854 GB, free: 189.5 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/1.917, allocations: 293 kB / 0.9857 GB, free: 189.2 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01945/1.936, allocations: 7.369 MB / 0.9929 GB, free: 185.4 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 0.000969/1.937, allocations: 63.42 kB / 0.9929 GB, free: 185.3 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 0.005495/1.943, allocations: 5.256 MB / 0.9981 GB, free: 180.8 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 0.001985/1.945, allocations: 1.005 MB / 0.999 GB, free: 179.9 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001398/1.946, allocations: 180 kB / 0.9992 GB, free: 179.7 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 0.0009158/1.947, allocations: 0.6902 MB / 0.9999 GB, free: 179 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00908/1.956, allocations: 3.402 MB / 1.003 GB, free: 175.6 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01252/1.969, allocations: 8.674 MB / 1.012 GB, free: 164.6 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02039/1.989, allocations: 12.91 MB / 1.024 GB, free: 149.2 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002006/1.99, allocations: 52 kB / 1.024 GB, free: 149.1 MB / 0.6043 GB Notification: Performance of matching and sorting (n=1178) (initialization): time 0.03879/2.028, allocations: 13.87 MB / 1.038 GB, free: 135.2 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002603/2.029, allocations: 84 kB / 1.038 GB, free: 135.1 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002998/2.029, allocations: 184.1 kB / 1.038 GB, free: 135 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01001/2.039, allocations: 2.321 MB / 1.04 GB, free: 132.6 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01206/2.051, allocations: 2.051 MB / 1.042 GB, free: 130.6 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02971/2.081, allocations: 15.58 MB / 1.058 GB, free: 114.5 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01254/2.093, allocations: 0.5111 MB / 1.058 GB, free: 114 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002143/2.096, allocations: 0.5195 MB / 1.059 GB, free: 113.4 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.01053/2.106, allocations: 3.531 MB / 1.062 GB, free: 109.9 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002076/2.108, allocations: 0.6117 MB / 1.063 GB, free: 109.3 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02075/2.129, allocations: 6.446 MB / 1.069 GB, free: 102.8 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.92e-05/2.129, allocations: 27.36 kB / 1.069 GB, free: 102.8 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-05/2.129, allocations: 12 kB / 1.069 GB, free: 102.8 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.51e-05/2.129, allocations: 11.95 kB / 1.069 GB, free: 102.8 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04132/2.171, allocations: 14.55 MB / 1.083 GB, free: 88.17 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-05/2.171, allocations: 0 / 1.083 GB, free: 88.17 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002344/2.173, allocations: 411.4 kB / 1.084 GB, free: 87.77 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004913/2.178, allocations: 1.994 MB / 1.086 GB, free: 85.76 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003667/2.178, allocations: 40 kB / 1.086 GB, free: 85.72 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01348/2.192, allocations: 14.46 MB / 1.1 GB, free: 70.73 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/2.192, allocations: 4.031 kB / 1.1 GB, free: 70.72 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01407/2.206, allocations: 10.11 MB / 1.11 GB, free: 60.52 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001997/2.208, allocations: 0.692 MB / 1.11 GB, free: 59.8 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001303/2.209, allocations: 48 kB / 1.11 GB, free: 59.75 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00312/2.213, allocations: 196.8 kB / 1.111 GB, free: 59.56 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006101/2.213, allocations: 145.7 kB / 1.111 GB, free: 59.42 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002251/2.213, allocations: 73.31 kB / 1.111 GB, free: 59.35 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 0.006915/2.22, allocations: 4.681 MB / 1.115 GB, free: 54.7 MB / 0.6043 GB Notification: Performance of sort global known variables: time 4.6e-07/2.22, allocations: 3.938 kB / 1.115 GB, free: 54.69 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.008106/2.229, allocations: 1.776 MB / 1.117 GB, free: 52.92 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.0007877/2.229, allocations: 183.9 kB / 1.117 GB, free: 52.73 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.01189/2.241, allocations: 8.502 MB / 1.126 GB, free: 44.23 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/2.241, allocations: 4.25 kB / 1.126 GB, free: 44.23 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.003491/2.245, allocations: 2.922 MB / 1.128 GB, free: 41.25 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00608/2.251, allocations: 0.8741 MB / 1.129 GB, free: 40.39 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02684/2.278, allocations: 20.17 MB / 1.149 GB, free: 20.18 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006093/2.284, allocations: 5.373 MB / 1.154 GB, free: 14.79 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001685/2.286, allocations: 459.4 kB / 1.155 GB, free: 14.34 MB / 0.6043 GB Notification: Performance of SimCode: time 1.442e-06/2.286, allocations: 0 / 1.155 GB, free: 14.34 MB / 0.6043 GB Notification: Performance of Templates: time 0.4329/2.719, allocations: 230.5 MB / 1.38 GB, free: 42.1 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