Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000989/0.000989, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001151/0.001151, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.134/1.134, allocations: 227.7 MB / 246.8 MB, free: 9.703 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1606/0.1606, allocations: 46.19 MB / 345.2 MB, free: 11.19 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002092/0.0002092, allocations: 8.281 kB / 419.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08507/0.08529, allocations: 63.56 MB / 483.1 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.1962/0.2815, allocations: 39.61 MB / 0.5104 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01507/0.2966, allocations: 8.943 MB / 0.5192 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005837/0.3025, allocations: 168.7 kB / 0.5193 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009458/0.3034, allocations: 384.5 kB / 0.5197 GB, free: 10 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003262/0.3067, allocations: 1.519 MB / 0.5212 GB, free: 9.523 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00128/0.308, allocations: 0.6563 MB / 0.5218 GB, free: 9.297 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00559/0.3136, allocations: 5.646 MB / 0.5273 GB, free: 8 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004538/0.3181, allocations: 4.84 MB / 0.532 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001119/0.3193, allocations: 0.9926 MB / 0.533 GB, free: 5.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00147/0.3208, allocations: 1.727 MB / 0.5347 GB, free: 4.414 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001921/0.321, allocations: 125.5 kB / 0.5348 GB, free: 4.414 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001302/0.3223, allocations: 1.066 MB / 0.5359 GB, free: 3.953 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007873/0.3231, allocations: 1.534 MB / 0.5374 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008923/0.324, allocations: 1.78 MB / 0.5391 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003725/0.3277, allocations: 6.211 MB / 0.5452 GB, free: 13.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.3277, allocations: 0 / 0.5452 GB, free: 13.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3277, allocations: 0 / 0.5452 GB, free: 13.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.294e-05/0.3278, allocations: 0 / 0.5452 GB, free: 13.74 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.005035/0.3328, allocations: 3.561 MB / 0.5486 GB, free: 10.55 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.3328, allocations: 12.88 kB / 0.5487 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01459/0.3474, allocations: 2.514 MB / 0.5511 GB, free: 8.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003681/0.3511, allocations: 2.42 MB / 0.5535 GB, free: 5.559 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/0.3513, allocations: 221.5 kB / 0.5537 GB, free: 5.371 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004376/0.3517, allocations: 302.5 kB / 0.554 GB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009786/0.3615, allocations: 8.737 MB / 0.5625 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.281e-05/0.3616, allocations: 51.58 kB / 0.5626 GB, free: 11.77 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002941/0.3619, allocations: 137.5 kB / 0.5627 GB, free: 11.67 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002267/0.3642, allocations: 1.652 MB / 0.5643 GB, free: 10.02 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009752/0.3739, allocations: 7.24 MB / 0.5714 GB, free: 2.773 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02818/0.4021, allocations: 33.63 MB / 0.6042 GB, free: 316 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004153/0.4063, allocations: 2.448 MB / 0.6066 GB, free: 13.71 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001542/0.4079, allocations: 1.304 MB / 0.6079 GB, free: 12.39 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002898/0.4082, allocations: 321.1 kB / 0.6082 GB, free: 12.03 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.4082, allocations: 47.12 kB / 0.6082 GB, free: 11.98 MB / 462.1 MB Notification: Performance of pre-optimization done (n=122): time 3.306e-06/0.4082, allocations: 0 / 0.6082 GB, free: 11.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=140): time 0.02527/0.4335, allocations: 11.73 MB / 0.6197 GB, free: 104 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.328e-05/0.4336, allocations: 196.6 kB / 0.6199 GB, free: 15.87 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004594/0.4382, allocations: 3.581 MB / 0.6234 GB, free: 12.29 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 9.443e-05/0.4384, allocations: 41.7 kB / 0.6234 GB, free: 12.24 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001709/0.4401, allocations: 2.812 MB / 0.6262 GB, free: 9.43 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004425/0.4405, allocations: 0.5611 MB / 0.6267 GB, free: 8.875 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000529/0.4411, allocations: 477.8 kB / 0.6272 GB, free: 8.402 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.987e-05/0.4411, allocations: 309 kB / 0.6275 GB, free: 8.098 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002571/0.4437, allocations: 1.83 MB / 0.6292 GB, free: 6.262 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004474/0.4482, allocations: 5.206 MB / 0.6343 GB, free: 15.36 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007466/0.4557, allocations: 7.575 MB / 0.6417 GB, free: 6.109 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.394e-05/0.4558, allocations: 36 kB / 0.6418 GB, free: 6.074 MB / 494.1 MB Notification: Performance of matching and sorting (n=701) (initialization): time 0.01047/0.4662, allocations: 7.27 MB / 0.6489 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.21e-05/0.4663, allocations: 56 kB / 0.6489 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001145/0.4664, allocations: 120 kB / 0.649 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001456/0.4679, allocations: 0.6814 MB / 0.6497 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00307/0.471, allocations: 1.248 MB / 0.6509 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004327/0.4753, allocations: 4.053 MB / 0.6549 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002628/0.478, allocations: 319.6 kB / 0.6552 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003476/0.4783, allocations: 338.1 kB / 0.6555 GB, free: 7.863 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,cutForce.forceArrow.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 (663): * Single equations (assignments): 659 * 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.002374/0.4807, allocations: 1.955 MB / 0.6574 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004141/0.4811, allocations: 300.2 kB / 0.6577 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003946/0.4851, allocations: 2.299 MB / 0.6599 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-05/0.4851, allocations: 16 kB / 0.66 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.4851, allocations: 4 kB / 0.66 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.4851, allocations: 3.984 kB / 0.66 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008895/0.494, allocations: 6.2 MB / 0.666 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.494, allocations: 3.938 kB / 0.666 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008973/0.4949, allocations: 231.7 kB / 0.6662 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001228/0.4962, allocations: 0.5041 MB / 0.6667 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.352e-05/0.4963, allocations: 23.98 kB / 0.6668 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00377/0.5, allocations: 3.633 MB / 0.6703 GB, free: 8.484 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.5001, allocations: 3.938 kB / 0.6703 GB, free: 8.48 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005856/0.5059, allocations: 4.478 MB / 0.6747 GB, free: 3.98 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004475/0.5064, allocations: 361 kB / 0.675 GB, free: 3.605 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000242/0.5066, allocations: 20 kB / 0.675 GB, free: 3.586 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009977/0.5076, allocations: 99.95 kB / 0.6751 GB, free: 3.488 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002119/0.5078, allocations: 88.52 kB / 0.6752 GB, free: 3.402 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.503e-05/0.5079, allocations: 43.97 kB / 0.6753 GB, free: 3.359 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002508/0.5104, allocations: 2.229 MB / 0.6774 GB, free: 1.141 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5105, allocations: 4 kB / 0.6774 GB, free: 1.137 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003058/0.5135, allocations: 0.8427 MB / 0.6783 GB, free: 304 kB / 0.5137 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.0002675/0.5138, allocations: 151.5 kB / 0.6784 GB, free: 144 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005409/0.5192, allocations: 4.35 MB / 0.6827 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.5192, allocations: 0 / 0.6827 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001603/0.5208, allocations: 1.259 MB / 0.6839 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001837/0.5227, allocations: 356.5 kB / 0.6842 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0108/0.5335, allocations: 9.877 MB / 0.6939 GB, free: 276 kB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002748/0.5363, allocations: 3.05 MB / 0.6969 GB, free: 13.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003503/0.5398, allocations: 1.71 MB / 0.6985 GB, free: 11.48 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004614/0.5402, allocations: 207.4 kB / 0.6987 GB, free: 11.28 MB / 0.545 GB Notification: Performance of SimCode: time 4.41e-07/0.5402, allocations: 0 / 0.6987 GB, free: 11.28 MB / 0.545 GB Notification: Performance of Templates: time 0.2085/0.7488, allocations: 28.15 MB / 0.7262 GB, free: 188.2 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches