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.001389/0.001389, allocations: 108.4 kB / 17.98 MB, free: 5.355 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.001473/0.001473, allocations: 193.3 kB / 18.9 MB, free: 4.438 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.392/1.392, allocations: 222.9 MB / 242.6 MB, free: 15.39 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.2102/0.2102, allocations: 44.18 MB / 336.9 MB, free: 2.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 68.48 kB / 408.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1104, allocations: 60.83 MB / 469.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.2961/0.4065, allocations: 51.78 MB / 0.509 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02757/0.4341, allocations: 10.81 MB / 0.5195 GB, free: 9.082 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01376/0.4479, allocations: 215.8 kB / 0.5197 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005859/0.4538, allocations: 2.683 MB / 0.5223 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005527/0.4594, allocations: 1.596 MB / 0.5239 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002033/0.4615, allocations: 0.6548 MB / 0.5245 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007024/0.4685, allocations: 4.184 MB / 0.5286 GB, free: 6.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004859/0.4734, allocations: 3.936 MB / 0.5325 GB, free: 4.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002667/0.4761, allocations: 1.468 MB / 0.5339 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002919/0.479, allocations: 2.179 MB / 0.536 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007377/0.4798, allocations: 326.6 kB / 0.5363 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002339/0.4822, allocations: 1.225 MB / 0.5375 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001569/0.4837, allocations: 1.868 MB / 0.5394 GB, free: 1.039 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002082/0.4858, allocations: 2.144 MB / 0.5415 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006613/0.4925, allocations: 5.593 MB / 0.5469 GB, free: 11.22 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.4925, allocations: 0 / 0.5469 GB, free: 11.22 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4925, allocations: 0 / 0.5469 GB, free: 11.22 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002165/0.4927, allocations: 0 / 0.5469 GB, free: 11.22 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: 1454 * Number of variables: 1454 Notification: Performance of Generate backend data structure: time 0.01011/0.5028, allocations: 4.516 MB / 0.5513 GB, free: 6.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.5029, allocations: 8.031 kB / 0.5513 GB, free: 6.723 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0158/0.5187, allocations: 2.463 MB / 0.5537 GB, free: 4.254 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005739/0.5245, allocations: 2.496 MB / 0.5562 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001541/0.5247, allocations: 234.9 kB / 0.5564 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006914/0.5254, allocations: 305.4 kB / 0.5567 GB, free: 1.258 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01671/0.5421, allocations: 9.292 MB / 0.5658 GB, free: 7.438 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001273/0.5423, allocations: 43.58 kB / 0.5658 GB, free: 7.395 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004229/0.5427, allocations: 145.3 kB / 0.5659 GB, free: 7.285 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003078/0.5458, allocations: 1.836 MB / 0.5677 GB, free: 5.453 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0151/0.5609, allocations: 7.688 MB / 0.5752 GB, free: 13.74 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04171/0.6027, allocations: 34.85 MB / 0.6093 GB, free: 9.992 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004749/0.6075, allocations: 2.448 MB / 0.6117 GB, free: 7.398 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001721/0.6092, allocations: 1.282 MB / 0.6129 GB, free: 6.105 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003684/0.6096, allocations: 332.6 kB / 0.6132 GB, free: 5.727 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.6096, allocations: 55.05 kB / 0.6133 GB, free: 5.664 MB / 462.1 MB Notification: Performance of pre-optimization done (n=122): time 3.697e-06/0.6097, allocations: 0 / 0.6133 GB, free: 5.664 MB / 462.1 MB Notification: Performance of matching and sorting (n=140): time 0.02753/0.6372, allocations: 11.64 MB / 0.6247 GB, free: 9.879 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.6373, allocations: 196.6 kB / 0.6248 GB, free: 9.645 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00483/0.6422, allocations: 3.626 MB / 0.6284 GB, free: 6.02 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000288/0.6425, allocations: 45.7 kB / 0.6284 GB, free: 5.969 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002241/0.6447, allocations: 2.946 MB / 0.6313 GB, free: 3.027 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007761/0.6455, allocations: 0.5598 MB / 0.6319 GB, free: 2.473 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001473/0.647, allocations: 1.121 MB / 0.6329 GB, free: 1.344 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.6471, allocations: 305.1 kB / 0.6332 GB, free: 1.043 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002709/0.6498, allocations: 1.822 MB / 0.635 GB, free: 15.21 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005172/0.655, allocations: 5.249 MB / 0.6401 GB, free: 8.238 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008994/0.664, allocations: 7.609 MB / 0.6476 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.849e-05/0.6642, allocations: 36 kB / 0.6476 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01351/0.6777, allocations: 7.299 MB / 0.6547 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.996e-05/0.6778, allocations: 59.98 kB / 0.6548 GB, free: 7.527 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001307/0.6779, allocations: 120 kB / 0.6549 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001696/0.6796, allocations: 0.6801 MB / 0.6556 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003931/0.6836, allocations: 1.255 MB / 0.6568 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005184/0.6888, allocations: 4.356 MB / 0.6611 GB, free: 0.9844 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003944/0.6927, allocations: 303.7 kB / 0.6613 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008246/0.6936, allocations: 336 kB / 0.6617 GB, free: 368 kB / 0.4981 GB 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.00357/0.6972, allocations: 2.04 MB / 0.6637 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006409/0.6978, allocations: 308 kB / 0.6639 GB, free: 14 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00435/0.7022, allocations: 2.253 MB / 0.6661 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.194e-05/0.7022, allocations: 16 kB / 0.6662 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.7022, allocations: 8 kB / 0.6662 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.605e-05/0.7023, allocations: 3.984 kB / 0.6662 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01197/0.7142, allocations: 6.298 MB / 0.6723 GB, free: 5.379 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.39e-05/0.7143, allocations: 4 kB / 0.6723 GB, free: 5.375 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/0.7154, allocations: 208.1 kB / 0.6725 GB, free: 5.172 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001476/0.7169, allocations: 0.5041 MB / 0.673 GB, free: 4.664 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001449/0.717, allocations: 27.98 kB / 0.673 GB, free: 4.637 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004845/0.7219, allocations: 3.934 MB / 0.6769 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.7219, allocations: 3.938 kB / 0.6769 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007547/0.7295, allocations: 4.399 MB / 0.6812 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/0.7306, allocations: 357.1 kB / 0.6815 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003745/0.731, allocations: 16 kB / 0.6815 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001171/0.7322, allocations: 89.78 kB / 0.6816 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002804/0.7325, allocations: 96.58 kB / 0.6817 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.7326, allocations: 43.98 kB / 0.6818 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003477/0.7361, allocations: 2.254 MB / 0.684 GB, free: 9.285 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.81e-07/0.7361, allocations: 0 / 0.684 GB, free: 9.285 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004711/0.7408, allocations: 0.8858 MB / 0.6848 GB, free: 8.402 MB / 0.5294 GB 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.000415/0.7412, allocations: 151 kB / 0.685 GB, free: 8.246 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00818/0.7494, allocations: 4.836 MB / 0.6897 GB, free: 3.418 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.7495, allocations: 4 kB / 0.6897 GB, free: 3.414 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001967/0.7514, allocations: 1.232 MB / 0.6909 GB, free: 2.172 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00308/0.7545, allocations: 420.2 kB / 0.6913 GB, free: 1.77 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.017/0.7716, allocations: 10.64 MB / 0.7017 GB, free: 7.086 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003459/0.7751, allocations: 3.156 MB / 0.7048 GB, free: 3.898 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009382/0.776, allocations: 263.3 kB / 0.705 GB, free: 3.641 MB / 0.545 GB Notification: Performance of SimCode: time 8.02e-07/0.776, allocations: 4 kB / 0.705 GB, free: 3.637 MB / 0.545 GB Notification: Performance of Templates: time 0.2957/1.072, allocations: 69.65 MB / 0.7731 GB, free: 156.4 MB / 0.545 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","/var/lib/jenkins1/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