Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 109.4 kB / 18.4 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 183.1 kB / 19.33 MB, free: 3.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.534/1.534, allocations: 205.1 MB / 225.2 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 55.91 kB / 329.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08606/0.08726, allocations: 46.61 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.1944/0.2817, allocations: 12.51 MB / 388.3 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008896/0.2906, allocations: 4.185 MB / 392.5 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002862/0.2936, allocations: 74.22 kB / 392.6 MB, free: 3.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006528/0.3001, allocations: 3.231 MB / 395.8 MB, free: 2.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007004/0.3072, allocations: 2.075 MB / 397.9 MB, free: 1.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002446/0.3096, allocations: 0.8352 MB / 398.7 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00862/0.3183, allocations: 4.558 MB / 403.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005917/0.3242, allocations: 4.163 MB / 407.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004053/0.3283, allocations: 1.763 MB / 409.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00441/0.3328, allocations: 2.35 MB / 411.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001519/0.3343, allocations: 392.6 kB / 411.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003618/0.338, allocations: 1.274 MB / 413.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003288/0.3413, allocations: 2.23 MB / 415.4 MB, free: 7.844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004931/0.3463, allocations: 2.551 MB / 418 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01252/0.3588, allocations: 8.249 MB / 426.2 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.014e-05/0.3589, allocations: 0 / 426.2 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3589, allocations: 3.938 kB / 426.2 MB, free: 13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003217/0.3592, allocations: 4 kB / 426.2 MB, free: 12.99 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: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.01581/0.375, allocations: 5.509 MB / 431.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.3751, allocations: 15.97 kB / 431.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01035/0.3854, allocations: 2.236 MB / 434 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007428/0.3929, allocations: 2.995 MB / 437 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003483/0.3933, allocations: 266.7 kB / 437.3 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001579/0.3949, allocations: 355.7 kB / 437.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02412/0.4191, allocations: 11.65 MB / 449.3 MB, free: 5.125 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002341/0.4194, allocations: 47.58 kB / 449.3 MB, free: 5.078 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001415/0.4208, allocations: 167.8 kB / 449.5 MB, free: 4.914 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004185/0.425, allocations: 2.342 MB / 451.8 MB, free: 2.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0212/0.4462, allocations: 9.975 MB / 461.8 MB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0612/0.5075, allocations: 44.27 MB / 0.4942 GB, free: 11.15 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01364/0.5212, allocations: 5.334 MB / 0.4994 GB, free: 5.672 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004009/0.5252, allocations: 2.818 MB / 0.5022 GB, free: 2.844 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01445/0.5397, allocations: 8.12 MB / 0.5101 GB, free: 10.51 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.377e-05/0.5398, allocations: 63.8 kB / 0.5101 GB, free: 10.44 MB / 446.1 MB Notification: Performance of pre-optimization done (n=216): time 6.632e-06/0.5398, allocations: 3.938 kB / 0.5101 GB, free: 10.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=237): time 0.05856/0.5984, allocations: 20.78 MB / 0.5304 GB, free: 5.504 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.5986, allocations: 180.2 kB / 0.5306 GB, free: 5.289 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008031/0.6066, allocations: 4.766 MB / 0.5353 GB, free: 0.5117 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005625/0.6072, allocations: 53.7 kB / 0.5353 GB, free: 464 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002742/0.61, allocations: 3.397 MB / 0.5386 GB, free: 13.01 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001321/0.6113, allocations: 0.8985 MB / 0.5395 GB, free: 12.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003026/0.6144, allocations: 1.381 MB / 0.5409 GB, free: 10.71 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.6145, allocations: 305.1 kB / 0.5412 GB, free: 10.41 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004853/0.6193, allocations: 2.699 MB / 0.5438 GB, free: 7.703 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1892/0.8086, allocations: 6.617 MB / 0.5503 GB, free: 142.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01359/0.8222, allocations: 10.08 MB / 0.5601 GB, free: 136.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001843/0.8224, allocations: 39.69 kB / 0.5601 GB, free: 136.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.0199/0.8424, allocations: 10.18 MB / 0.5701 GB, free: 132.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001046/0.8425, allocations: 63.58 kB / 0.5701 GB, free: 132.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000199/0.8427, allocations: 136.3 kB / 0.5703 GB, free: 132.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003075/0.8458, allocations: 1.205 MB / 0.5714 GB, free: 132.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005337/0.8511, allocations: 1.605 MB / 0.573 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007943/0.8591, allocations: 7.268 MB / 0.5801 GB, free: 128.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004757/0.8639, allocations: 384.7 kB / 0.5805 GB, free: 128.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000873/0.8648, allocations: 409.2 kB / 0.5809 GB, free: 128.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 42 (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 (835): * Single equations (assignments): 829 * 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.00308/0.8679, allocations: 2.377 MB / 0.5832 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006615/0.8686, allocations: 416.4 kB / 0.5836 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006993/0.8756, allocations: 4.769 MB / 0.5882 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.444e-05/0.8756, allocations: 31.5 kB / 0.5883 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/0.8756, allocations: 6.781 kB / 0.5883 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-05/0.8757, allocations: 11.48 kB / 0.5883 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01463/0.8903, allocations: 10.8 MB / 0.5988 GB, free: 118.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.514e-05/0.8904, allocations: 4 kB / 0.5988 GB, free: 118.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001834/0.8922, allocations: 419.4 kB / 0.5992 GB, free: 118.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002272/0.8945, allocations: 1.02 MB / 0.6002 GB, free: 117.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001809/0.8947, allocations: 47.98 kB / 0.6003 GB, free: 117.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00695/0.9016, allocations: 6.876 MB / 0.607 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.9017, allocations: 7.938 kB / 0.607 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009739/0.9114, allocations: 8.161 MB / 0.615 GB, free: 102 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001601/0.9131, allocations: 0.8381 MB / 0.6158 GB, free: 101.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005986/0.9137, allocations: 48 kB / 0.6158 GB, free: 101.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001799/0.9155, allocations: 145.7 kB / 0.616 GB, free: 100.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003287/0.9158, allocations: 149.6 kB / 0.6161 GB, free: 100.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001494/0.916, allocations: 79.81 kB / 0.6162 GB, free: 100.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00343/0.9194, allocations: 3.05 MB / 0.6192 GB, free: 97.68 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.9194, allocations: 0 / 0.6192 GB, free: 97.68 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005082/0.9245, allocations: 1.178 MB / 0.6203 GB, free: 96.5 MB / 478.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 (198): * Single equations (assignments): 194 * 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.0004802/0.925, allocations: 190.3 kB / 0.6205 GB, free: 96.32 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007985/0.933, allocations: 6.535 MB / 0.6269 GB, free: 89.81 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.288e-06/0.9331, allocations: 0.875 kB / 0.6269 GB, free: 89.81 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003299/0.9364, allocations: 2.419 MB / 0.6292 GB, free: 87.38 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002989/0.9394, allocations: 0.5063 MB / 0.6297 GB, free: 86.89 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01592/0.9553, allocations: 11.72 MB / 0.6412 GB, free: 75.09 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003072/0.9584, allocations: 3.658 MB / 0.6448 GB, free: 71.41 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001381/0.9598, allocations: 347.4 kB / 0.6451 GB, free: 71.07 MB / 478.1 MB Notification: Performance of SimCode: time 8.62e-07/0.9598, allocations: 0 / 0.6451 GB, free: 71.07 MB / 478.1 MB Notification: Performance of Templates: time 0.2846/1.244, allocations: 89.95 MB / 0.7329 GB, free: 166.2 MB / 0.4981 GB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches