Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001247/0.001247, allocations: 114 kB / 17.83 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001438/0.001438, allocations: 205.9 kB / 18.79 MB, free: 4.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.405/1.405, allocations: 230.4 MB / 250 MB, free: 9.051 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 71.83 kB / 367.4 MB, free: 7.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.261, allocations: 53.31 MB / 420.7 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01293/0.2739, allocations: 11.21 MB / 431.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008041/0.282, allocations: 4.069 MB / 436 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001113/0.2831, allocations: 67.81 kB / 436 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005454/0.2885, allocations: 3.212 MB / 439.2 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00425/0.2928, allocations: 1.926 MB / 441.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001512/0.2943, allocations: 0.8227 MB / 442 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005532/0.2998, allocations: 4.405 MB / 446.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00371/0.3035, allocations: 3.353 MB / 449.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002054/0.3056, allocations: 1.62 MB / 451.4 MB, free: 9.477 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002741/0.3083, allocations: 2.27 MB / 453.6 MB, free: 7.199 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005565/0.3089, allocations: 348 kB / 454 MB, free: 6.859 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002088/0.311, allocations: 1.279 MB / 455.2 MB, free: 5.578 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001881/0.3128, allocations: 2.045 MB / 457.3 MB, free: 3.527 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002147/0.315, allocations: 2.28 MB / 459.6 MB, free: 1.234 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007992/0.323, allocations: 7.389 MB / 467 MB, free: 9.816 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.323, allocations: 0 / 467 MB, free: 9.816 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.323, allocations: 7.938 kB / 467 MB, free: 9.809 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001112/0.3231, allocations: 0 / 467 MB, free: 9.809 MB / 382.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.008968/0.3321, allocations: 5.189 MB / 472.2 MB, free: 4.539 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.3321, allocations: 12.03 kB / 472.2 MB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00826/0.3404, allocations: 2.154 MB / 474.3 MB, free: 2.367 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005897/0.3463, allocations: 2.785 MB / 477.1 MB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002285/0.3465, allocations: 242.2 kB / 477.3 MB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000873/0.3474, allocations: 323.8 kB / 477.7 MB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01782/0.3652, allocations: 10.45 MB / 488.1 MB, free: 3.824 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001146/0.3653, allocations: 35.69 kB / 488.1 MB, free: 3.789 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005141/0.3658, allocations: 155.8 kB / 488.3 MB, free: 3.637 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003486/0.3693, allocations: 2.029 MB / 490.3 MB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0175/0.3868, allocations: 8.909 MB / 499.2 MB, free: 8.676 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05094/0.4377, allocations: 40.88 MB / 0.5275 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01168/0.4494, allocations: 4.321 MB / 0.5317 GB, free: 10.25 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003313/0.4527, allocations: 2.286 MB / 0.5339 GB, free: 7.949 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01203/0.4648, allocations: 7.366 MB / 0.5411 GB, free: 384 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.594e-05/0.4648, allocations: 51.55 kB / 0.5411 GB, free: 324 kB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 5.961e-06/0.4648, allocations: 3.984 kB / 0.5411 GB, free: 320 kB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.2234/0.6882, allocations: 18.86 MB / 0.5596 GB, free: 111.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.88e-05/0.6882, allocations: 175.5 kB / 0.5597 GB, free: 110.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004363/0.6926, allocations: 4.576 MB / 0.5642 GB, free: 106.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001422/0.6928, allocations: 49.7 kB / 0.5643 GB, free: 106.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00128/0.694, allocations: 3.255 MB / 0.5674 GB, free: 103.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004544/0.6945, allocations: 0.7859 MB / 0.5682 GB, free: 102.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00124/0.6957, allocations: 1.29 MB / 0.5695 GB, free: 101.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.567e-05/0.6958, allocations: 301.1 kB / 0.5697 GB, free: 101.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002538/0.6983, allocations: 2.382 MB / 0.5721 GB, free: 98.82 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003553/0.7019, allocations: 6.077 MB / 0.578 GB, free: 90.95 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006799/0.7087, allocations: 9.148 MB / 0.5869 GB, free: 79.99 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.223e-05/0.7087, allocations: 36 kB / 0.587 GB, free: 79.96 MB / 462.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01147/0.7202, allocations: 9.294 MB / 0.596 GB, free: 70.66 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.663e-05/0.7202, allocations: 60 kB / 0.5961 GB, free: 70.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.888e-05/0.7203, allocations: 128 kB / 0.5962 GB, free: 70.47 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002466/0.7228, allocations: 1.195 MB / 0.5974 GB, free: 69.27 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003471/0.7262, allocations: 1.436 MB / 0.5988 GB, free: 67.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006927/0.7332, allocations: 7.283 MB / 0.6059 GB, free: 60.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003574/0.7367, allocations: 359.5 kB / 0.6063 GB, free: 60.06 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003593/0.7371, allocations: 380 kB / 0.6066 GB, free: 59.69 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.002236/0.7393, allocations: 2.169 MB / 0.6087 GB, free: 57.52 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004662/0.7398, allocations: 405.2 kB / 0.6091 GB, free: 57.12 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005714/0.7455, allocations: 4.046 MB / 0.6131 GB, free: 53.05 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-05/0.7455, allocations: 20.47 kB / 0.6131 GB, free: 53.04 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.7455, allocations: 8 kB / 0.6131 GB, free: 53.03 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.494e-05/0.7456, allocations: 11.97 kB / 0.6131 GB, free: 53.02 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01195/0.7575, allocations: 9.406 MB / 0.6223 GB, free: 43.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/0.7575, allocations: 4 kB / 0.6223 GB, free: 43.51 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/0.7588, allocations: 319.4 kB / 0.6226 GB, free: 43.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002292/0.7611, allocations: 1.031 MB / 0.6236 GB, free: 42.17 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001476/0.7613, allocations: 39.98 kB / 0.6236 GB, free: 42.13 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007255/0.7685, allocations: 6.88 MB / 0.6304 GB, free: 35.12 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/0.7685, allocations: 11.94 kB / 0.6304 GB, free: 35.11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008448/0.777, allocations: 7.05 MB / 0.6373 GB, free: 27.96 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/0.7781, allocations: 482.2 kB / 0.6377 GB, free: 27.47 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004398/0.7785, allocations: 39.98 kB / 0.6378 GB, free: 27.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001381/0.7799, allocations: 127.3 kB / 0.6379 GB, free: 27.31 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000317/0.7802, allocations: 121 kB / 0.638 GB, free: 27.19 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/0.7803, allocations: 59.98 kB / 0.6381 GB, free: 27.13 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003299/0.7836, allocations: 2.923 MB / 0.6409 GB, free: 24.21 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7836, allocations: 0 / 0.6409 GB, free: 24.21 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003898/0.7875, allocations: 1.055 MB / 0.6419 GB, free: 23.15 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.0003499/0.7879, allocations: 186.2 kB / 0.6421 GB, free: 22.96 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006232/0.7941, allocations: 5.484 MB / 0.6475 GB, free: 17.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.209e-06/0.7941, allocations: 0 / 0.6475 GB, free: 17.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002539/0.7967, allocations: 1.935 MB / 0.6494 GB, free: 15.55 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002297/0.799, allocations: 494.6 kB / 0.6498 GB, free: 15.08 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01208/0.811, allocations: 10.2 MB / 0.6598 GB, free: 4.766 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002645/0.8137, allocations: 3.359 MB / 0.6631 GB, free: 1.371 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003948/0.8176, allocations: 2.033 MB / 0.6651 GB, free: 15.33 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007793/0.8184, allocations: 263.4 kB / 0.6653 GB, free: 15.07 MB / 478.1 MB Notification: Performance of SimCode: time 8.52e-07/0.8184, allocations: 3.938 kB / 0.6653 GB, free: 15.07 MB / 478.1 MB Notification: Performance of Templates: time 0.08008/0.8985, allocations: 39.52 MB / 0.7039 GB, free: 7.793 MB / 0.4981 GB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches