Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001042/0.001042, allocations: 201.9 kB / 18.11 MB, free: 3.617 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 226.5 MB / 245.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008738/0.0008739, allocations: 97.64 kB / 297.5 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002158/0.0002159, allocations: 4 kB / 358.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2206/0.2208, allocations: 51.29 MB / 409.4 MB, free: 27.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1172/0.338, allocations: 101.2 MB / 0.4986 GB, free: 6.273 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/0.3384, allocations: 87.95 kB / 0.4987 GB, free: 6.188 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3863/0.7247, allocations: 91.65 MB / 0.5882 GB, free: 23.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.7247, allocations: 0 / 0.5882 GB, free: 23.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002654/0.725, allocations: 88 kB / 0.5883 GB, free: 23.48 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.01784/0.7428, allocations: 4.575 MB / 0.5928 GB, free: 18.83 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.7429, allocations: 8.031 kB / 0.5928 GB, free: 18.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01448/0.7574, allocations: 3.617 MB / 0.5963 GB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007806/0.7652, allocations: 3.625 MB / 0.5999 GB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002665/0.7655, allocations: 333.2 kB / 0.6002 GB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001867/0.7674, allocations: 448.2 kB / 0.6006 GB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02081/0.7882, allocations: 11.18 MB / 0.6115 GB, free: 14.5 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002454/0.7885, allocations: 55.66 kB / 0.6116 GB, free: 14.45 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001398/0.7899, allocations: 223.8 kB / 0.6118 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001616/0.7916, allocations: 1.105 MB / 0.6129 GB, free: 13.12 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01834/0.8099, allocations: 9.12 MB / 0.6218 GB, free: 3.984 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0549/0.8649, allocations: 50.31 MB / 0.6709 GB, free: 144 kB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2045/1.069, allocations: 4.701 MB / 0.6755 GB, free: 99.25 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002705/1.072, allocations: 2.321 MB / 0.6778 GB, free: 99.21 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01056/1.083, allocations: 7.227 MB / 0.6848 GB, free: 97.68 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.577e-05/1.083, allocations: 56.47 kB / 0.6849 GB, free: 97.64 MB / 442.7 MB Notification: Performance of pre-optimization done (n=177): time 5e-06/1.083, allocations: 3.562 kB / 0.6849 GB, free: 97.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=198): time 0.04151/1.124, allocations: 17.3 MB / 0.7018 GB, free: 94.77 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.354e-05/1.124, allocations: 176.9 kB / 0.702 GB, free: 94.58 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005754/1.13, allocations: 4.579 MB / 0.7064 GB, free: 94.18 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000408/1.131, allocations: 56.36 kB / 0.7065 GB, free: 94.14 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001632/1.132, allocations: 3.252 MB / 0.7097 GB, free: 92.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007912/1.133, allocations: 0.7509 MB / 0.7104 GB, free: 91.48 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002367/1.133, allocations: 119.6 kB / 0.7105 GB, free: 91.39 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002705/1.134, allocations: 0.5678 MB / 0.7111 GB, free: 90.97 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002775/1.136, allocations: 2.205 MB / 0.7132 GB, free: 90.25 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004564/1.141, allocations: 5.956 MB / 0.719 GB, free: 84.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009048/1.15, allocations: 8.914 MB / 0.7277 GB, free: 77.85 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001309/1.15, allocations: 37.62 kB / 0.7278 GB, free: 77.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=804) (initialization): time 0.01507/1.165, allocations: 8.684 MB / 0.7362 GB, free: 74.69 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.693e-05/1.165, allocations: 62.44 kB / 0.7363 GB, free: 74.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001529/1.166, allocations: 130.7 kB / 0.7364 GB, free: 74.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001911/1.168, allocations: 0.9041 MB / 0.7373 GB, free: 74.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004665/1.172, allocations: 1.469 MB / 0.7387 GB, free: 74.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00569/1.178, allocations: 5.783 MB / 0.7444 GB, free: 69.28 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004668/1.183, allocations: 353.8 kB / 0.7447 GB, free: 68.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001143/1.184, allocations: 382.7 kB / 0.7451 GB, free: 68.62 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * Number of states: 0 () * Number of discrete variables: 49 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (756): * Single equations (assignments): 752 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004555/1.188, allocations: 2.226 MB / 0.7473 GB, free: 66.66 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008972/1.189, allocations: 402.8 kB / 0.7477 GB, free: 66.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006179/1.195, allocations: 3.583 MB / 0.7512 GB, free: 63.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.7e-05/1.196, allocations: 24 kB / 0.7512 GB, free: 63.32 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/1.196, allocations: 4 kB / 0.7512 GB, free: 63.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.251e-05/1.196, allocations: 6.281 kB / 0.7512 GB, free: 63.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01706/1.213, allocations: 9.122 MB / 0.7601 GB, free: 55.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-05/1.213, allocations: 4.656 kB / 0.7601 GB, free: 55.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001726/1.214, allocations: 393 kB / 0.7605 GB, free: 55.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001666/1.216, allocations: 0.7079 MB / 0.7612 GB, free: 55.09 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002501/1.216, allocations: 46.39 kB / 0.7612 GB, free: 55.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005797/1.222, allocations: 5.334 MB / 0.7664 GB, free: 50.3 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/1.222, allocations: 7.938 kB / 0.7664 GB, free: 50.29 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008479/1.231, allocations: 6.425 MB / 0.7727 GB, free: 44.63 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001168/1.232, allocations: 469.6 kB / 0.7731 GB, free: 44.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009047/1.233, allocations: 34.2 kB / 0.7732 GB, free: 44.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002001/1.235, allocations: 120.6 kB / 0.7733 GB, free: 44.05 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003094/1.235, allocations: 125.7 kB / 0.7734 GB, free: 43.97 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001324/1.235, allocations: 58.81 kB / 0.7735 GB, free: 43.92 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005029/1.24, allocations: 2.924 MB / 0.7763 GB, free: 41.51 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.24, allocations: 8 kB / 0.7763 GB, free: 41.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005386/1.246, allocations: 1.059 MB / 0.7774 GB, free: 40.46 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (157): * Single equations (assignments): 153 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005518/1.246, allocations: 189.5 kB / 0.7776 GB, free: 40.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007463/1.254, allocations: 5.416 MB / 0.7828 GB, free: 35.51 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/1.254, allocations: 3.938 kB / 0.7828 GB, free: 35.51 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002653/1.257, allocations: 1.915 MB / 0.7847 GB, free: 33.84 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006648/1.263, allocations: 494.8 kB / 0.7852 GB, free: 33.42 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01783/1.281, allocations: 11.84 MB / 0.7967 GB, free: 22.53 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003762/1.285, allocations: 3.449 MB / 0.8001 GB, free: 19.85 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004855/1.29, allocations: 2.048 MB / 0.8021 GB, free: 18.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008374/1.291, allocations: 271.4 kB / 0.8024 GB, free: 17.84 MB / 442.7 MB Notification: Performance of SimCode: time 9.72e-07/1.291, allocations: 0 / 0.8024 GB, free: 17.84 MB / 442.7 MB Notification: Performance of Templates: time 0.2935/1.584, allocations: 39.05 MB / 0.8405 GB, free: 103.3 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches