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.001197/0.001198, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001457/0.001457, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2391/0.2391, allocations: 46.11 MB / 343.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 72.31 kB / 416.8 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.126, allocations: 62.45 MB / 479.3 MB, free: 5.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.2955/0.4216, allocations: 40.72 MB / 0.5078 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02264/0.4442, allocations: 9.007 MB / 0.5166 GB, free: 9.562 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01292/0.4572, allocations: 178.7 kB / 0.5168 GB, free: 9.531 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006296/0.4636, allocations: 2.756 MB / 0.5195 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005632/0.4692, allocations: 1.511 MB / 0.521 GB, free: 8.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002473/0.4717, allocations: 0.6591 MB / 0.5216 GB, free: 8.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01021/0.482, allocations: 5.649 MB / 0.5271 GB, free: 6.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006234/0.4882, allocations: 3.625 MB / 0.5307 GB, free: 4.914 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003859/0.4921, allocations: 1.233 MB / 0.5319 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005319/0.4975, allocations: 2.023 MB / 0.5338 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001571/0.4991, allocations: 222.8 kB / 0.5341 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003332/0.5024, allocations: 1.163 MB / 0.5352 GB, free: 2.797 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002527/0.505, allocations: 1.683 MB / 0.5368 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003897/0.5089, allocations: 1.934 MB / 0.5387 GB, free: 420 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01126/0.5202, allocations: 6.401 MB / 0.545 GB, free: 11.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.628e-06/0.5203, allocations: 0 / 0.545 GB, free: 11.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5203, allocations: 0 / 0.545 GB, free: 11.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003565/0.5207, allocations: 0 / 0.545 GB, free: 11.84 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.01375/0.5344, allocations: 4.334 MB / 0.5492 GB, free: 7.527 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.5345, allocations: 8.875 kB / 0.5492 GB, free: 7.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01678/0.5513, allocations: 2.447 MB / 0.5516 GB, free: 5.066 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005904/0.5572, allocations: 2.424 MB / 0.554 GB, free: 2.602 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002056/0.5575, allocations: 213.3 kB / 0.5542 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001154/0.5586, allocations: 297.8 kB / 0.5545 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01692/0.5756, allocations: 8.722 MB / 0.563 GB, free: 8.895 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000195/0.5758, allocations: 39.66 kB / 0.563 GB, free: 8.855 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001014/0.5768, allocations: 143.6 kB / 0.5632 GB, free: 8.746 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002915/0.5797, allocations: 1.652 MB / 0.5648 GB, free: 7.102 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01654/0.5963, allocations: 7.22 MB / 0.5718 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0437/0.6401, allocations: 33.58 MB / 0.6046 GB, free: 13.47 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004816/0.6449, allocations: 2.452 MB / 0.607 GB, free: 10.87 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001776/0.6467, allocations: 1.278 MB / 0.6082 GB, free: 9.582 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000385/0.6471, allocations: 324.3 kB / 0.6086 GB, free: 9.215 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.064e-05/0.6472, allocations: 51.06 kB / 0.6086 GB, free: 9.156 MB / 462.1 MB Notification: Performance of pre-optimization done (n=122): time 4.098e-06/0.6472, allocations: 0 / 0.6086 GB, free: 9.156 MB / 462.1 MB Notification: Performance of matching and sorting (n=140): time 0.03182/0.679, allocations: 11.44 MB / 0.6198 GB, free: 13.57 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.6792, allocations: 196.5 kB / 0.62 GB, free: 13.33 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006236/0.6854, allocations: 3.581 MB / 0.6235 GB, free: 9.75 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002256/0.6857, allocations: 44.75 kB / 0.6235 GB, free: 9.703 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002306/0.688, allocations: 2.819 MB / 0.6263 GB, free: 6.887 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008022/0.6888, allocations: 0.5522 MB / 0.6268 GB, free: 6.34 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00214/0.6909, allocations: 1.106 MB / 0.6279 GB, free: 5.223 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.6911, allocations: 305.1 kB / 0.6282 GB, free: 4.922 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003073/0.6942, allocations: 1.802 MB / 0.6299 GB, free: 3.113 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005405/0.6996, allocations: 5.182 MB / 0.635 GB, free: 12.23 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008888/0.7085, allocations: 7.525 MB / 0.6423 GB, free: 3.027 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001008/0.7086, allocations: 40 kB / 0.6424 GB, free: 2.988 MB / 494.1 MB Notification: Performance of matching and sorting (n=701) (initialization): time 0.01408/0.7227, allocations: 7.226 MB / 0.6494 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001102/0.7228, allocations: 56 kB / 0.6495 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002003/0.723, allocations: 120 kB / 0.6496 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001716/0.7248, allocations: 0.6721 MB / 0.6503 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004224/0.729, allocations: 1.244 MB / 0.6515 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00605/0.7351, allocations: 4.039 MB / 0.6554 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004995/0.7401, allocations: 305.9 kB / 0.6557 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001347/0.7415, allocations: 340 kB / 0.656 GB, free: 4.859 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.004602/0.7461, allocations: 1.951 MB / 0.6579 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000933/0.747, allocations: 304 kB / 0.6582 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004787/0.7518, allocations: 2.252 MB / 0.6604 GB, free: 340 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.95e-05/0.7519, allocations: 22.11 kB / 0.6605 GB, free: 320 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.318e-05/0.7519, allocations: 4 kB / 0.6605 GB, free: 316 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.283e-05/0.7519, allocations: 3.984 kB / 0.6605 GB, free: 312 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01365/0.7656, allocations: 6.139 MB / 0.6665 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/0.7656, allocations: 3.938 kB / 0.6665 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/0.7667, allocations: 207.7 kB / 0.6667 GB, free: 9.914 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001469/0.7682, allocations: 0.5168 MB / 0.6672 GB, free: 9.395 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000128/0.7683, allocations: 35.05 kB / 0.6672 GB, free: 9.363 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004722/0.773, allocations: 3.625 MB / 0.6707 GB, free: 5.598 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/0.7731, allocations: 3.984 kB / 0.6707 GB, free: 5.594 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007979/0.7811, allocations: 4.395 MB / 0.675 GB, free: 1.176 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/0.7822, allocations: 349.1 kB / 0.6754 GB, free: 0.8125 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006378/0.7828, allocations: 27.94 kB / 0.6754 GB, free: 0.7852 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001373/0.7842, allocations: 79.97 kB / 0.6755 GB, free: 0.707 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003107/0.7846, allocations: 96.5 kB / 0.6756 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001204/0.7847, allocations: 42.72 kB / 0.6756 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005316/0.79, allocations: 2.229 MB / 0.6778 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.6e-07/0.79, allocations: 0 / 0.6778 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005737/0.7958, allocations: 0.8476 MB / 0.6786 GB, free: 13.51 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.0007272/0.7965, allocations: 154.4 kB / 0.6788 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008256/0.8048, allocations: 4.291 MB / 0.6829 GB, free: 9.07 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.8048, allocations: 0 / 0.6829 GB, free: 9.07 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002108/0.8069, allocations: 1.227 MB / 0.6841 GB, free: 7.836 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003246/0.8102, allocations: 370.9 kB / 0.6845 GB, free: 7.477 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01742/0.8277, allocations: 9.823 MB / 0.6941 GB, free: 13.62 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005171/0.8329, allocations: 3.034 MB / 0.697 GB, free: 10.56 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004942/0.8378, allocations: 1.71 MB / 0.6987 GB, free: 8.844 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000915/0.8388, allocations: 207.4 kB / 0.6989 GB, free: 8.641 MB / 0.545 GB Notification: Performance of SimCode: time 8.52e-07/0.8388, allocations: 3.938 kB / 0.6989 GB, free: 8.637 MB / 0.545 GB Notification: Performance of Templates: time 0.3008/1.14, allocations: 28.51 MB / 0.7268 GB, free: 187.9 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