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.001594/0.001594, allocations: 117.3 kB / 17.99 MB, free: 5.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001716/0.001716, allocations: 209.8 kB / 18.92 MB, free: 4.461 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.386/1.386, allocations: 227.6 MB / 247.4 MB, free: 10.51 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.001976/0.001976, allocations: 73 kB / 307.4 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0997/0.1017, allocations: 50.54 MB / 357.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2179/0.3196, allocations: 49.34 MB / 407.3 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02641/0.3461, allocations: 10.22 MB / 417.5 MB, free: 15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01028/0.3565, allocations: 214.2 kB / 417.7 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006687/0.3632, allocations: 3.069 MB / 420.8 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00547/0.3687, allocations: 1.751 MB / 422.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00206/0.3708, allocations: 0.7723 MB / 423.3 MB, free: 10 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00705/0.3778, allocations: 4.621 MB / 427.9 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005556/0.3834, allocations: 4.234 MB / 432.1 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002828/0.3863, allocations: 1.639 MB / 433.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003524/0.3898, allocations: 2.356 MB / 436.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009677/0.3908, allocations: 344 kB / 436.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002471/0.3933, allocations: 1.256 MB / 437.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002115/0.3955, allocations: 2.022 MB / 439.8 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002481/0.3979, allocations: 2.299 MB / 442.1 MB, free: 7.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006796/0.4048, allocations: 5.848 MB / 447.9 MB, free: 1.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.4048, allocations: 4 kB / 447.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4048, allocations: 0 / 447.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001772/0.405, allocations: 0 / 447.9 MB, free: 1.297 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.01221/0.4172, allocations: 5.053 MB / 453 MB, free: 12.17 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.4173, allocations: 8.031 kB / 453 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008841/0.4261, allocations: 2.128 MB / 455.1 MB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00601/0.4322, allocations: 2.726 MB / 457.8 MB, free: 7.242 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002123/0.4324, allocations: 246.1 kB / 458.1 MB, free: 7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008723/0.4333, allocations: 323.8 kB / 458.4 MB, free: 6.684 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01919/0.4525, allocations: 10.44 MB / 468.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001096/0.4526, allocations: 43.58 kB / 468.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004226/0.4531, allocations: 159.8 kB / 469 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003549/0.4566, allocations: 2.033 MB / 471 MB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0182/0.4748, allocations: 8.905 MB / 480 MB, free: 388 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05488/0.5298, allocations: 40.98 MB / 0.5087 GB, free: 6.312 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0118/0.5416, allocations: 4.484 MB / 0.5131 GB, free: 1.68 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00345/0.5451, allocations: 2.501 MB / 0.5155 GB, free: 15.16 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01301/0.5581, allocations: 7.352 MB / 0.5227 GB, free: 7.602 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.566e-05/0.5582, allocations: 55.5 kB / 0.5228 GB, free: 7.539 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.86e-06/0.5583, allocations: 0 / 0.5228 GB, free: 7.539 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.2153/0.7736, allocations: 18.64 MB / 0.541 GB, free: 143.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.748e-05/0.7737, allocations: 181.5 kB / 0.5411 GB, free: 143.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006504/0.7802, allocations: 4.565 MB / 0.5456 GB, free: 142 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004282/0.7807, allocations: 51.92 kB / 0.5457 GB, free: 142 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001499/0.7822, allocations: 3.126 MB / 0.5487 GB, free: 139.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006681/0.7829, allocations: 0.7638 MB / 0.5495 GB, free: 139 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001419/0.7843, allocations: 1.283 MB / 0.5507 GB, free: 138.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.147e-05/0.7843, allocations: 301.1 kB / 0.551 GB, free: 138.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002761/0.7871, allocations: 2.383 MB / 0.5533 GB, free: 137.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003589/0.7907, allocations: 6.074 MB / 0.5593 GB, free: 131.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006835/0.7976, allocations: 9.152 MB / 0.5682 GB, free: 124.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.025e-05/0.7977, allocations: 34.25 kB / 0.5682 GB, free: 124.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01393/0.8116, allocations: 9.282 MB / 0.5773 GB, free: 117.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.309e-05/0.8117, allocations: 60 kB / 0.5773 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001011/0.8118, allocations: 128 kB / 0.5775 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002498/0.8144, allocations: 1.199 MB / 0.5786 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004011/0.8184, allocations: 1.435 MB / 0.58 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007223/0.8256, allocations: 7.291 MB / 0.5872 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004838/0.8305, allocations: 351.4 kB / 0.5875 GB, free: 106.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001006/0.8315, allocations: 379.7 kB / 0.5879 GB, free: 106.2 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.003358/0.8349, allocations: 2.17 MB / 0.59 GB, free: 104 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008697/0.8358, allocations: 394.9 kB / 0.5904 GB, free: 103.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005848/0.8416, allocations: 4.054 MB / 0.5943 GB, free: 99.54 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.173e-05/0.8417, allocations: 24 kB / 0.5943 GB, free: 99.51 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/0.8417, allocations: 4 kB / 0.5943 GB, free: 99.51 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.869e-05/0.8418, allocations: 7.969 kB / 0.5943 GB, free: 99.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01504/0.8568, allocations: 9.523 MB / 0.6036 GB, free: 89.89 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.113e-05/0.8569, allocations: 5.438 kB / 0.6036 GB, free: 89.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001463/0.8583, allocations: 315.5 kB / 0.6039 GB, free: 89.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002314/0.8607, allocations: 1.023 MB / 0.6049 GB, free: 88.55 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003097/0.861, allocations: 43.98 kB / 0.605 GB, free: 88.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006945/0.8679, allocations: 6.819 MB / 0.6116 GB, free: 81.56 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.868, allocations: 11.94 kB / 0.6117 GB, free: 81.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009275/0.8773, allocations: 7.034 MB / 0.6185 GB, free: 74.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00128/0.8786, allocations: 463.9 kB / 0.619 GB, free: 73.94 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001088/0.8797, allocations: 41.23 kB / 0.619 GB, free: 73.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002355/0.8821, allocations: 119.8 kB / 0.6191 GB, free: 73.78 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004953/0.8826, allocations: 125 kB / 0.6192 GB, free: 73.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002603/0.8829, allocations: 65.86 kB / 0.6193 GB, free: 73.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004689/0.8876, allocations: 2.92 MB / 0.6222 GB, free: 70.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.543e-06/0.8876, allocations: 4 kB / 0.6222 GB, free: 70.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006083/0.8937, allocations: 1.057 MB / 0.6232 GB, free: 69.62 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.0008949/0.8946, allocations: 183.5 kB / 0.6234 GB, free: 69.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009669/0.9043, allocations: 6.816 MB / 0.63 GB, free: 62.66 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.258e-05/0.9043, allocations: 5 kB / 0.63 GB, free: 62.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003255/0.9076, allocations: 2.066 MB / 0.632 GB, free: 60.58 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004252/0.9119, allocations: 486.3 kB / 0.6325 GB, free: 60.12 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01827/0.9302, allocations: 12.53 MB / 0.6447 GB, free: 47.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004276/0.9345, allocations: 3.352 MB / 0.648 GB, free: 44.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001303/0.9358, allocations: 311.4 kB / 0.6483 GB, free: 43.81 MB / 446.1 MB Notification: Performance of SimCode: time 7.52e-07/0.9359, allocations: 0 / 0.6483 GB, free: 43.81 MB / 446.1 MB Notification: Performance of Templates: time 0.258/1.194, allocations: 80.13 MB / 0.7266 GB, free: 137.5 MB / 462.1 MB 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/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