Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.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.FrameForcesAndTorques2,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.FrameForcesAndTorques2") translateModel(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,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.FrameForcesAndTorques2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001409/0.001409, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 225.6 MB / 234.8 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009321/0.000932, allocations: 87.91 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2089/0.2089, allocations: 45.14 MB / 383.8 MB, free: 288 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.404e-05/1.407e-05, allocations: 3.938 kB / 453.2 MB, free: 75.82 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1182, allocations: 63.25 MB / 0.5044 GB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4172/0.5354, allocations: 108.2 MB / 0.61 GB, free: 10.64 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002176/0.5357, allocations: 78.02 kB / 0.6101 GB, free: 10.6 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2954/0.8311, allocations: 121.7 MB / 0.7289 GB, free: 8.883 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.713e-06/0.8311, allocations: 0 / 0.7289 GB, free: 8.883 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003401/0.8315, allocations: 124 kB / 0.729 GB, free: 8.762 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2137 * Number of variables: 2137 Notification: Performance of Generate backend data structure: time 0.01932/0.8508, allocations: 6.016 MB / 0.7349 GB, free: 2.672 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.8509, allocations: 8.031 kB / 0.7349 GB, free: 2.664 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02737/0.8783, allocations: 7.008 MB / 0.7418 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01467/0.893, allocations: 6.005 MB / 0.7476 GB, free: 5.57 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002926/0.8933, allocations: 196 kB / 0.7478 GB, free: 5.379 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002325/0.8956, allocations: 363.9 kB / 0.7482 GB, free: 5.023 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2992/1.195, allocations: 8.413 MB / 0.7564 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02617/1.221, allocations: 12.98 MB / 0.7691 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003201/1.221, allocations: 81.7 kB / 0.7691 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009914/1.222, allocations: 40.22 kB / 0.7692 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00254/1.225, allocations: 1.355 MB / 0.7705 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05906/1.284, allocations: 62.41 MB / 0.8314 GB, free: 73.62 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004953/1.289, allocations: 4.849 MB / 0.8362 GB, free: 71.34 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003258/1.292, allocations: 3.243 MB / 0.8393 GB, free: 70 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000127/1.292, allocations: 45.22 kB / 0.8394 GB, free: 70 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.274e-05/1.292, allocations: 54.47 kB / 0.8394 GB, free: 69.95 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=218): time 5.521e-06/1.292, allocations: 0 / 0.8394 GB, free: 69.95 MB / 0.5261 GB Notification: Performance of matching and sorting (n=262): time 0.04697/1.339, allocations: 26.36 MB / 0.8652 GB, free: 60.66 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.472e-05/1.34, allocations: 208.3 kB / 0.8654 GB, free: 60.44 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004901/1.344, allocations: 3.972 MB / 0.8692 GB, free: 59 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003937/1.345, allocations: 25.7 kB / 0.8693 GB, free: 58.96 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001841/1.347, allocations: 4.281 MB / 0.8735 GB, free: 55.77 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009084/1.348, allocations: 0.9696 MB / 0.8744 GB, free: 55.05 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000309/1.348, allocations: 3.656 kB / 0.8744 GB, free: 55.05 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003311/1.348, allocations: 0.633 MB / 0.875 GB, free: 54.61 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003475/1.352, allocations: 3.03 MB / 0.878 GB, free: 53.54 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005542/1.357, allocations: 7.588 MB / 0.8854 GB, free: 46.32 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005987/1.363, allocations: 4.732 MB / 0.89 GB, free: 42.69 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.957e-05/1.363, allocations: 48 kB / 0.8901 GB, free: 42.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1016) (initialization): time 0.01761/1.381, allocations: 11.08 MB / 0.9009 GB, free: 33.21 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.579e-05/1.381, allocations: 72 kB / 0.9009 GB, free: 33.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001513/1.381, allocations: 164 kB / 0.9011 GB, free: 32.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003558/1.385, allocations: 1.684 MB / 0.9028 GB, free: 31.72 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006121/1.391, allocations: 1.867 MB / 0.9046 GB, free: 30.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01162/1.403, allocations: 10.75 MB / 0.9151 GB, free: 20.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006518/1.409, allocations: 315.6 kB / 0.9154 GB, free: 20.33 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001676/1.411, allocations: 474 kB / 0.9158 GB, free: 19.88 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * Number of states: 0 () * Number of discrete variables: 62 (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 (944): * Single equations (assignments): 939 * 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.002389/1.413, allocations: 0.5311 MB / 0.9163 GB, free: 19.35 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001365/1.415, allocations: 437.9 kB / 0.9168 GB, free: 18.92 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01203/1.427, allocations: 5.912 MB / 0.9225 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.971e-05/1.427, allocations: 28 kB / 0.9226 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.459e-05/1.427, allocations: 11.94 kB / 0.9226 GB, free: 14.16 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.145e-05/1.427, allocations: 10.41 kB / 0.9226 GB, free: 14.16 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02258/1.45, allocations: 12.59 MB / 0.9349 GB, free: 4.035 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.44e-05/1.45, allocations: 3.656 kB / 0.9349 GB, free: 4.035 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002426/1.452, allocations: 0.4922 MB / 0.9354 GB, free: 3.664 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003281/1.455, allocations: 1.402 MB / 0.9367 GB, free: 2.684 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003611/1.456, allocations: 11.95 kB / 0.9367 GB, free: 2.672 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01299/1.469, allocations: 9.888 MB / 0.9464 GB, free: 9.832 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/1.469, allocations: 0 / 0.9464 GB, free: 9.832 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01732/1.486, allocations: 9.866 MB / 0.956 GB, free: 0.6641 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001494/1.488, allocations: 467.3 kB / 0.9565 GB, free: 188 kB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001335/1.489, allocations: 7.938 kB / 0.9565 GB, free: 180 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00293/1.492, allocations: 179.7 kB / 0.9567 GB, free: 0 / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2938/1.786, allocations: 149.9 kB / 0.9568 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002776/1.786, allocations: 66.31 kB / 0.9569 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.004411/1.791, allocations: 2.657 MB / 0.9595 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.61e-07/1.791, allocations: 1.5 kB / 0.9595 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007432/1.798, allocations: 1.272 MB / 0.9607 GB, free: 117.6 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (204): * Single equations (assignments): 199 * 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.000529/1.799, allocations: 152.8 kB / 0.9608 GB, free: 117.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01294/1.811, allocations: 7.696 MB / 0.9684 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/1.812, allocations: 1.312 kB / 0.9684 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005553/1.817, allocations: 3.07 MB / 0.9714 GB, free: 117 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003413/1.821, allocations: 0.5113 MB / 0.9719 GB, free: 117 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02084/1.841, allocations: 11.47 MB / 0.9831 GB, free: 114.9 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004061/1.846, allocations: 4.551 MB / 0.9875 GB, free: 114.1 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.00574/1.851, allocations: 2.551 MB / 0.99 GB, free: 114 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001162/1.852, allocations: 316.4 kB / 0.9903 GB, free: 114 MB / 0.5417 GB Notification: Performance of SimCode: time 1.152e-06/1.852, allocations: 0 / 0.9903 GB, free: 114 MB / 0.5417 GB Notification: Performance of Templates: time 0.07698/1.929, allocations: 48.29 MB / 1.037 GB, free: 111.9 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameForcesAndTorques2/FrameForcesAndTorques2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches