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.001591/0.001591, allocations: 199.7 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001047/0.001047, allocations: 89.92 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.26e-05/2.262e-05, allocations: 4 kB / 343.7 MB, free: 8.305 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1052, allocations: 51.47 MB / 395.2 MB, free: 4.789 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3766/0.4818, allocations: 100.4 MB / 495.6 MB, free: 8.949 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003369/0.4822, allocations: 92.62 kB / 495.7 MB, free: 8.902 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4069/0.8891, allocations: 91.5 MB / 0.5734 GB, free: 2.035 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.8892, allocations: 0 / 0.5734 GB, free: 2.035 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003508/0.8896, allocations: 84 kB / 0.5735 GB, free: 1.953 MB / 442.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.3178/1.207, allocations: 4.465 MB / 0.5779 GB, free: 74.57 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/1.207, allocations: 9.031 kB / 0.5779 GB, free: 74.57 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01742/1.225, allocations: 4.434 MB / 0.5822 GB, free: 74.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01035/1.235, allocations: 4.244 MB / 0.5864 GB, free: 73.94 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001783/1.236, allocations: 144.8 kB / 0.5865 GB, free: 73.94 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001431/1.237, allocations: 262.6 kB / 0.5868 GB, free: 73.94 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009354/1.246, allocations: 6.436 MB / 0.593 GB, free: 73.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01593/1.262, allocations: 9.876 MB / 0.6027 GB, free: 71.21 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001611/1.262, allocations: 67.23 kB / 0.6027 GB, free: 71.2 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005406/1.263, allocations: 29.84 kB / 0.6028 GB, free: 71.2 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001286/1.264, allocations: 1.1 MB / 0.6039 GB, free: 71.2 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05509/1.319, allocations: 48.24 MB / 0.651 GB, free: 39.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004658/1.324, allocations: 3.628 MB / 0.6545 GB, free: 37.91 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002464/1.327, allocations: 2.104 MB / 0.6566 GB, free: 37.05 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008356/1.327, allocations: 0.6809 MB / 0.6572 GB, free: 36.46 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.514e-05/1.328, allocations: 61.28 kB / 0.6573 GB, free: 36.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=168): time 5.24e-06/1.328, allocations: 0 / 0.6573 GB, free: 36.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=189): time 0.03192/1.359, allocations: 14.8 MB / 0.6717 GB, free: 30.52 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.114e-05/1.36, allocations: 173 kB / 0.6719 GB, free: 30.34 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007451/1.367, allocations: 3.25 MB / 0.6751 GB, free: 29.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006033/1.368, allocations: 25.7 kB / 0.6751 GB, free: 29.06 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002587/1.37, allocations: 3.346 MB / 0.6784 GB, free: 26.45 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001044/1.371, allocations: 0.7076 MB / 0.6791 GB, free: 25.93 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008212/1.372, allocations: 3.25 kB / 0.6791 GB, free: 25.93 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007705/1.373, allocations: 0.5716 MB / 0.6796 GB, free: 25.51 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003553/1.377, allocations: 2.093 MB / 0.6817 GB, free: 24.77 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005295/1.382, allocations: 5.891 MB / 0.6874 GB, free: 18.82 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004786/1.387, allocations: 3.492 MB / 0.6908 GB, free: 17.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001414/1.387, allocations: 44.23 kB / 0.6909 GB, free: 17.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01445/1.401, allocations: 7.866 MB / 0.6985 GB, free: 14.84 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000133/1.401, allocations: 67.72 kB / 0.6986 GB, free: 14.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002008/1.402, allocations: 135.2 kB / 0.6987 GB, free: 14.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001999/1.404, allocations: 0.9145 MB / 0.6996 GB, free: 14.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004858/1.409, allocations: 1.513 MB / 0.7011 GB, free: 14.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006259/1.415, allocations: 5.484 MB / 0.7065 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005237/1.42, allocations: 233.1 kB / 0.7067 GB, free: 11.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001349/1.421, allocations: 395.3 kB / 0.7071 GB, free: 11.55 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 46 (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.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (780): * Single equations (assignments): 776 * 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%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002029/1.424, allocations: 454.9 kB / 0.7075 GB, free: 11.18 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009883/1.425, allocations: 345.6 kB / 0.7078 GB, free: 10.99 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006124/1.431, allocations: 3.278 MB / 0.711 GB, free: 8.621 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.561e-05/1.431, allocations: 20 kB / 0.7111 GB, free: 8.602 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.042e-05/1.431, allocations: 4 kB / 0.7111 GB, free: 8.598 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.151e-05/1.431, allocations: 14.27 kB / 0.7111 GB, free: 8.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01499/1.446, allocations: 7.883 MB / 0.7188 GB, free: 2.191 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-05/1.446, allocations: 4 kB / 0.7188 GB, free: 2.188 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0016/1.447, allocations: 350.5 kB / 0.7191 GB, free: 1.926 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001708/1.449, allocations: 0.7086 MB / 0.7198 GB, free: 1.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002311/1.449, allocations: 11.25 kB / 0.7198 GB, free: 1.422 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007008/1.456, allocations: 4.989 MB / 0.7247 GB, free: 13.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.278e-05/1.456, allocations: 7.938 kB / 0.7247 GB, free: 13.19 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009708/1.466, allocations: 6.244 MB / 0.7308 GB, free: 7.672 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/1.467, allocations: 383.2 kB / 0.7311 GB, free: 7.285 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00084/1.468, allocations: 7.938 kB / 0.7312 GB, free: 7.277 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001879/1.47, allocations: 94.09 kB / 0.7312 GB, free: 7.227 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002889/1.47, allocations: 102 kB / 0.7313 GB, free: 7.164 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001568/1.471, allocations: 55.12 kB / 0.7314 GB, free: 7.113 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004204/1.475, allocations: 2.169 MB / 0.7335 GB, free: 5.246 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.475, allocations: 0 / 0.7335 GB, free: 5.246 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006229/1.481, allocations: 0.9096 MB / 0.7344 GB, free: 4.348 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 144 * 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.0007066/1.482, allocations: 151.5 kB / 0.7345 GB, free: 4.199 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.261/1.743, allocations: 5.195 MB / 0.7396 GB, free: 80.46 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/1.743, allocations: 2.219 kB / 0.7396 GB, free: 80.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00303/1.746, allocations: 1.759 MB / 0.7413 GB, free: 80.36 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002314/1.748, allocations: 361.9 kB / 0.7417 GB, free: 80.34 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01588/1.764, allocations: 8.155 MB / 0.7497 GB, free: 78.77 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003576/1.768, allocations: 3.546 MB / 0.7531 GB, free: 77.97 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005033/1.773, allocations: 2.082 MB / 0.7551 GB, free: 77.93 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008478/1.774, allocations: 240.3 kB / 0.7554 GB, free: 77.93 MB / 458.7 MB Notification: Performance of SimCode: time 1.202e-06/1.774, allocations: 0 / 0.7554 GB, free: 77.93 MB / 458.7 MB Notification: Performance of Templates: time 0.07157/1.845, allocations: 31.87 MB / 0.7865 GB, free: 76.6 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/jenkins/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