Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001189/0.001189, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.347/1.347, allocations: 222.9 MB / 242.2 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2126/0.2126, allocations: 44.17 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 68.44 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1334, allocations: 60.82 MB / 469.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01272/0.1462, allocations: 9.779 MB / 479 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008348/0.1546, allocations: 3.839 MB / 482.9 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00209/0.1567, allocations: 51.88 kB / 482.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005189/0.1619, allocations: 2.792 MB / 485.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004705/0.1667, allocations: 1.704 MB / 487.4 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001867/0.1685, allocations: 0.7057 MB / 488.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005979/0.1745, allocations: 3.973 MB / 492.1 MB, free: 7.449 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006335/0.1809, allocations: 3.745 MB / 495.8 MB, free: 3.637 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003731/0.1847, allocations: 1.449 MB / 497.3 MB, free: 2.184 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003344/0.188, allocations: 1.963 MB / 499.3 MB, free: 220 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001169/0.1892, allocations: 328 kB / 499.6 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002951/0.1922, allocations: 1.202 MB / 0.489 GB, free: 14.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002559/0.1948, allocations: 1.851 MB / 0.4908 GB, free: 12.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004021/0.1988, allocations: 2.121 MB / 0.4929 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00969/0.2085, allocations: 6.784 MB / 0.4995 GB, free: 3.898 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.906e-06/0.2085, allocations: 0 / 0.4995 GB, free: 3.898 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.2086, allocations: 0 / 0.4995 GB, free: 3.898 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002799/0.2088, allocations: 0 / 0.4995 GB, free: 3.898 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: 1454 * Number of variables: 1454 Notification: Performance of Generate backend data structure: time 0.2516/0.4604, allocations: 4.52 MB / 0.504 GB, free: 46.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.409e-05/0.4605, allocations: 10.53 kB / 0.504 GB, free: 46.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01763/0.4782, allocations: 2.457 MB / 0.5064 GB, free: 45.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007839/0.4861, allocations: 2.5 MB / 0.5088 GB, free: 44.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001977/0.4863, allocations: 227 kB / 0.509 GB, free: 44.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000859/0.4872, allocations: 302.7 kB / 0.5093 GB, free: 44.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01527/0.5024, allocations: 9.297 MB / 0.5184 GB, free: 40.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001088/0.5026, allocations: 45.53 kB / 0.5184 GB, free: 40.15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00035/0.5029, allocations: 140.4 kB / 0.5186 GB, free: 40.08 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002691/0.5056, allocations: 1.84 MB / 0.5204 GB, free: 39.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01149/0.5171, allocations: 7.684 MB / 0.5279 GB, free: 33.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03281/0.55, allocations: 34.85 MB / 0.5619 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004895/0.5549, allocations: 2.447 MB / 0.5643 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001699/0.5566, allocations: 1.281 MB / 0.5655 GB, free: 9.574 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003719/0.557, allocations: 335.6 kB / 0.5659 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.116e-05/0.5571, allocations: 47.12 kB / 0.5659 GB, free: 9.137 MB / 398.1 MB Notification: Performance of pre-optimization done (n=122): time 4.017e-06/0.5571, allocations: 0 / 0.5659 GB, free: 9.137 MB / 398.1 MB Notification: Performance of matching and sorting (n=140): time 0.03179/0.5889, allocations: 11.66 MB / 0.5773 GB, free: 13.33 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001346/0.5891, allocations: 192.6 kB / 0.5775 GB, free: 13.1 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005364/0.5944, allocations: 3.63 MB / 0.581 GB, free: 9.473 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003379/0.5948, allocations: 45.7 kB / 0.5811 GB, free: 9.422 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002153/0.597, allocations: 2.942 MB / 0.5839 GB, free: 6.441 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007684/0.5977, allocations: 0.5595 MB / 0.5845 GB, free: 5.875 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001409/0.5992, allocations: 1.114 MB / 0.5856 GB, free: 4.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.5993, allocations: 313 kB / 0.5859 GB, free: 4.441 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002746/0.602, allocations: 1.814 MB / 0.5876 GB, free: 2.621 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005289/0.6073, allocations: 5.254 MB / 0.5928 GB, free: 11.64 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009445/0.6168, allocations: 7.615 MB / 0.6002 GB, free: 2.324 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001027/0.6169, allocations: 39.94 kB / 0.6002 GB, free: 2.285 MB / 430.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01361/0.6306, allocations: 7.299 MB / 0.6074 GB, free: 10.97 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.291e-05/0.6307, allocations: 58.66 kB / 0.6074 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001308/0.6308, allocations: 120 kB / 0.6075 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001607/0.6324, allocations: 0.6877 MB / 0.6082 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00376/0.6362, allocations: 1.255 MB / 0.6094 GB, free: 8.852 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005135/0.6413, allocations: 4.338 MB / 0.6137 GB, free: 4.375 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003927/0.6453, allocations: 303.6 kB / 0.614 GB, free: 4.078 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005719/0.6459, allocations: 337 kB / 0.6143 GB, free: 3.75 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 553 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (672): * Single equations (assignments): 668 * 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 {(2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003212/0.6491, allocations: 2.049 MB / 0.6163 GB, free: 1.688 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005962/0.6497, allocations: 303.9 kB / 0.6166 GB, free: 1.391 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00408/0.6538, allocations: 2.256 MB / 0.6188 GB, free: 15.12 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.383e-05/0.6538, allocations: 16 kB / 0.6188 GB, free: 15.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.6538, allocations: 4 kB / 0.6188 GB, free: 15.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.6539, allocations: 7.984 kB / 0.6188 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01086/0.6647, allocations: 6.297 MB / 0.625 GB, free: 8.727 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.539e-05/0.6648, allocations: 3.938 kB / 0.625 GB, free: 8.723 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001037/0.6658, allocations: 223.6 kB / 0.6252 GB, free: 8.504 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001374/0.6672, allocations: 0.5041 MB / 0.6257 GB, free: 7.996 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.659e-05/0.6673, allocations: 23.98 kB / 0.6257 GB, free: 7.973 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004546/0.6718, allocations: 3.919 MB / 0.6295 GB, free: 3.91 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.6719, allocations: 0 / 0.6295 GB, free: 3.91 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006664/0.6785, allocations: 4.4 MB / 0.6338 GB, free: 15.49 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001165/0.6797, allocations: 357.3 kB / 0.6341 GB, free: 15.12 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003435/0.6801, allocations: 16 kB / 0.6342 GB, free: 15.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.6812, allocations: 87.89 kB / 0.6342 GB, free: 15.02 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000284/0.6815, allocations: 104.3 kB / 0.6343 GB, free: 14.91 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.6816, allocations: 39.98 kB / 0.6344 GB, free: 14.88 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003307/0.685, allocations: 2.258 MB / 0.6366 GB, free: 12.63 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.685, allocations: 4 kB / 0.6366 GB, free: 12.62 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004595/0.6896, allocations: 0.8777 MB / 0.6375 GB, free: 11.75 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.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 (107): * Single equations (assignments): 103 * 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 {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003593/0.6899, allocations: 154.1 kB / 0.6376 GB, free: 11.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008386/0.6983, allocations: 4.837 MB / 0.6423 GB, free: 6.789 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.6984, allocations: 384 / 0.6423 GB, free: 6.789 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001866/0.7002, allocations: 1.232 MB / 0.6435 GB, free: 5.543 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002426/0.7027, allocations: 417.2 kB / 0.6439 GB, free: 5.145 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01695/0.7196, allocations: 8.356 MB / 0.6521 GB, free: 12.75 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003293/0.723, allocations: 3.157 MB / 0.6552 GB, free: 9.555 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004701/0.7277, allocations: 1.722 MB / 0.6568 GB, free: 7.828 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007189/0.7284, allocations: 219.4 kB / 0.6571 GB, free: 7.613 MB / 494.1 MB Notification: Performance of SimCode: time 1.362e-06/0.7285, allocations: 4 kB / 0.6571 GB, free: 7.609 MB / 494.1 MB Notification: Performance of Templates: time 0.06225/0.7907, allocations: 30.6 MB / 0.6869 GB, free: 9.094 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches