Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques,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_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques") translateModel(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques,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_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001581/0.001581, allocations: 175.4 kB / 8.743 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.566/1.566, allocations: 221.5 MB / 230.7 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008831/0.0008831, allocations: 90.12 kB / 281.6 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2017/0.2017, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.736e-05/1.73e-05, allocations: 4.219 kB / 444.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1305, allocations: 61.92 MB / 0.4947 GB, free: 1.262 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4409/0.5714, allocations: 108.9 MB / 0.601 GB, free: 3.605 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/0.5717, allocations: 75.97 kB / 0.6011 GB, free: 3.531 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6311/1.203, allocations: 124.7 MB / 0.7229 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.793e-06/1.203, allocations: 0 / 0.7229 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004656/1.203, allocations: 122.4 kB / 0.723 GB, free: 105.2 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2215 * Number of variables: 2215 Notification: Performance of Generate backend data structure: time 0.02271/1.226, allocations: 6.29 MB / 0.7292 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.439e-05/1.226, allocations: 10.23 kB / 0.7292 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02798/1.254, allocations: 7.067 MB / 0.7361 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01675/1.271, allocations: 6.931 MB / 0.7428 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002784/1.271, allocations: 206.8 kB / 0.743 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002457/1.274, allocations: 371.5 kB / 0.7434 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01369/1.288, allocations: 8.713 MB / 0.7519 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02417/1.312, allocations: 13.4 MB / 0.765 GB, free: 94.67 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004505/1.312, allocations: 83.66 kB / 0.7651 GB, free: 94.66 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003287/1.316, allocations: 38.88 kB / 0.7651 GB, free: 94.66 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002196/1.318, allocations: 1.435 MB / 0.7665 GB, free: 94.41 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06771/1.385, allocations: 64.66 MB / 0.8297 GB, free: 40.9 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005159/1.391, allocations: 4.848 MB / 0.8344 GB, free: 36.39 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003242/1.394, allocations: 3.205 MB / 0.8375 GB, free: 33.46 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001271/1.394, allocations: 44.67 kB / 0.8376 GB, free: 33.42 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/1.394, allocations: 56.12 kB / 0.8376 GB, free: 33.36 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=224): time 5.771e-06/1.394, allocations: 0 / 0.8376 GB, free: 33.36 MB / 0.4948 GB Notification: Performance of matching and sorting (n=268): time 0.04796/1.442, allocations: 26.06 MB / 0.8631 GB, free: 7.973 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.828e-05/1.442, allocations: 239.7 kB / 0.8633 GB, free: 7.691 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006101/1.448, allocations: 4.253 MB / 0.8675 GB, free: 3.445 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007918/1.449, allocations: 25.7 kB / 0.8675 GB, free: 3.414 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002606/1.452, allocations: 4.516 MB / 0.8719 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001463/1.453, allocations: 0.9946 MB / 0.8729 GB, free: 13.83 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004249/1.454, allocations: 0 / 0.8729 GB, free: 13.83 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004497/1.454, allocations: 0.6491 MB / 0.8735 GB, free: 13.17 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004575/1.459, allocations: 2.987 MB / 0.8764 GB, free: 10.18 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007914/1.467, allocations: 7.775 MB / 0.884 GB, free: 15.99 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007455/1.474, allocations: 4.756 MB / 0.8887 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001107/1.474, allocations: 52 kB / 0.8887 GB, free: 11.18 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1064) (initialization): time 0.3654/1.84, allocations: 11.17 MB / 0.8996 GB, free: 115 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002268/1.84, allocations: 79.41 kB / 0.8997 GB, free: 115 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000416/1.84, allocations: 170 kB / 0.8998 GB, free: 115 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005331/1.846, allocations: 1.683 MB / 0.9015 GB, free: 115 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007695/1.854, allocations: 1.912 MB / 0.9034 GB, free: 115 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01561/1.869, allocations: 10.76 MB / 0.9139 GB, free: 112.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007077/1.876, allocations: 312.1 kB / 0.9142 GB, free: 112.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002009/1.878, allocations: 0.49 MB / 0.9146 GB, free: 112.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * Number of states: 0 () * Number of discrete variables: 65 (FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.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],frameTorque2.torqueArrow.arrowLine.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceArrow.arrowLine.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueArrow.arrowLine.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceArrow.arrowLine.twoHeadedArrow,frameTorque1.forceArrow.headAtOrigin,frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (992): * Single equations (assignments): 987 * 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.001579/1.88, allocations: 0.5408 MB / 0.9152 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001056/1.881, allocations: 467 kB / 0.9156 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01016/1.891, allocations: 5.756 MB / 0.9212 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.269e-05/1.891, allocations: 28.22 kB / 0.9213 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.916e-05/1.891, allocations: 7.25 kB / 0.9213 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.118e-05/1.891, allocations: 14.16 kB / 0.9213 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02285/1.914, allocations: 12.45 MB / 0.9334 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.696e-05/1.914, allocations: 2.531 kB / 0.9334 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002239/1.916, allocations: 464.7 kB / 0.9339 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003164/1.92, allocations: 1.398 MB / 0.9353 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000269/1.92, allocations: 11.89 kB / 0.9353 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01089/1.931, allocations: 9.945 MB / 0.945 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/1.931, allocations: 0 / 0.945 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01275/1.944, allocations: 9.631 MB / 0.9544 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001754/1.945, allocations: 493.7 kB / 0.9549 GB, free: 103 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008039/1.946, allocations: 2.281 kB / 0.9549 GB, free: 103 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002057/1.948, allocations: 140.8 kB / 0.955 GB, free: 103 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003905/1.949, allocations: 158.2 kB / 0.9551 GB, free: 103 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001808/1.949, allocations: 65.25 kB / 0.9552 GB, free: 103 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004436/1.953, allocations: 2.86 MB / 0.958 GB, free: 102 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.41e-07/1.953, allocations: 0 / 0.958 GB, free: 102 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008803/1.962, allocations: 1.3 MB / 0.9593 GB, free: 102 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (210): * Single equations (assignments): 205 * 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.0007178/1.963, allocations: 154 kB / 0.9594 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01358/1.977, allocations: 7.617 MB / 0.9668 GB, free: 99.52 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/1.977, allocations: 1.906 kB / 0.9668 GB, free: 99.52 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005148/1.982, allocations: 3.004 MB / 0.9698 GB, free: 98.36 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003782/1.986, allocations: 0.5494 MB / 0.9703 GB, free: 98.14 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02341/2.009, allocations: 11.8 MB / 0.9818 GB, free: 94.05 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005068/2.014, allocations: 4.748 MB / 0.9865 GB, free: 92.46 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006259/2.02, allocations: 2.647 MB / 0.9891 GB, free: 92.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00111/2.022, allocations: 325 kB / 0.9894 GB, free: 92.39 MB / 0.5261 GB Notification: Performance of SimCode: time 1.573e-06/2.022, allocations: 0 / 0.9894 GB, free: 92.39 MB / 0.5261 GB Notification: Performance of Templates: time 0.08/2.102, allocations: 48.95 MB / 1.037 GB, free: 53.05 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameForcesAndTorques/FrameForcesAndTorques.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches