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.001513/0.001513, allocations: 112.6 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001706/0.001706, allocations: 203.9 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 247.6 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 55.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2811, allocations: 50.54 MB / 409.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01228/0.2935, allocations: 11.18 MB / 421.1 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008511/0.302, allocations: 4.053 MB / 425.2 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002034/0.3041, allocations: 63.88 kB / 425.2 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005871/0.31, allocations: 3.17 MB / 428.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005272/0.3154, allocations: 1.879 MB / 430.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002259/0.3176, allocations: 0.8266 MB / 431.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0066/0.3243, allocations: 4.401 MB / 435.5 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005344/0.3296, allocations: 4.007 MB / 439.5 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003052/0.3327, allocations: 1.612 MB / 441.1 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00346/0.3362, allocations: 2.114 MB / 443.2 MB, free: 108 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001283/0.3375, allocations: 344 kB / 443.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003024/0.3406, allocations: 1.24 MB / 444.8 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002871/0.3435, allocations: 2.007 MB / 446.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003878/0.3474, allocations: 2.28 MB / 449.1 MB, free: 10.22 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0095/0.3569, allocations: 7.362 MB / 456.5 MB, free: 2.836 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.357, allocations: 4 kB / 456.5 MB, free: 2.832 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.357, allocations: 4 kB / 456.5 MB, free: 2.828 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000296/0.3573, allocations: 0 / 456.5 MB, free: 2.828 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.01486/0.3722, allocations: 5.049 MB / 461.5 MB, free: 13.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.3722, allocations: 12.03 kB / 461.5 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009735/0.382, allocations: 2.124 MB / 463.7 MB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008181/0.3902, allocations: 2.768 MB / 466.4 MB, free: 8.734 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000262/0.3905, allocations: 246.2 kB / 466.7 MB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001469/0.392, allocations: 323.8 kB / 467 MB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0231/0.4151, allocations: 10.45 MB / 477.4 MB, free: 13.03 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002351/0.4154, allocations: 39.67 kB / 477.5 MB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00143/0.4169, allocations: 151.9 kB / 477.6 MB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0037/0.4206, allocations: 2.029 MB / 479.6 MB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01896/0.4396, allocations: 8.917 MB / 488.6 MB, free: 1.875 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05071/0.4903, allocations: 40.79 MB / 0.5169 GB, free: 7.992 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01177/0.5022, allocations: 4.503 MB / 0.5213 GB, free: 3.344 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003079/0.5053, allocations: 2.489 MB / 0.5238 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01283/0.5181, allocations: 7.349 MB / 0.5309 GB, free: 9.285 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.841e-05/0.5182, allocations: 59.44 kB / 0.531 GB, free: 9.219 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 6.202e-06/0.5182, allocations: 4 kB / 0.531 GB, free: 9.215 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.316/0.8342, allocations: 18.65 MB / 0.5492 GB, free: 121.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.194e-05/0.8344, allocations: 175.1 kB / 0.5494 GB, free: 121 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006217/0.8406, allocations: 4.559 MB / 0.5538 GB, free: 119.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004476/0.8411, allocations: 53.45 kB / 0.5539 GB, free: 119.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001825/0.8429, allocations: 3.126 MB / 0.5569 GB, free: 116.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008572/0.8438, allocations: 0.7558 MB / 0.5577 GB, free: 116.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001721/0.8455, allocations: 1.279 MB / 0.5589 GB, free: 115.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.853e-05/0.8455, allocations: 306.2 kB / 0.5592 GB, free: 115.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003522/0.8491, allocations: 2.379 MB / 0.5615 GB, free: 114.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004744/0.8538, allocations: 6.081 MB / 0.5675 GB, free: 107.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009381/0.8632, allocations: 9.137 MB / 0.5764 GB, free: 97.09 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.367e-05/0.8633, allocations: 40 kB / 0.5764 GB, free: 97.05 MB / 462.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.0165/0.8799, allocations: 9.285 MB / 0.5855 GB, free: 87.76 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.878e-05/0.88, allocations: 60 kB / 0.5856 GB, free: 87.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001139/0.8801, allocations: 138.6 kB / 0.5857 GB, free: 87.57 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003278/0.8834, allocations: 1.195 MB / 0.5869 GB, free: 86.37 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005267/0.8887, allocations: 1.431 MB / 0.5883 GB, free: 84.94 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009364/0.898, allocations: 7.294 MB / 0.5954 GB, free: 77.51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005992/0.9041, allocations: 343.5 kB / 0.5957 GB, free: 77.17 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008042/0.9049, allocations: 379.9 kB / 0.5961 GB, free: 76.8 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.00348/0.9084, allocations: 2.18 MB / 0.5982 GB, free: 74.62 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007359/0.9091, allocations: 390.9 kB / 0.5986 GB, free: 74.23 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005968/0.9151, allocations: 4.05 MB / 0.6025 GB, free: 70.17 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.229e-05/0.9152, allocations: 20 kB / 0.6026 GB, free: 70.15 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.541e-05/0.9152, allocations: 8 kB / 0.6026 GB, free: 70.14 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.761e-05/0.9152, allocations: 11.91 kB / 0.6026 GB, free: 70.13 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01513/0.9304, allocations: 9.419 MB / 0.6118 GB, free: 60.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.545e-05/0.9304, allocations: 8 kB / 0.6118 GB, free: 60.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001372/0.9318, allocations: 320.5 kB / 0.6121 GB, free: 60.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002415/0.9342, allocations: 1.027 MB / 0.6131 GB, free: 59.27 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000148/0.9344, allocations: 32 kB / 0.6131 GB, free: 59.24 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007645/0.942, allocations: 6.875 MB / 0.6198 GB, free: 52.23 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.844e-06/0.9421, allocations: 11.94 kB / 0.6198 GB, free: 52.22 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009168/0.9513, allocations: 7.049 MB / 0.6267 GB, free: 45.07 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001295/0.9526, allocations: 455.9 kB / 0.6272 GB, free: 44.61 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004309/0.953, allocations: 43.98 kB / 0.6272 GB, free: 44.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001548/0.9546, allocations: 122.6 kB / 0.6273 GB, free: 44.45 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002865/0.9549, allocations: 129 kB / 0.6274 GB, free: 44.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/0.955, allocations: 56 kB / 0.6275 GB, free: 44.26 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003556/0.9586, allocations: 2.923 MB / 0.6304 GB, free: 41.34 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.9586, allocations: 0 / 0.6304 GB, free: 41.34 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004856/0.9634, allocations: 1.053 MB / 0.6314 GB, free: 40.29 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.0004445/0.9639, allocations: 184.4 kB / 0.6316 GB, free: 40.11 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006903/0.9708, allocations: 5.732 MB / 0.6372 GB, free: 34.39 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.9708, allocations: 0 / 0.6372 GB, free: 34.39 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002712/0.9736, allocations: 2.071 MB / 0.6392 GB, free: 32.31 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002656/0.9762, allocations: 493.3 kB / 0.6396 GB, free: 31.84 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/0.9899, allocations: 10.49 MB / 0.6499 GB, free: 21.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002634/0.9925, allocations: 3.359 MB / 0.6532 GB, free: 17.85 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001193/0.9937, allocations: 311.4 kB / 0.6535 GB, free: 17.55 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/0.9938, allocations: 0 / 0.6535 GB, free: 17.55 MB / 462.1 MB Notification: Performance of Templates: time 0.8013/1.795, allocations: 81.45 MB / 0.733 GB, free: 171.6 MB / 0.5137 GB 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","/var/lib/jenkins1/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