Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000963/0.0009633, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.271/1.271, allocations: 226.6 MB / 244.3 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009841/0.0009842, allocations: 104 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003226/0.0003224, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3448, allocations: 51.3 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.04678/0.3916, allocations: 51.58 MB / 459.1 MB, free: 8.121 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03273/0.4245, allocations: 11.11 MB / 470.2 MB, free: 12.99 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01363/0.4382, allocations: 239.4 kB / 470.4 MB, free: 12.75 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.012/0.4502, allocations: 2.702 MB / 473.1 MB, free: 10.04 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03006/0.4803, allocations: 7.989 MB / 481.1 MB, free: 2.02 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005304/0.4857, allocations: 0.628 MB / 481.7 MB, free: 1.391 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.04361/0.5293, allocations: 32.77 MB / 0.5025 GB, free: 0.582 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3342/0.8636, allocations: 4.997 MB / 0.5073 GB, free: 31.32 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004005/0.8676, allocations: 1.304 MB / 0.5086 GB, free: 31.32 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004777/0.8725, allocations: 1.961 MB / 0.5105 GB, free: 31.32 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001442/0.8739, allocations: 144.2 kB / 0.5107 GB, free: 31.32 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003517/0.8775, allocations: 0.9357 MB / 0.5116 GB, free: 31.32 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00308/0.8806, allocations: 1.805 MB / 0.5133 GB, free: 31.32 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001887/0.8825, allocations: 0.8747 MB / 0.5142 GB, free: 31.29 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01019/0.8927, allocations: 5.845 MB / 0.5199 GB, free: 30.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.738e-06/0.8928, allocations: 0 / 0.5199 GB, free: 30.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.558e-06/0.8928, allocations: 5.641 kB / 0.5199 GB, free: 30.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004574/0.8932, allocations: 0 / 0.5199 GB, free: 30.9 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.01488/0.9081, allocations: 4.338 MB / 0.5241 GB, free: 28.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.9e-05/0.9082, allocations: 11.03 kB / 0.5241 GB, free: 28.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009562/0.9178, allocations: 2.237 MB / 0.5263 GB, free: 27.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006106/0.9239, allocations: 2.714 MB / 0.529 GB, free: 26.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001545/0.9241, allocations: 248.2 kB / 0.5292 GB, free: 26.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008282/0.925, allocations: 328.3 kB / 0.5295 GB, free: 26.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01792/0.9429, allocations: 10.81 MB / 0.5401 GB, free: 23.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001404/0.9431, allocations: 49.05 kB / 0.5401 GB, free: 23.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004646/0.9435, allocations: 154.2 kB / 0.5403 GB, free: 23.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003192/0.9467, allocations: 2.155 MB / 0.5424 GB, free: 21.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01914/0.9659, allocations: 9.188 MB / 0.5514 GB, free: 14.97 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0653/1.031, allocations: 41.89 MB / 0.5923 GB, free: 11.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01233/1.044, allocations: 4.506 MB / 0.5967 GB, free: 8.195 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003819/1.048, allocations: 2.497 MB / 0.5991 GB, free: 6.125 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01551/1.063, allocations: 7.381 MB / 0.6063 GB, free: 14.61 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.314e-05/1.063, allocations: 49.91 kB / 0.6064 GB, free: 14.55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=177): time 8.696e-06/1.063, allocations: 0 / 0.6064 GB, free: 14.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=198): time 0.05986/1.123, allocations: 18.75 MB / 0.6247 GB, free: 11.73 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/1.123, allocations: 174.5 kB / 0.6248 GB, free: 11.53 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01122/1.135, allocations: 4.592 MB / 0.6293 GB, free: 6.926 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007832/1.135, allocations: 53.7 kB / 0.6294 GB, free: 6.867 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003557/1.139, allocations: 3.212 MB / 0.6325 GB, free: 3.672 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001706/1.141, allocations: 0.7581 MB / 0.6333 GB, free: 2.922 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00114/1.142, allocations: 124 kB / 0.6334 GB, free: 2.801 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008386/1.143, allocations: 0.5824 MB / 0.6339 GB, free: 2.211 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005683/1.149, allocations: 2.366 MB / 0.6363 GB, free: 15.84 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009553/1.158, allocations: 6.131 MB / 0.6422 GB, free: 7.914 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008788/1.167, allocations: 3.725 MB / 0.6459 GB, free: 4.309 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002876/1.167, allocations: 36 kB / 0.6459 GB, free: 4.273 MB / 458.7 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.02773/1.195, allocations: 9.301 MB / 0.655 GB, free: 11.76 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003652/1.195, allocations: 62.97 kB / 0.6551 GB, free: 11.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004304/1.196, allocations: 132 kB / 0.6552 GB, free: 11.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004108/1.2, allocations: 1.226 MB / 0.6564 GB, free: 10.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006878/1.207, allocations: 1.446 MB / 0.6578 GB, free: 9.02 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01249/1.22, allocations: 6.78 MB / 0.6644 GB, free: 2.176 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008444/1.228, allocations: 351.5 kB / 0.6647 GB, free: 1.832 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002567/1.231, allocations: 384 kB / 0.6651 GB, free: 1.457 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,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.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],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 (772): * Single equations (assignments): 766 * Array equations: 5 * 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 {(3,100.0%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009904/1.241, allocations: 2.228 MB / 0.6673 GB, free: 15.35 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002164/1.243, allocations: 394.8 kB / 0.6677 GB, free: 14.96 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01085/1.254, allocations: 4.059 MB / 0.6716 GB, free: 10.89 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-05/1.254, allocations: 23.67 kB / 0.6717 GB, free: 10.88 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.775e-05/1.254, allocations: 8 kB / 0.6717 GB, free: 10.87 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-05/1.254, allocations: 7.969 kB / 0.6717 GB, free: 10.86 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03093/1.285, allocations: 9.615 MB / 0.6811 GB, free: 1.191 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.37e-05/1.285, allocations: 4.656 kB / 0.6811 GB, free: 1.188 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/1.287, allocations: 319.2 kB / 0.6814 GB, free: 0.8945 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3203/1.607, allocations: 1.014 MB / 0.6824 GB, free: 185 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000881/1.608, allocations: 40.69 kB / 0.6824 GB, free: 185 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01208/1.62, allocations: 6.353 MB / 0.6886 GB, free: 182.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-05/1.62, allocations: 11.5 kB / 0.6886 GB, free: 182.9 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01307/1.634, allocations: 7.024 MB / 0.6955 GB, free: 180.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00195/1.636, allocations: 480.9 kB / 0.6959 GB, free: 180.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001484/1.637, allocations: 40.09 kB / 0.696 GB, free: 180.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002724/1.64, allocations: 123.5 kB / 0.6961 GB, free: 180.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004463/1.64, allocations: 123.7 kB / 0.6962 GB, free: 180.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002271/1.641, allocations: 53.97 kB / 0.6963 GB, free: 180.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006177/1.647, allocations: 2.937 MB / 0.6991 GB, free: 179.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.647, allocations: 0 / 0.6991 GB, free: 179.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006531/1.653, allocations: 1.086 MB / 0.7002 GB, free: 179 MB / 490.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.0005154/1.654, allocations: 177.8 kB / 0.7004 GB, free: 178.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008568/1.662, allocations: 5.763 MB / 0.706 GB, free: 176.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/1.662, allocations: 3.969 kB / 0.706 GB, free: 176.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002718/1.665, allocations: 2.049 MB / 0.708 GB, free: 176.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002939/1.668, allocations: 0.4903 MB / 0.7085 GB, free: 175.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01857/1.687, allocations: 12.46 MB / 0.7206 GB, free: 164.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003429/1.69, allocations: 3.439 MB / 0.724 GB, free: 161.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001497/1.692, allocations: 316.3 kB / 0.7243 GB, free: 161.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.743e-06/1.692, allocations: 0 / 0.7243 GB, free: 161.4 MB / 490.7 MB Notification: Performance of Templates: time 0.1092/1.801, allocations: 81.5 MB / 0.8039 GB, free: 81.86 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches