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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001094/0.001094, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001091/0.001091, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 63.89 kB / 358.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3073, allocations: 50.55 MB / 409.3 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.0207/0.3281, allocations: 11.17 MB / 420.4 MB, free: 6.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01287/0.341, allocations: 4.049 MB / 424.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002982/0.3441, allocations: 71.81 kB / 424.6 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009116/0.3533, allocations: 3.177 MB / 427.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007893/0.3612, allocations: 1.872 MB / 429.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003099/0.3644, allocations: 0.8227 MB / 430.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009844/0.3742, allocations: 4.409 MB / 434.8 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007583/0.3819, allocations: 4.003 MB / 438.8 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003558/0.3855, allocations: 1.616 MB / 440.5 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004121/0.3896, allocations: 2.111 MB / 442.6 MB, free: 92 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001134/0.3908, allocations: 344 kB / 442.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002688/0.3935, allocations: 1.244 MB / 444.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00229/0.3958, allocations: 2.011 MB / 446.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00335/0.3992, allocations: 2.28 MB / 448.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008789/0.408, allocations: 7.354 MB / 455.8 MB, free: 2.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.408, allocations: 0 / 455.8 MB, free: 2.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.408, allocations: 0 / 455.8 MB, free: 2.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002911/0.4083, allocations: 4 kB / 455.8 MB, free: 2.816 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.01285/0.4212, allocations: 5.057 MB / 460.8 MB, free: 13.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.4212, allocations: 12.03 kB / 460.9 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009168/0.4304, allocations: 2.124 MB / 463 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006814/0.4373, allocations: 2.772 MB / 465.8 MB, free: 8.711 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000185/0.4375, allocations: 242.2 kB / 466 MB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008782/0.4384, allocations: 323.8 kB / 466.3 MB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01728/0.4557, allocations: 10.44 MB / 476.8 MB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/0.4558, allocations: 43.69 kB / 476.8 MB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004015/0.4562, allocations: 151.9 kB / 476.9 MB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003417/0.4596, allocations: 2.033 MB / 479 MB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01609/0.4757, allocations: 8.913 MB / 487.9 MB, free: 1.855 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04945/0.5252, allocations: 40.8 MB / 0.5163 GB, free: 7.961 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01126/0.5365, allocations: 4.487 MB / 0.5207 GB, free: 3.328 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003018/0.5396, allocations: 2.493 MB / 0.5231 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01243/0.552, allocations: 7.345 MB / 0.5303 GB, free: 9.27 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.275e-05/0.5521, allocations: 63.42 kB / 0.5303 GB, free: 9.199 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.458e-06/0.5521, allocations: 0 / 0.5303 GB, free: 9.199 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.2541/0.8062, allocations: 18.65 MB / 0.5486 GB, free: 121.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.451e-05/0.8063, allocations: 179.1 kB / 0.5487 GB, free: 121.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004405/0.8108, allocations: 4.56 MB / 0.5532 GB, free: 119.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001818/0.811, allocations: 53.3 kB / 0.5532 GB, free: 119.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001187/0.8121, allocations: 3.122 MB / 0.5563 GB, free: 117 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004687/0.8126, allocations: 0.7655 MB / 0.557 GB, free: 116.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001238/0.8139, allocations: 1.277 MB / 0.5583 GB, free: 115.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.301e-05/0.8139, allocations: 305.1 kB / 0.5586 GB, free: 115.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002488/0.8164, allocations: 2.381 MB / 0.5609 GB, free: 114.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003435/0.8198, allocations: 6.076 MB / 0.5668 GB, free: 107.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00684/0.8267, allocations: 9.139 MB / 0.5757 GB, free: 97.04 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.438e-05/0.8268, allocations: 36 kB / 0.5758 GB, free: 97 MB / 462.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01136/0.8381, allocations: 9.278 MB / 0.5848 GB, free: 87.71 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.192e-05/0.8382, allocations: 60 kB / 0.5849 GB, free: 87.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.091e-05/0.8383, allocations: 139.9 kB / 0.585 GB, free: 87.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002489/0.8408, allocations: 1.199 MB / 0.5862 GB, free: 86.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003615/0.8444, allocations: 1.435 MB / 0.5876 GB, free: 84.88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007032/0.8515, allocations: 7.286 MB / 0.5947 GB, free: 77.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004514/0.856, allocations: 347.5 kB / 0.5951 GB, free: 77.11 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008626/0.8569, allocations: 383.8 kB / 0.5954 GB, free: 76.74 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.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.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 (763): * Single equations (assignments): 757 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003696/0.8606, allocations: 2.17 MB / 0.5975 GB, free: 74.56 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007303/0.8613, allocations: 390.9 kB / 0.5979 GB, free: 74.18 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005936/0.8673, allocations: 4.046 MB / 0.6019 GB, free: 70.11 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-05/0.8673, allocations: 20 kB / 0.6019 GB, free: 70.09 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.8674, allocations: 11.66 kB / 0.6019 GB, free: 70.09 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.821e-05/0.8674, allocations: 15.89 kB / 0.6019 GB, free: 70.07 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01376/0.8811, allocations: 9.415 MB / 0.6111 GB, free: 60.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.637e-05/0.8812, allocations: 11.88 kB / 0.6111 GB, free: 60.56 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001376/0.8826, allocations: 315.5 kB / 0.6114 GB, free: 60.25 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002367/0.885, allocations: 1.034 MB / 0.6124 GB, free: 59.22 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000161/0.8851, allocations: 33.08 kB / 0.6125 GB, free: 59.19 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006964/0.8921, allocations: 6.877 MB / 0.6192 GB, free: 52.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.8921, allocations: 8 kB / 0.6192 GB, free: 52.17 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00803/0.9002, allocations: 7.05 MB / 0.6261 GB, free: 45.03 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009063/0.9011, allocations: 463.9 kB / 0.6265 GB, free: 44.55 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003766/0.9015, allocations: 36 kB / 0.6265 GB, free: 44.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001466/0.9029, allocations: 123.8 kB / 0.6267 GB, free: 44.39 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002687/0.9032, allocations: 128.9 kB / 0.6268 GB, free: 44.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.9034, allocations: 59.98 kB / 0.6268 GB, free: 44.21 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003206/0.9066, allocations: 2.92 MB / 0.6297 GB, free: 41.29 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9066, allocations: 0 / 0.6297 GB, free: 41.29 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003824/0.9104, allocations: 1.061 MB / 0.6307 GB, free: 40.23 MB / 462.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000328/0.9107, allocations: 176.3 kB / 0.6309 GB, free: 40.05 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006165/0.9169, allocations: 5.735 MB / 0.6365 GB, free: 34.34 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.9169, allocations: 0 / 0.6365 GB, free: 34.34 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00253/0.9195, allocations: 2.066 MB / 0.6385 GB, free: 32.26 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002322/0.9218, allocations: 493.6 kB / 0.639 GB, free: 31.79 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01254/0.9344, allocations: 10.05 MB / 0.6488 GB, free: 21.65 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002605/0.937, allocations: 3.365 MB / 0.6521 GB, free: 18.25 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003514/0.9405, allocations: 2.029 MB / 0.6541 GB, free: 16.21 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007096/0.9412, allocations: 267.4 kB / 0.6543 GB, free: 15.95 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/0.9412, allocations: 0 / 0.6543 GB, free: 15.95 MB / 462.1 MB Notification: Performance of Templates: time 0.0643/1.006, allocations: 38.82 MB / 0.6922 GB, free: 9.406 MB / 494.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches