Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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.0.0_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.001217/0.001217, allocations: 93.25 kB / 16.3 MB, free: 6.453 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.001294/0.001295, allocations: 183.6 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 223.2 MB / 241.1 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000235/0.000235, allocations: 6.312 kB / 300.7 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08928/0.08953, allocations: 50.42 MB / 351.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.04479/0.1344, allocations: 48.75 MB / 399.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0283/0.1627, allocations: 11.55 MB / 411.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01033/0.1731, allocations: 239.4 kB / 411.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008723/0.1819, allocations: 2.446 MB / 414.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02361/0.2055, allocations: 7.078 MB / 421.2 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003256/0.2088, allocations: 0.6124 MB / 421.8 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2473/0.4561, allocations: 25.08 MB / 446.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00643/0.4626, allocations: 4.973 MB / 451.9 MB, free: 5.648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001778/0.4644, allocations: 1.056 MB / 452.9 MB, free: 5.648 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002267/0.4667, allocations: 1.332 MB / 454.2 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008989/0.4676, allocations: 150.4 kB / 454.4 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002247/0.4699, allocations: 0.9259 MB / 455.3 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002055/0.472, allocations: 1.669 MB / 457 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001381/0.4734, allocations: 0.8824 MB / 457.9 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005632/0.479, allocations: 5.914 MB / 463.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.479, allocations: 0 / 463.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4791, allocations: 0 / 463.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002014/0.4793, allocations: 0 / 463.8 MB, free: 1.879 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: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.01/0.4893, allocations: 4.537 MB / 468.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.4893, allocations: 12.03 kB / 468.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02622/0.5156, allocations: 5.073 MB / 473.4 MB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006733/0.5223, allocations: 2.815 MB / 476.2 MB, free: 6.941 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002082/0.5226, allocations: 246.6 kB / 476.5 MB, free: 6.809 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000972/0.5236, allocations: 329.2 kB / 476.8 MB, free: 6.598 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01842/0.542, allocations: 10.9 MB / 487.7 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001193/0.5421, allocations: 46.38 kB / 487.7 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000412/0.5426, allocations: 152.2 kB / 487.9 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00357/0.5461, allocations: 2.162 MB / 490 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01928/0.5654, allocations: 9.231 MB / 499.3 MB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04937/0.6149, allocations: 41.85 MB / 0.5284 GB, free: 2.734 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01132/0.6262, allocations: 4.566 MB / 0.5329 GB, free: 14.9 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01039/0.6366, allocations: 7.289 MB / 0.54 GB, free: 8.66 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.765e-05/0.6367, allocations: 49.91 kB / 0.54 GB, free: 8.605 MB / 430.1 MB Notification: Performance of pre-optimization done (n=177): time 4.619e-06/0.6367, allocations: 0 / 0.54 GB, free: 8.605 MB / 430.1 MB Notification: Performance of matching and sorting (n=198): time 0.04355/0.6803, allocations: 18.64 MB / 0.5583 GB, free: 5.809 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.994e-05/0.6804, allocations: 174.8 kB / 0.5584 GB, free: 5.602 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005699/0.6861, allocations: 4.723 MB / 0.563 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003006/0.6864, allocations: 53.7 kB / 0.5631 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001939/0.6883, allocations: 3.241 MB / 0.5663 GB, free: 13.59 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000672/0.689, allocations: 0.7543 MB / 0.567 GB, free: 12.84 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002362/0.6893, allocations: 123 kB / 0.5671 GB, free: 12.72 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003116/0.6896, allocations: 0.5679 MB / 0.5677 GB, free: 12.14 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002951/0.6925, allocations: 2.269 MB / 0.5699 GB, free: 9.871 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004923/0.6975, allocations: 5.977 MB / 0.5757 GB, free: 2.102 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004584/0.7021, allocations: 3.613 MB / 0.5792 GB, free: 14.61 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.108e-05/0.7021, allocations: 40 kB / 0.5793 GB, free: 14.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.01293/0.7151, allocations: 8.832 MB / 0.5879 GB, free: 6.523 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.626e-05/0.7152, allocations: 60 kB / 0.588 GB, free: 6.465 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001173/0.7153, allocations: 132.8 kB / 0.5881 GB, free: 6.336 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002154/0.7175, allocations: 0.9604 MB / 0.589 GB, free: 5.375 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004235/0.7217, allocations: 1.419 MB / 0.5904 GB, free: 4.078 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.169/0.8907, allocations: 6.247 MB / 0.5965 GB, free: 167.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004308/0.895, allocations: 351.6 kB / 0.5968 GB, free: 167.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005492/0.8956, allocations: 379.3 kB / 0.5972 GB, free: 167.9 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.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.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[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 (753): * Single equations (assignments): 747 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003112/0.8987, allocations: 2.233 MB / 0.5994 GB, free: 167.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006454/0.8994, allocations: 396 kB / 0.5998 GB, free: 167.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006328/0.9057, allocations: 3.685 MB / 0.6034 GB, free: 167.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.191e-05/0.9058, allocations: 23.69 kB / 0.6034 GB, free: 167.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.9058, allocations: 6.047 kB / 0.6034 GB, free: 167.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.041e-05/0.9058, allocations: 9.812 kB / 0.6034 GB, free: 167.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01541/0.9212, allocations: 9.261 MB / 0.6124 GB, free: 165.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.527e-05/0.9213, allocations: 5.969 kB / 0.6125 GB, free: 165.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001416/0.9227, allocations: 325.1 kB / 0.6128 GB, free: 165.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001832/0.9245, allocations: 0.7573 MB / 0.6135 GB, free: 165.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001454/0.9247, allocations: 43.42 kB / 0.6135 GB, free: 165.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00632/0.931, allocations: 5.791 MB / 0.6192 GB, free: 162.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.9311, allocations: 9.781 kB / 0.6192 GB, free: 162.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008043/0.9391, allocations: 7.341 MB / 0.6264 GB, free: 159.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001095/0.9402, allocations: 487.2 kB / 0.6268 GB, free: 158.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004479/0.9407, allocations: 39.84 kB / 0.6269 GB, free: 158.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001508/0.9422, allocations: 112.7 kB / 0.627 GB, free: 158.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000253/0.9425, allocations: 123.7 kB / 0.6271 GB, free: 158.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001338/0.9426, allocations: 56.97 kB / 0.6272 GB, free: 158.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003903/0.9465, allocations: 3.041 MB / 0.6301 GB, free: 157.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.9465, allocations: 0 / 0.6301 GB, free: 157.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004547/0.9511, allocations: 1.074 MB / 0.6312 GB, free: 157.7 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 (157): * Single equations (assignments): 153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004685/0.9516, allocations: 200.6 kB / 0.6314 GB, free: 157.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006534/0.9581, allocations: 5.502 MB / 0.6367 GB, free: 153.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.9581, allocations: 0 / 0.6367 GB, free: 153.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002565/0.9607, allocations: 1.971 MB / 0.6387 GB, free: 151.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002161/0.9629, allocations: 483.6 kB / 0.6391 GB, free: 150.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01497/0.9779, allocations: 11.81 MB / 0.6507 GB, free: 138.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003632/0.9815, allocations: 3.547 MB / 0.6541 GB, free: 135.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004552/0.9861, allocations: 2.051 MB / 0.6561 GB, free: 133.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008825/0.987, allocations: 267.4 kB / 0.6564 GB, free: 133 MB / 478.1 MB Notification: Performance of SimCode: time 8.32e-07/0.987, allocations: 0 / 0.6564 GB, free: 133 MB / 478.1 MB Notification: Performance of Templates: time 0.05903/1.046, allocations: 39.64 MB / 0.6951 GB, free: 93.55 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches