Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001613/0.001613, allocations: 200.4 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.5 MB / 243.4 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008792/0.0008792, allocations: 97.05 kB / 295.5 MB, free: 6.652 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3393/0.3393, allocations: 44.83 MB / 392.3 MB, free: 35.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003008/0.0003008, allocations: 8 kB / 465.3 MB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3802/0.3805, allocations: 62.96 MB / 0.5159 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.03378/0.4143, allocations: 46.98 MB / 0.5618 GB, free: 3.586 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02749/0.4419, allocations: 10.37 MB / 0.5719 GB, free: 12.52 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0132/0.4551, allocations: 215.7 kB / 0.5721 GB, free: 12.49 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009563/0.4647, allocations: 2.48 MB / 0.5745 GB, free: 11.62 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02519/0.4899, allocations: 7.317 MB / 0.5817 GB, free: 5.91 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004566/0.4945, allocations: 0.6669 MB / 0.5823 GB, free: 5.242 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.04134/0.5359, allocations: 32.2 MB / 0.6137 GB, free: 5.008 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007771/0.5437, allocations: 4.734 MB / 0.6184 GB, free: 192 kB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002964/0.5467, allocations: 1.125 MB / 0.6195 GB, free: 15.06 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003044/0.5498, allocations: 1.76 MB / 0.6212 GB, free: 13.29 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008827/0.5507, allocations: 132 kB / 0.6213 GB, free: 13.16 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002643/0.5534, allocations: 1.061 MB / 0.6223 GB, free: 12.1 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00227/0.5557, allocations: 1.593 MB / 0.6239 GB, free: 10.5 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003203/0.5589, allocations: 1.776 MB / 0.6256 GB, free: 8.711 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006653/0.5656, allocations: 5.393 MB / 0.6309 GB, free: 3.305 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.5656, allocations: 0 / 0.6309 GB, free: 3.305 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.5656, allocations: 0 / 0.6309 GB, free: 3.305 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002738/0.5659, allocations: 0 / 0.6309 GB, free: 3.305 MB / 442.7 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.008491/0.5744, allocations: 3.718 MB / 0.6345 GB, free: 15.52 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.5745, allocations: 12.88 kB / 0.6345 GB, free: 15.51 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01469/0.5892, allocations: 2.597 MB / 0.6371 GB, free: 12.91 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005725/0.5949, allocations: 2.472 MB / 0.6395 GB, free: 10.37 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000205/0.5952, allocations: 234.2 kB / 0.6397 GB, free: 10.14 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00101/0.5962, allocations: 307.8 kB / 0.64 GB, free: 9.836 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01642/0.6126, allocations: 9.285 MB / 0.6491 GB, free: 15.91 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001843/0.6128, allocations: 43.64 kB / 0.6491 GB, free: 15.87 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009523/0.6138, allocations: 147.8 kB / 0.6493 GB, free: 15.73 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003192/0.617, allocations: 1.837 MB / 0.6511 GB, free: 13.88 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01519/0.6322, allocations: 7.674 MB / 0.6586 GB, free: 6.184 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.294/0.9263, allocations: 34.9 MB / 0.6926 GB, free: 110 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004266/0.9306, allocations: 2.444 MB / 0.695 GB, free: 109.4 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001543/0.9321, allocations: 1.3 MB / 0.6963 GB, free: 109.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002896/0.9325, allocations: 326.2 kB / 0.6966 GB, free: 109 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.9325, allocations: 46.12 kB / 0.6967 GB, free: 108.9 MB / 490.7 MB Notification: Performance of pre-optimization done (n=122): time 4.008e-06/0.9325, allocations: 0 / 0.6967 GB, free: 108.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=140): time 0.0253/0.9578, allocations: 11.87 MB / 0.7082 GB, free: 104.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.872e-05/0.9579, allocations: 193.5 kB / 0.7084 GB, free: 104 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005591/0.9635, allocations: 3.607 MB / 0.7119 GB, free: 102.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00032/0.9639, allocations: 47.42 kB / 0.712 GB, free: 102.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001913/0.9658, allocations: 2.942 MB / 0.7149 GB, free: 100.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006778/0.9665, allocations: 0.5607 MB / 0.7154 GB, free: 100 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002097/0.9667, allocations: 106.8 kB / 0.7155 GB, free: 99.93 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003272/0.967, allocations: 0.5339 MB / 0.716 GB, free: 99.53 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003461/0.9705, allocations: 1.825 MB / 0.7178 GB, free: 98.98 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005311/0.9758, allocations: 5.259 MB / 0.723 GB, free: 93.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008964/0.9848, allocations: 7.636 MB / 0.7304 GB, free: 87.33 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001868/0.9851, allocations: 35.47 kB / 0.7304 GB, free: 87.33 MB / 490.7 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01295/0.998, allocations: 7.3 MB / 0.7376 GB, free: 84.66 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.957e-05/0.9981, allocations: 57.62 kB / 0.7376 GB, free: 84.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000118/0.9983, allocations: 127.2 kB / 0.7378 GB, free: 84.65 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001481/0.9997, allocations: 0.6829 MB / 0.7384 GB, free: 84.55 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003395/1.003, allocations: 1.261 MB / 0.7396 GB, free: 84.39 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004018/1.007, allocations: 4.061 MB / 0.7436 GB, free: 82.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003964/1.011, allocations: 317.4 kB / 0.7439 GB, free: 81.93 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006363/1.012, allocations: 340.5 kB / 0.7442 GB, free: 81.75 MB / 490.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002842/1.015, allocations: 2.034 MB / 0.7462 GB, free: 79.96 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005256/1.015, allocations: 308 kB / 0.7465 GB, free: 79.66 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003631/1.019, allocations: 2.302 MB / 0.7488 GB, free: 77.35 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-05/1.019, allocations: 17.55 kB / 0.7488 GB, free: 77.33 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/1.019, allocations: 4 kB / 0.7488 GB, free: 77.33 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/1.019, allocations: 7.922 kB / 0.7488 GB, free: 77.32 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009532/1.028, allocations: 6.335 MB / 0.755 GB, free: 70.95 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/1.029, allocations: 11.94 kB / 0.755 GB, free: 70.94 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009523/1.029, allocations: 227.7 kB / 0.7552 GB, free: 70.72 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001197/1.031, allocations: 0.4963 MB / 0.7557 GB, free: 70.22 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001158/1.031, allocations: 28.92 kB / 0.7557 GB, free: 70.19 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003343/1.034, allocations: 3.637 MB / 0.7593 GB, free: 66.42 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/1.034, allocations: 4.031 kB / 0.7593 GB, free: 66.42 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005677/1.04, allocations: 4.457 MB / 0.7636 GB, free: 61.93 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008826/1.041, allocations: 364.9 kB / 0.764 GB, free: 61.55 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003352/1.041, allocations: 20.7 kB / 0.764 GB, free: 61.53 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/1.042, allocations: 95.91 kB / 0.7641 GB, free: 61.43 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/1.042, allocations: 102.2 kB / 0.7642 GB, free: 61.34 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.333e-05/1.043, allocations: 39.98 kB / 0.7642 GB, free: 61.3 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002998/1.046, allocations: 2.238 MB / 0.7664 GB, free: 59.07 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.046, allocations: 0 / 0.7664 GB, free: 59.07 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004561/1.05, allocations: 0.8814 MB / 0.7673 GB, free: 58.19 MB / 490.7 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 (107): * Single equations (assignments): 103 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003516/1.05, allocations: 147.1 kB / 0.7674 GB, free: 58.05 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006057/1.057, allocations: 4.346 MB / 0.7717 GB, free: 53.73 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/1.057, allocations: 0 / 0.7717 GB, free: 53.73 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001519/1.058, allocations: 1.248 MB / 0.7729 GB, free: 52.47 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002648/1.061, allocations: 393.8 kB / 0.7733 GB, free: 52.09 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01301/1.074, allocations: 10.29 MB / 0.7833 GB, free: 41.75 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002576/1.076, allocations: 3.152 MB / 0.7864 GB, free: 38.56 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008362/1.077, allocations: 255.4 kB / 0.7866 GB, free: 38.31 MB / 490.7 MB Notification: Performance of SimCode: time 1.052e-06/1.077, allocations: 0 / 0.7866 GB, free: 38.31 MB / 490.7 MB Notification: Performance of Templates: time 0.08591/1.163, allocations: 68.95 MB / 0.854 GB, free: 1.363 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches