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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009681/0.0009684, allocations: 199.7 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.249/1.249, allocations: 226.5 MB / 243.4 MB, free: 8.117 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000786/0.0007858, allocations: 92.5 kB / 295.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3245/0.3245, allocations: 44.82 MB / 392.3 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002713/0.0002714, allocations: 11.98 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.284, allocations: 62.95 MB / 0.516 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.03395/0.318, allocations: 46.99 MB / 0.5618 GB, free: 3.469 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02365/0.3417, allocations: 10.38 MB / 0.572 GB, free: 12.4 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01024/0.352, allocations: 220.6 kB / 0.5722 GB, free: 12.36 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008871/0.3609, allocations: 2.48 MB / 0.5746 GB, free: 11.49 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0227/0.3836, allocations: 7.308 MB / 0.5817 GB, free: 5.93 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004179/0.3878, allocations: 0.663 MB / 0.5824 GB, free: 5.266 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.03876/0.4266, allocations: 32.2 MB / 0.6138 GB, free: 5.027 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007195/0.4339, allocations: 4.73 MB / 0.6184 GB, free: 216 kB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002455/0.4364, allocations: 1.129 MB / 0.6196 GB, free: 15.08 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002827/0.4393, allocations: 1.764 MB / 0.6213 GB, free: 13.31 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008237/0.4401, allocations: 132 kB / 0.6214 GB, free: 13.18 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002558/0.4427, allocations: 1.057 MB / 0.6224 GB, free: 12.12 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00183/0.4445, allocations: 1.586 MB / 0.624 GB, free: 10.53 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001752/0.4463, allocations: 1.827 MB / 0.6258 GB, free: 8.688 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005152/0.4515, allocations: 5.549 MB / 0.6312 GB, free: 3.125 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.4515, allocations: 0 / 0.6312 GB, free: 3.125 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.4515, allocations: 4 kB / 0.6312 GB, free: 3.121 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001552/0.4517, allocations: 0 / 0.6312 GB, free: 3.121 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.00851/0.4602, allocations: 3.831 MB / 0.6349 GB, free: 15.23 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.4603, allocations: 8.031 kB / 0.6349 GB, free: 15.22 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001641/0.4619, allocations: 0.6986 MB / 0.6356 GB, free: 14.51 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08053/0.5425, allocations: 7.314 MB / 0.6428 GB, free: 7.18 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00569/0.5482, allocations: 2.683 MB / 0.6454 GB, free: 4.434 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001699/0.5484, allocations: 233.9 kB / 0.6456 GB, free: 4.203 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006889/0.5491, allocations: 299.8 kB / 0.6459 GB, free: 3.91 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01331/0.5624, allocations: 9.239 MB / 0.6549 GB, free: 10.04 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.981e-05/0.5625, allocations: 39.59 kB / 0.655 GB, free: 9.996 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003681/0.5629, allocations: 143.9 kB / 0.6551 GB, free: 9.855 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002792/0.5657, allocations: 1.837 MB / 0.6569 GB, free: 8.012 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01273/0.5785, allocations: 7.556 MB / 0.6643 GB, free: 444 kB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2418/0.8203, allocations: 34.69 MB / 0.6981 GB, free: 110.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004127/0.8245, allocations: 2.385 MB / 0.7005 GB, free: 109.3 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001333/0.8259, allocations: 1.236 MB / 0.7017 GB, free: 108.8 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003092/0.8262, allocations: 326.7 kB / 0.702 GB, free: 108.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.8262, allocations: 51.44 kB / 0.702 GB, free: 108.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=122): time 3.376e-06/0.8262, allocations: 0 / 0.702 GB, free: 108.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=140): time 0.02771/0.8539, allocations: 10.9 MB / 0.7127 GB, free: 104 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.573e-05/0.854, allocations: 196 kB / 0.7129 GB, free: 103.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006593/0.8606, allocations: 3.617 MB / 0.7164 GB, free: 102.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002187/0.8609, allocations: 50.72 kB / 0.7164 GB, free: 102.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002037/0.8629, allocations: 2.962 MB / 0.7193 GB, free: 100.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000674/0.8636, allocations: 0.5472 MB / 0.7199 GB, free: 99.79 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004052/0.864, allocations: 110.7 kB / 0.72 GB, free: 99.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004004/0.8645, allocations: 0.5322 MB / 0.7205 GB, free: 99.3 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003308/0.8678, allocations: 1.718 MB / 0.7222 GB, free: 98.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004652/0.8724, allocations: 5.131 MB / 0.7272 GB, free: 93.63 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00793/0.8804, allocations: 7.459 MB / 0.7345 GB, free: 87.16 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002102/0.8806, allocations: 34.62 kB / 0.7345 GB, free: 87.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01251/0.8932, allocations: 6.82 MB / 0.7412 GB, free: 84.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001838/0.8934, allocations: 55.12 kB / 0.7412 GB, free: 84.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002047/0.8936, allocations: 124.5 kB / 0.7413 GB, free: 84.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.8946, allocations: 429.3 kB / 0.7417 GB, free: 84.53 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0037/0.8984, allocations: 1.235 MB / 0.7429 GB, free: 84.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003266/0.9016, allocations: 3.331 MB / 0.7462 GB, free: 82.24 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004099/0.9058, allocations: 305.5 kB / 0.7465 GB, free: 82.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008273/0.9066, allocations: 334.3 kB / 0.7468 GB, free: 82.09 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 (653): * Single equations (assignments): 649 * 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%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003469/0.9101, allocations: 2.038 MB / 0.7488 GB, free: 80.69 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006952/0.9108, allocations: 307.9 kB / 0.7491 GB, free: 80.39 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003648/0.9145, allocations: 1.926 MB / 0.751 GB, free: 78.73 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.289e-05/0.9146, allocations: 20.69 kB / 0.751 GB, free: 78.71 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.831e-05/0.9146, allocations: 11.94 kB / 0.751 GB, free: 78.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.102e-05/0.9146, allocations: 3.984 kB / 0.751 GB, free: 78.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01255/0.9272, allocations: 5.975 MB / 0.7568 GB, free: 72.68 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/0.9273, allocations: 0 / 0.7568 GB, free: 72.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/0.9283, allocations: 231.7 kB / 0.7571 GB, free: 72.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006825/0.929, allocations: 252.6 kB / 0.7573 GB, free: 72.21 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001263/0.9291, allocations: 28.86 kB / 0.7573 GB, free: 72.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002692/0.9318, allocations: 2.915 MB / 0.7602 GB, free: 69.14 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.9318, allocations: 4.031 kB / 0.7602 GB, free: 69.13 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005075/0.9369, allocations: 4.001 MB / 0.7641 GB, free: 65.11 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009955/0.9379, allocations: 368.9 kB / 0.7644 GB, free: 64.72 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006911/0.9386, allocations: 24 kB / 0.7645 GB, free: 64.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001487/0.9401, allocations: 85.23 kB / 0.7646 GB, free: 64.62 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003283/0.9405, allocations: 96.52 kB / 0.7646 GB, free: 64.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.929e-05/0.9406, allocations: 43.97 kB / 0.7647 GB, free: 64.48 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003421/0.944, allocations: 2.243 MB / 0.7669 GB, free: 62.25 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.944, allocations: 0 / 0.7669 GB, free: 62.25 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005075/0.9491, allocations: 0.859 MB / 0.7677 GB, free: 61.39 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.005842/0.955, allocations: 4.634 MB / 0.7722 GB, free: 56.73 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005842/0.9609, allocations: 4.127 MB / 0.7763 GB, free: 52.62 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.9609, allocations: 4 kB / 0.7763 GB, free: 52.62 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.9624, allocations: 1.186 MB / 0.7774 GB, free: 51.42 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002949/0.9653, allocations: 405.1 kB / 0.7778 GB, free: 51.03 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04525/1.011, allocations: 29.75 MB / 0.8069 GB, free: 18.09 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003637/1.014, allocations: 3.156 MB / 0.81 GB, free: 14.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002159/1.016, allocations: 1.804 MB / 0.8117 GB, free: 13.1 MB / 490.7 MB Notification: Performance of SimCode: time 8.82e-07/1.016, allocations: 0 / 0.8117 GB, free: 13.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.631/7.647, allocations: 84.85 MB / 0.8946 GB, free: 173.9 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_DifferentiationOfForces_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches