Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_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_ModelicaTest.MultiBody.Forces.FrameTorques2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002003/0.002004, allocations: 201.4 kB / 18.11 MB, free: 3.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 226.5 MB / 245.4 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000826/0.0008261, allocations: 104.7 kB / 297.5 MB, free: 6.875 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3787/0.3787, allocations: 44.83 MB / 394.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002765/0.0002767, allocations: 8 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3982/0.3985, allocations: 62.96 MB / 0.5184 GB, free: 37.49 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1975/0.5961, allocations: 107.9 MB / 0.6237 GB, free: 13.38 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.5963, allocations: 87.94 kB / 0.6238 GB, free: 13.3 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6201/1.216, allocations: 156.4 MB / 0.7766 GB, free: 67.89 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.956e-06/1.217, allocations: 0 / 0.7766 GB, free: 67.89 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000673/1.217, allocations: 159.9 kB / 0.7767 GB, free: 67.73 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.03478/1.252, allocations: 8.173 MB / 0.7847 GB, free: 59.46 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/1.252, allocations: 11.97 kB / 0.7847 GB, free: 59.45 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03311/1.285, allocations: 8.643 MB / 0.7932 GB, free: 50.78 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02252/1.308, allocations: 8.29 MB / 0.8013 GB, free: 42.41 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005873/1.308, allocations: 0.574 MB / 0.8018 GB, free: 41.84 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004067/1.312, allocations: 0.7656 MB / 0.8026 GB, free: 41.07 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04415/1.357, allocations: 17.97 MB / 0.8201 GB, free: 21.63 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008691/1.358, allocations: 107.2 kB / 0.8202 GB, free: 21.52 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00419/1.362, allocations: 371.8 kB / 0.8206 GB, free: 21.16 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002354/1.364, allocations: 1.571 MB / 0.8221 GB, free: 19.59 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0316/1.396, allocations: 14.37 MB / 0.8361 GB, free: 5.18 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6664/2.062, allocations: 75.36 MB / 0.9097 GB, free: 61.14 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01637/2.079, allocations: 7.29 MB / 0.9169 GB, free: 60.45 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004135/2.083, allocations: 3.48 MB / 0.9202 GB, free: 60.4 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005068/2.083, allocations: 0.653 MB / 0.9209 GB, free: 59.84 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.034e-05/2.083, allocations: 65.78 kB / 0.9209 GB, free: 59.8 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=231): time 5.21e-06/2.083, allocations: 0 / 0.9209 GB, free: 59.8 MB / 0.5262 GB Notification: Performance of matching and sorting (n=255): time 0.06055/2.144, allocations: 26.12 MB / 0.9465 GB, free: 54.1 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.57e-05/2.144, allocations: 283.8 kB / 0.9467 GB, free: 53.78 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01298/2.157, allocations: 7.328 MB / 0.9539 GB, free: 53.25 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0006037/2.158, allocations: 64.23 kB / 0.9539 GB, free: 53.21 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.004227/2.162, allocations: 5.368 MB / 0.9592 GB, free: 50.56 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001227/2.163, allocations: 0.9968 MB / 0.9602 GB, free: 50 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005168/2.164, allocations: 165.2 kB / 0.9603 GB, free: 50 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0004359/2.164, allocations: 0.6672 MB / 0.961 GB, free: 49.68 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003787/2.168, allocations: 2.857 MB / 0.9638 GB, free: 49.65 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006033/2.174, allocations: 8.126 MB / 0.9717 GB, free: 42.2 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01144/2.186, allocations: 11.98 MB / 0.9834 GB, free: 33.06 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001448/2.186, allocations: 54.03 kB / 0.9834 GB, free: 33.06 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1110) (initialization): time 0.01762/2.203, allocations: 11.52 MB / 0.9947 GB, free: 28.99 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 9.804e-05/2.204, allocations: 86.22 kB / 0.9948 GB, free: 28.99 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002198/2.204, allocations: 184.9 kB / 0.995 GB, free: 28.99 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002202/2.206, allocations: 1.002 MB / 0.9959 GB, free: 28.79 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005845/2.212, allocations: 1.951 MB / 0.9978 GB, free: 28.54 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009876/2.222, allocations: 11.27 MB / 1.009 GB, free: 19.69 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006928/2.229, allocations: 458.6 kB / 1.009 GB, free: 19.28 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001367/2.23, allocations: 0.5125 MB / 1.01 GB, free: 18.78 MB / 0.5262 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.009591/2.24, allocations: 3.521 MB / 1.013 GB, free: 15.7 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002016/2.242, allocations: 0.617 MB / 1.014 GB, free: 15.07 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01052/2.252, allocations: 4.525 MB / 1.018 GB, free: 11.34 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.088e-05/2.252, allocations: 35.06 kB / 1.018 GB, free: 11.31 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.473e-05/2.252, allocations: 12 kB / 1.018 GB, free: 11.3 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-05/2.252, allocations: 9.516 kB / 1.018 GB, free: 11.3 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03271/2.285, allocations: 12.31 MB / 1.03 GB, free: 1.32 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.096e-05/2.285, allocations: 0 / 1.03 GB, free: 1.32 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002669/2.288, allocations: 405 kB / 1.031 GB, free: 1.004 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002274/2.29, allocations: 0.7066 MB / 1.031 GB, free: 480 kB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003022/2.29, allocations: 40 kB / 1.031 GB, free: 440 kB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01188/2.302, allocations: 10.16 MB / 1.041 GB, free: 6.707 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/2.302, allocations: 7.938 kB / 1.041 GB, free: 6.699 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01337/2.316, allocations: 7.669 MB / 1.049 GB, free: 0 / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002307/2.318, allocations: 0.6803 MB / 1.05 GB, free: 15.32 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001717/2.32, allocations: 43.94 kB / 1.05 GB, free: 15.28 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00325/2.323, allocations: 149.7 kB / 1.05 GB, free: 15.18 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004741/2.324, allocations: 143.5 kB / 1.05 GB, free: 15.09 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002376/2.324, allocations: 69.38 kB / 1.05 GB, free: 15.03 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.01024/2.334, allocations: 4.665 MB / 1.054 GB, free: 11.23 MB / 0.5574 GB Notification: Performance of sort global known variables: time 2.8e-07/2.334, allocations: 0 / 1.054 GB, free: 11.23 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.009878/2.344, allocations: 1.642 MB / 1.056 GB, free: 9.598 MB / 0.5574 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.0007679/2.345, allocations: 196 kB / 1.056 GB, free: 9.41 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.01297/2.358, allocations: 7.434 MB / 1.064 GB, free: 2.863 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/2.358, allocations: 0 / 1.064 GB, free: 2.863 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.00394/2.362, allocations: 2.565 MB / 1.066 GB, free: 0.5508 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01017/2.372, allocations: 1.012 MB / 1.067 GB, free: 0 / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03599/2.408, allocations: 18.96 MB / 1.086 GB, free: 15.05 MB / 0.5887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01354/2.422, allocations: 5.417 MB / 1.091 GB, free: 9.926 MB / 0.5887 GB Notification: Performance of simCode: alias equations: time 0.009485/2.431, allocations: 2.722 MB / 1.093 GB, free: 7.219 MB / 0.5887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001816/2.433, allocations: 403.4 kB / 1.094 GB, free: 6.824 MB / 0.5887 GB Notification: Performance of SimCode: time 8.12e-07/2.433, allocations: 0 / 1.094 GB, free: 6.824 MB / 0.5887 GB Notification: Performance of Templates: time 0.3902/2.823, allocations: 62.01 MB / 1.154 GB, free: 169.2 MB / 0.6043 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_ModelicaTest.MultiBody.Forces.FrameTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches