Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.3_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.007459/0.007459, allocations: 100.3 kB / 15.87 MB, free: 6.309 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.001661/0.001661, allocations: 193.5 kB / 16.79 MB, free: 6.238 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.652/1.652, allocations: 205.1 MB / 222.6 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3814/0.3814, allocations: 43.49 MB / 313.5 MB, free: 8.238 MB / 254.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.001319/0.00132, allocations: 63.91 kB / 382 MB, free: 8.492 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1194, allocations: 57.78 MB / 439.8 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.2598/0.3792, allocations: 53.2 MB / 493 MB, free: 17.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02631/0.4055, allocations: 11.14 MB / 0.4923 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01059/0.4162, allocations: 220.2 kB / 0.4925 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005149/0.4214, allocations: 2.826 MB / 0.4953 GB, free: 8.781 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005352/0.4268, allocations: 1.761 MB / 0.497 GB, free: 8.004 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001815/0.4286, allocations: 0.6508 MB / 0.4977 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01033/0.439, allocations: 6.133 MB / 0.5037 GB, free: 5.914 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006319/0.4453, allocations: 3.83 MB / 0.5074 GB, free: 4.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003691/0.4491, allocations: 1.39 MB / 0.5087 GB, free: 3.965 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005791/0.4549, allocations: 2.367 MB / 0.5111 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001486/0.4564, allocations: 256.8 kB / 0.5113 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003682/0.4601, allocations: 1.191 MB / 0.5125 GB, free: 2.891 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002929/0.463, allocations: 1.976 MB / 0.5144 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003598/0.4667, allocations: 2.288 MB / 0.5166 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01066/0.4773, allocations: 7.518 MB / 0.524 GB, free: 11.08 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.4774, allocations: 0 / 0.524 GB, free: 11.08 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4774, allocations: 0 / 0.524 GB, free: 11.08 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003066/0.4777, allocations: 0 / 0.524 GB, free: 11.08 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1645 * Number of variables: 1645 Notification: Performance of Generate backend data structure: time 0.013/0.4907, allocations: 4.974 MB / 0.5288 GB, free: 6.035 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.4908, allocations: 8.031 kB / 0.5288 GB, free: 6.027 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01598/0.5068, allocations: 2.537 MB / 0.5313 GB, free: 3.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007286/0.5141, allocations: 2.707 MB / 0.534 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000274/0.5145, allocations: 254.7 kB / 0.5342 GB, free: 472 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001232/0.5157, allocations: 327.8 kB / 0.5345 GB, free: 144 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01839/0.5341, allocations: 10.45 MB / 0.5447 GB, free: 5.008 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001467/0.5343, allocations: 47.59 kB / 0.5448 GB, free: 4.961 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004566/0.5348, allocations: 155.8 kB / 0.5449 GB, free: 4.809 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003147/0.5379, allocations: 2.096 MB / 0.547 GB, free: 2.711 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01663/0.5546, allocations: 8.74 MB / 0.5555 GB, free: 9.953 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.052/0.6066, allocations: 38.63 MB / 0.5932 GB, free: 2.242 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005943/0.6126, allocations: 3.052 MB / 0.5962 GB, free: 15.04 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002636/0.6153, allocations: 1.74 MB / 0.5979 GB, free: 13.29 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004232/0.6157, allocations: 336.1 kB / 0.5982 GB, free: 12.91 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/0.6158, allocations: 55.56 kB / 0.5983 GB, free: 12.84 MB / 478.1 MB Notification: Performance of pre-optimization done (n=176): time 3.427e-06/0.6158, allocations: 0 / 0.5983 GB, free: 12.84 MB / 478.1 MB Notification: Performance of matching and sorting (n=194): time 0.03406/0.6498, allocations: 14.78 MB / 0.6127 GB, free: 13.93 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.65, allocations: 201.2 kB / 0.6129 GB, free: 13.68 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005031/0.655, allocations: 3.843 MB / 0.6166 GB, free: 9.852 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003886/0.6554, allocations: 49.7 kB / 0.6167 GB, free: 9.797 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00208/0.6575, allocations: 3.194 MB / 0.6198 GB, free: 6.555 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009817/0.6585, allocations: 0.7406 MB / 0.6205 GB, free: 5.805 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001608/0.6601, allocations: 1.245 MB / 0.6218 GB, free: 4.547 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.6602, allocations: 301.1 kB / 0.622 GB, free: 4.25 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00337/0.6636, allocations: 2.265 MB / 0.6243 GB, free: 1.98 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2446/0.9082, allocations: 5.942 MB / 0.6301 GB, free: 135.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009962/0.9182, allocations: 8.827 MB / 0.6387 GB, free: 129.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001523/0.9184, allocations: 41.28 kB / 0.6387 GB, free: 129.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01558/0.934, allocations: 8.483 MB / 0.647 GB, free: 126.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001502/0.9342, allocations: 66 kB / 0.6471 GB, free: 126.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001888/0.9344, allocations: 129.1 kB / 0.6472 GB, free: 126.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001673/0.9361, allocations: 0.6808 MB / 0.6479 GB, free: 126.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004939/0.941, allocations: 1.452 MB / 0.6493 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005041/0.9461, allocations: 4.077 MB / 0.6533 GB, free: 124.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005875/0.952, allocations: 350.8 kB / 0.6536 GB, free: 124.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001761/0.9538, allocations: 374.9 kB / 0.6539 GB, free: 124.2 MB / 494.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: 30 (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 (764): * Single equations (assignments): 760 * 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,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00748/0.9613, allocations: 2.243 MB / 0.6561 GB, free: 123.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001704/0.963, allocations: 343.7 kB / 0.6565 GB, free: 123.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008416/0.9715, allocations: 3.253 MB / 0.6596 GB, free: 122 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.549e-05/0.9716, allocations: 21.81 kB / 0.6597 GB, free: 122 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.291e-05/0.9716, allocations: 7.375 kB / 0.6597 GB, free: 122 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.33e-05/0.9716, allocations: 7.969 kB / 0.6597 GB, free: 122 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02114/0.9928, allocations: 8.158 MB / 0.6676 GB, free: 119.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.668e-05/0.9928, allocations: 1.984 kB / 0.6676 GB, free: 119.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001678/0.9945, allocations: 343.2 kB / 0.668 GB, free: 119.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001417/0.9959, allocations: 0.5089 MB / 0.6685 GB, free: 119 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001936/0.9962, allocations: 39.09 kB / 0.6685 GB, free: 119 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004036/1, allocations: 3.644 MB / 0.6721 GB, free: 116.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/1, allocations: 1.188 kB / 0.6721 GB, free: 116.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009868/1.01, allocations: 5.922 MB / 0.6778 GB, free: 114.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001732/1.012, allocations: 0.6466 MB / 0.6785 GB, free: 114.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008651/1.013, allocations: 37.84 kB / 0.6785 GB, free: 114.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001915/1.015, allocations: 121.8 kB / 0.6786 GB, free: 114.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004552/1.015, allocations: 127.8 kB / 0.6788 GB, free: 114.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001819/1.015, allocations: 51.17 kB / 0.6788 GB, free: 114.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004768/1.02, allocations: 2.393 MB / 0.6811 GB, free: 113.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/1.02, allocations: 0 / 0.6811 GB, free: 113.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006045/1.026, allocations: 1.026 MB / 0.6821 GB, free: 113.2 MB / 494.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 (164): * Single equations (assignments): 160 * 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.0005247/1.027, allocations: 162 kB / 0.6823 GB, free: 113.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009042/1.036, allocations: 5.356 MB / 0.6875 GB, free: 111.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/1.036, allocations: 0.75 kB / 0.6875 GB, free: 111.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002237/1.038, allocations: 1.717 MB / 0.6892 GB, free: 110.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002389/1.04, allocations: 409.4 kB / 0.6896 GB, free: 110.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01725/1.058, allocations: 11.82 MB / 0.7011 GB, free: 100.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003227/1.061, allocations: 3.456 MB / 0.7045 GB, free: 98.06 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004496/1.066, allocations: 1.943 MB / 0.7064 GB, free: 96.82 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008825/1.066, allocations: 255.9 kB / 0.7067 GB, free: 96.59 MB / 494.1 MB Notification: Performance of SimCode: time 1.082e-06/1.066, allocations: 0 / 0.7067 GB, free: 96.59 MB / 494.1 MB Notification: Performance of Templates: time 0.05577/1.122, allocations: 35.29 MB / 0.7411 GB, free: 61.81 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches