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.001211/0.001211, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001241/0.001241, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.245/1.245, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.194/0.194, allocations: 46.11 MB / 345 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 83.81 kB / 482 MB, free: 4.031 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2721, allocations: 62.44 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01016/0.2823, allocations: 9.493 MB / 0.5409 GB, free: 6.156 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007381/0.2897, allocations: 3.823 MB / 0.5447 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001563/0.2913, allocations: 58.06 kB / 0.5447 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005161/0.2965, allocations: 2.751 MB / 0.5474 GB, free: 1.344 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005037/0.3016, allocations: 1.655 MB / 0.549 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001922/0.3036, allocations: 0.7174 MB / 0.5497 GB, free: 15.16 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005624/0.3092, allocations: 3.891 MB / 0.5535 GB, free: 11.26 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004449/0.3137, allocations: 3.676 MB / 0.5571 GB, free: 7.516 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002195/0.3159, allocations: 1.406 MB / 0.5585 GB, free: 6.105 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002772/0.3187, allocations: 1.9 MB / 0.5603 GB, free: 4.199 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008197/0.3195, allocations: 312 kB / 0.5606 GB, free: 3.895 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002235/0.3218, allocations: 1.194 MB / 0.5618 GB, free: 2.699 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0018/0.3236, allocations: 1.753 MB / 0.5635 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002854/0.3265, allocations: 2.012 MB / 0.5655 GB, free: 14.92 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006947/0.3334, allocations: 6.665 MB / 0.572 GB, free: 8.23 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3335, allocations: 0 / 0.572 GB, free: 8.23 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3335, allocations: 0 / 0.572 GB, free: 8.23 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000179/0.3337, allocations: 0 / 0.572 GB, free: 8.23 MB / 430.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.008437/0.3421, allocations: 4.352 MB / 0.5762 GB, free: 3.812 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.3422, allocations: 8.031 kB / 0.5763 GB, free: 3.805 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01338/0.3555, allocations: 2.437 MB / 0.5786 GB, free: 1.359 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005005/0.3606, allocations: 2.453 MB / 0.581 GB, free: 14.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/0.3608, allocations: 225.9 kB / 0.5812 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006471/0.3614, allocations: 295.8 kB / 0.5815 GB, free: 14.33 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01204/0.3735, allocations: 8.72 MB / 0.59 GB, free: 4.973 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.875e-05/0.3736, allocations: 43.58 kB / 0.5901 GB, free: 4.93 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000321/0.3739, allocations: 143.8 kB / 0.5902 GB, free: 4.789 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002263/0.3762, allocations: 1.65 MB / 0.5918 GB, free: 3.137 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01194/0.3881, allocations: 7.207 MB / 0.5989 GB, free: 11.92 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03397/0.4222, allocations: 33.41 MB / 0.6315 GB, free: 9.508 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004287/0.4265, allocations: 2.449 MB / 0.6339 GB, free: 6.91 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001596/0.4281, allocations: 1.297 MB / 0.6352 GB, free: 5.609 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003356/0.4285, allocations: 327.7 kB / 0.6355 GB, free: 5.234 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.502e-05/0.4285, allocations: 43.12 kB / 0.6355 GB, free: 5.184 MB / 494.1 MB Notification: Performance of pre-optimization done (n=122): time 3.346e-06/0.4285, allocations: 4 kB / 0.6355 GB, free: 5.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=140): time 0.02501/0.4535, allocations: 11.45 MB / 0.6467 GB, free: 9.578 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.4537, allocations: 196.6 kB / 0.6469 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004424/0.4581, allocations: 3.573 MB / 0.6504 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001845/0.4583, allocations: 49.64 kB / 0.6504 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001587/0.4599, allocations: 2.817 MB / 0.6532 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005351/0.4605, allocations: 0.5556 MB / 0.6537 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001194/0.4617, allocations: 1.106 MB / 0.6548 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.139e-05/0.4618, allocations: 305.1 kB / 0.6551 GB, free: 0.8789 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002514/0.4643, allocations: 1.806 MB / 0.6568 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004573/0.4689, allocations: 5.186 MB / 0.6619 GB, free: 8.18 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007717/0.4766, allocations: 7.521 MB / 0.6693 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.011e-05/0.4767, allocations: 36 kB / 0.6693 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of matching and sorting (n=701) (initialization): time 0.01132/0.4881, allocations: 7.227 MB / 0.6763 GB, free: 7.707 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.678e-05/0.4882, allocations: 57 kB / 0.6764 GB, free: 7.652 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001068/0.4883, allocations: 120 kB / 0.6765 GB, free: 7.535 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001511/0.4898, allocations: 0.6785 MB / 0.6772 GB, free: 6.855 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003317/0.4931, allocations: 1.236 MB / 0.6784 GB, free: 5.617 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00459/0.4977, allocations: 4.334 MB / 0.6826 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003253/0.501, allocations: 299.6 kB / 0.6829 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005011/0.5015, allocations: 340 kB / 0.6832 GB, free: 0.5156 MB / 0.5294 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.002444/0.504, allocations: 1.947 MB / 0.6851 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004793/0.5045, allocations: 300.1 kB / 0.6854 GB, free: 14.26 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003775/0.5082, allocations: 2.26 MB / 0.6876 GB, free: 11.98 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.659e-05/0.5083, allocations: 16.38 kB / 0.6876 GB, free: 11.97 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.5083, allocations: 4 kB / 0.6876 GB, free: 11.96 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.5083, allocations: 7.922 kB / 0.6877 GB, free: 11.96 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009527/0.5178, allocations: 6.127 MB / 0.6936 GB, free: 5.762 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.5179, allocations: 3.938 kB / 0.6936 GB, free: 5.758 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009592/0.5189, allocations: 211.7 kB / 0.6938 GB, free: 5.551 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001277/0.5201, allocations: 0.508 MB / 0.6943 GB, free: 5.039 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.5203, allocations: 27.98 kB / 0.6944 GB, free: 5.012 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004077/0.5243, allocations: 3.919 MB / 0.6982 GB, free: 0.9531 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.5244, allocations: 4.031 kB / 0.6982 GB, free: 0.9492 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006054/0.5304, allocations: 4.394 MB / 0.7025 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006947/0.5311, allocations: 353.1 kB / 0.7028 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002754/0.5314, allocations: 23.94 kB / 0.7028 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009793/0.5324, allocations: 79.97 kB / 0.7029 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/0.5327, allocations: 100.4 kB / 0.703 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.685e-05/0.5328, allocations: 43.97 kB / 0.7031 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002747/0.5355, allocations: 2.225 MB / 0.7052 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5355, allocations: 0 / 0.7052 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003671/0.5392, allocations: 0.8398 MB / 0.7061 GB, free: 8.855 MB / 0.5606 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.0003396/0.5396, allocations: 155 kB / 0.7062 GB, free: 8.695 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006257/0.5458, allocations: 4.302 MB / 0.7104 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.5459, allocations: 4 kB / 0.7104 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001635/0.5475, allocations: 1.24 MB / 0.7116 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/0.5494, allocations: 392.2 kB / 0.712 GB, free: 2.77 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01215/0.5616, allocations: 8.321 MB / 0.7201 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002711/0.5643, allocations: 3.022 MB / 0.7231 GB, free: 7.359 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001007/0.5654, allocations: 263.3 kB / 0.7233 GB, free: 7.102 MB / 0.5762 GB Notification: Performance of SimCode: time 1.333e-06/0.5654, allocations: 4 kB / 0.7233 GB, free: 7.098 MB / 0.5762 GB Notification: Performance of Templates: time 0.2844/0.8498, allocations: 67.63 MB / 0.7894 GB, free: 129 MB / 0.5762 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/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_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches