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.0009391/0.0009391, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001219/0.00122, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 227.8 MB / 246.8 MB, free: 11.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002189/0.0002189, allocations: 8 kB / 307.7 MB, free: 0.8047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0929/0.09313, allocations: 51.53 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2152/0.3084, allocations: 48.05 MB / 407.3 MB, free: 7.055 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02667/0.3351, allocations: 10.25 MB / 417.6 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01095/0.3461, allocations: 214.8 kB / 417.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001714/0.3479, allocations: 432.3 kB / 418.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006087/0.354, allocations: 1.779 MB / 420 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00181/0.3558, allocations: 0.6514 MB / 420.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008888/0.3647, allocations: 6.43 MB / 427.1 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008105/0.3728, allocations: 5.693 MB / 432.8 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002086/0.375, allocations: 1.167 MB / 433.9 MB, free: 116 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002344/0.3773, allocations: 1.938 MB / 435.9 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004251/0.3778, allocations: 140 kB / 436 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002383/0.3802, allocations: 1.1 MB / 437.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001635/0.3818, allocations: 1.765 MB / 438.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001825/0.3836, allocations: 2.027 MB / 440.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006783/0.3904, allocations: 6.863 MB / 447.8 MB, free: 2.227 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3905, allocations: 0 / 447.8 MB, free: 2.227 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3905, allocations: 0 / 447.8 MB, free: 2.227 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001688/0.3906, allocations: 0 / 447.8 MB, free: 2.227 MB / 350.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.008922/0.3996, allocations: 4.164 MB / 451.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.3996, allocations: 8.031 kB / 451.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009078/0.4087, allocations: 2.183 MB / 454.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005692/0.4144, allocations: 2.722 MB / 456.8 MB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.4146, allocations: 250.1 kB / 457.1 MB, free: 8.766 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007823/0.4154, allocations: 315.8 kB / 457.4 MB, free: 8.457 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01907/0.4345, allocations: 10.46 MB / 467.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001141/0.4347, allocations: 43.59 kB / 467.9 MB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000412/0.4351, allocations: 155.8 kB / 468 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003403/0.4385, allocations: 2.029 MB / 470.1 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01871/0.4572, allocations: 8.921 MB / 479 MB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05251/0.5098, allocations: 41.02 MB / 0.5078 GB, free: 8.023 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01198/0.5218, allocations: 4.501 MB / 0.5122 GB, free: 3.379 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003474/0.5253, allocations: 2.501 MB / 0.5147 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01286/0.5382, allocations: 7.344 MB / 0.5218 GB, free: 9.305 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.692e-05/0.5383, allocations: 55.5 kB / 0.5219 GB, free: 9.242 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 5.51e-06/0.5383, allocations: 0 / 0.5219 GB, free: 9.242 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.2449/0.7832, allocations: 18.64 MB / 0.5401 GB, free: 144.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.545e-05/0.7833, allocations: 181.8 kB / 0.5403 GB, free: 144.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007803/0.7912, allocations: 4.56 MB / 0.5447 GB, free: 142.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004631/0.7917, allocations: 53.47 kB / 0.5448 GB, free: 142.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001954/0.7936, allocations: 3.118 MB / 0.5478 GB, free: 140.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009539/0.7946, allocations: 0.7625 MB / 0.5485 GB, free: 139.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006803/0.7953, allocations: 0.5435 MB / 0.5491 GB, free: 139.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.114e-05/0.7953, allocations: 305.2 kB / 0.5494 GB, free: 139.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003372/0.7987, allocations: 2.377 MB / 0.5517 GB, free: 138.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005034/0.8037, allocations: 6.077 MB / 0.5576 GB, free: 132.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008105/0.8119, allocations: 9.152 MB / 0.5666 GB, free: 125.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001036/0.812, allocations: 38.97 kB / 0.5666 GB, free: 125.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01419/0.8262, allocations: 9.276 MB / 0.5757 GB, free: 119.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.466e-05/0.8263, allocations: 63.94 kB / 0.5757 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001053/0.8264, allocations: 132 kB / 0.5758 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002666/0.8291, allocations: 1.2 MB / 0.577 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004323/0.8334, allocations: 1.427 MB / 0.5784 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007178/0.8406, allocations: 6.817 MB / 0.5851 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004988/0.8456, allocations: 356.1 kB / 0.5854 GB, free: 109.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006896/0.8463, allocations: 380.6 kB / 0.5858 GB, free: 109.4 MB / 446.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.003022/0.8494, allocations: 2.173 MB / 0.5879 GB, free: 107.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007098/0.8501, allocations: 379.8 kB / 0.5883 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006177/0.8563, allocations: 4.058 MB / 0.5922 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-05/0.8563, allocations: 20.62 kB / 0.5922 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.8563, allocations: 4 kB / 0.5922 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.77e-05/0.8564, allocations: 15.97 kB / 0.5923 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01396/0.8703, allocations: 9.519 MB / 0.6016 GB, free: 93.17 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.905e-05/0.8704, allocations: 4 kB / 0.6016 GB, free: 93.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001456/0.8718, allocations: 315.5 kB / 0.6019 GB, free: 92.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002449/0.8743, allocations: 1.028 MB / 0.6029 GB, free: 91.82 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001851/0.8745, allocations: 40.92 kB / 0.6029 GB, free: 91.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007018/0.8815, allocations: 6.364 MB / 0.6091 GB, free: 85.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.8816, allocations: 8 kB / 0.6091 GB, free: 85.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008818/0.8904, allocations: 7.042 MB / 0.616 GB, free: 78.15 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/0.8916, allocations: 471.8 kB / 0.6164 GB, free: 77.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004537/0.8921, allocations: 39.98 kB / 0.6165 GB, free: 77.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001577/0.8936, allocations: 126.4 kB / 0.6166 GB, free: 77.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003122/0.894, allocations: 132.9 kB / 0.6167 GB, free: 77.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/0.8941, allocations: 52 kB / 0.6168 GB, free: 77.32 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00363/0.8977, allocations: 2.927 MB / 0.6196 GB, free: 74.39 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.8978, allocations: 0 / 0.6196 GB, free: 74.39 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005325/0.9031, allocations: 1.056 MB / 0.6207 GB, free: 73.34 MB / 446.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.0004104/0.9035, allocations: 168.4 kB / 0.6208 GB, free: 73.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008238/0.9118, allocations: 5.706 MB / 0.6264 GB, free: 67.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.593e-06/0.9118, allocations: 0 / 0.6264 GB, free: 67.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002742/0.9145, allocations: 2.072 MB / 0.6284 GB, free: 65.39 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005961/0.9205, allocations: 466.4 kB / 0.6289 GB, free: 64.94 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/0.9345, allocations: 12.19 MB / 0.6408 GB, free: 52.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002858/0.9374, allocations: 3.36 MB / 0.6441 GB, free: 49.26 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004321/0.9417, allocations: 2.033 MB / 0.646 GB, free: 47.23 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007488/0.9425, allocations: 263.4 kB / 0.6463 GB, free: 46.97 MB / 446.1 MB Notification: Performance of SimCode: time 1.272e-06/0.9425, allocations: 0 / 0.6463 GB, free: 46.97 MB / 446.1 MB Notification: Performance of Templates: time 0.06147/1.004, allocations: 40.11 MB / 0.6855 GB, free: 7.031 MB / 446.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