Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 95.3 kB / 16.99 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 182.1 kB / 17.88 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 223.2 MB / 241.8 MB, free: 372 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2412/0.2412, allocations: 44.22 MB / 337.1 MB, free: 2.902 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003191/0.0003192, allocations: 12.88 kB / 409.5 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.1412, allocations: 61.93 MB / 471.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.04432/0.1856, allocations: 44.41 MB / 0.5038 GB, free: 1.234 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2907/0.4763, allocations: 10.78 MB / 0.5143 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01202/0.4884, allocations: 214.1 kB / 0.5145 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009978/0.4984, allocations: 2.232 MB / 0.5167 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02755/0.526, allocations: 6.449 MB / 0.523 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004081/0.5301, allocations: 0.5945 MB / 0.5236 GB, free: 8.793 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03316/0.5633, allocations: 24.78 MB / 0.5478 GB, free: 15.45 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006758/0.5701, allocations: 4.206 MB / 0.5519 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001925/0.572, allocations: 0.9094 MB / 0.5528 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001835/0.5739, allocations: 1.221 MB / 0.554 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004357/0.5744, allocations: 136.3 kB / 0.5541 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001813/0.5762, allocations: 0.9031 MB / 0.555 GB, free: 9.684 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001498/0.5777, allocations: 1.474 MB / 0.5564 GB, free: 8.492 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009151/0.5786, allocations: 0.7985 MB / 0.5572 GB, free: 8.059 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00724/0.5859, allocations: 5.556 MB / 0.5626 GB, free: 3.223 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.5859, allocations: 0 / 0.5626 GB, free: 3.223 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.038e-06/0.5859, allocations: 0 / 0.5626 GB, free: 3.223 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002734/0.5862, allocations: 0 / 0.5626 GB, free: 3.223 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: 1454 * Number of variables: 1454 Notification: Performance of Generate backend data structure: time 0.01013/0.5963, allocations: 3.917 MB / 0.5664 GB, free: 15.59 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.5964, allocations: 8.562 kB / 0.5664 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08867/0.6851, allocations: 8.345 MB / 0.5746 GB, free: 7.633 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006917/0.692, allocations: 2.538 MB / 0.5771 GB, free: 5.609 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002164/0.6923, allocations: 232.1 kB / 0.5773 GB, free: 5.414 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00113/0.6934, allocations: 306.3 kB / 0.5776 GB, free: 5.152 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01759/0.711, allocations: 9.251 MB / 0.5866 GB, free: 11.38 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001214/0.7112, allocations: 39.59 kB / 0.5867 GB, free: 11.34 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004363/0.7116, allocations: 145.6 kB / 0.5868 GB, free: 11.23 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003097/0.7147, allocations: 1.838 MB / 0.5886 GB, free: 9.395 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0157/0.7305, allocations: 7.6 MB / 0.596 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04285/0.7734, allocations: 34.75 MB / 0.63 GB, free: 14.14 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004681/0.7781, allocations: 2.401 MB / 0.6323 GB, free: 11.6 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003555/0.7785, allocations: 320.8 kB / 0.6326 GB, free: 11.23 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/0.7785, allocations: 47.12 kB / 0.6326 GB, free: 11.18 MB / 478.1 MB Notification: Performance of pre-optimization done (n=122): time 4.619e-06/0.7785, allocations: 0 / 0.6326 GB, free: 11.18 MB / 478.1 MB Notification: Performance of matching and sorting (n=140): time 0.0255/0.804, allocations: 11.22 MB / 0.6436 GB, free: 15.79 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.498e-05/0.8041, allocations: 192.6 kB / 0.6438 GB, free: 15.56 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004786/0.8089, allocations: 3.738 MB / 0.6474 GB, free: 11.83 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002318/0.8092, allocations: 45.7 kB / 0.6475 GB, free: 11.78 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001882/0.8111, allocations: 2.961 MB / 0.6504 GB, free: 8.832 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000608/0.8117, allocations: 0.5548 MB / 0.6509 GB, free: 8.281 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002003/0.8119, allocations: 108 kB / 0.651 GB, free: 8.176 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002927/0.8122, allocations: 0.5291 MB / 0.6515 GB, free: 7.641 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002808/0.815, allocations: 1.716 MB / 0.6532 GB, free: 5.918 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004872/0.8199, allocations: 5.115 MB / 0.6582 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004074/0.824, allocations: 2.905 MB / 0.661 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.312e-05/0.8241, allocations: 36 kB / 0.6611 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01166/0.8357, allocations: 6.819 MB / 0.6677 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.812e-05/0.8359, allocations: 57.42 kB / 0.6678 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001441/0.836, allocations: 120 kB / 0.6679 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.8371, allocations: 453 kB / 0.6683 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003689/0.8408, allocations: 1.24 MB / 0.6695 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004001/0.8448, allocations: 3.385 MB / 0.6729 GB, free: 15.93 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004065/0.8489, allocations: 307.7 kB / 0.6731 GB, free: 15.64 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007836/0.8497, allocations: 336 kB / 0.6735 GB, free: 15.31 MB / 0.5138 GB 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.003556/0.8532, allocations: 2.045 MB / 0.6755 GB, free: 13.25 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005979/0.8538, allocations: 308 kB / 0.6758 GB, free: 12.95 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003508/0.8574, allocations: 1.929 MB / 0.6776 GB, free: 11 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.648e-05/0.8574, allocations: 14.58 kB / 0.6777 GB, free: 10.99 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.238e-06/0.8574, allocations: 7.953 kB / 0.6777 GB, free: 10.98 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.8574, allocations: 7.984 kB / 0.6777 GB, free: 10.97 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0113/0.8687, allocations: 5.977 MB / 0.6835 GB, free: 4.957 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.76e-05/0.8688, allocations: 7.953 kB / 0.6835 GB, free: 4.949 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/0.8699, allocations: 229.1 kB / 0.6837 GB, free: 4.727 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007507/0.8707, allocations: 256.6 kB / 0.684 GB, free: 4.473 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001075/0.8708, allocations: 29.3 kB / 0.684 GB, free: 4.445 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003295/0.8741, allocations: 2.957 MB / 0.6869 GB, free: 1.359 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.8741, allocations: 3.984 kB / 0.6869 GB, free: 1.355 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005908/0.8801, allocations: 4.083 MB / 0.6909 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/0.8812, allocations: 376.9 kB / 0.6912 GB, free: 12.85 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004115/0.8816, allocations: 24 kB / 0.6913 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.8828, allocations: 79.92 kB / 0.6913 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00025/0.883, allocations: 104.4 kB / 0.6914 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.912e-05/0.8832, allocations: 39.98 kB / 0.6915 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003588/0.8867, allocations: 2.344 MB / 0.6938 GB, free: 10.28 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8868, allocations: 0 / 0.6938 GB, free: 10.28 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004859/0.8916, allocations: 0.8772 MB / 0.6946 GB, free: 9.402 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 (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.00055/0.8922, allocations: 165.6 kB / 0.6948 GB, free: 9.23 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007678/0.8999, allocations: 4.129 MB / 0.6988 GB, free: 5.117 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/0.9, allocations: 0 / 0.6988 GB, free: 5.117 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002296/0.9023, allocations: 1.196 MB / 0.7 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003068/0.9054, allocations: 398.3 kB / 0.7004 GB, free: 3.52 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2425/1.148, allocations: 9.706 MB / 0.7098 GB, free: 184.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004291/1.152, allocations: 3.241 MB / 0.713 GB, free: 184.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004831/1.157, allocations: 1.731 MB / 0.7147 GB, free: 184.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006644/1.158, allocations: 218.5 kB / 0.7149 GB, free: 184.1 MB / 0.5294 GB Notification: Performance of SimCode: time 8.22e-07/1.158, allocations: 0 / 0.7149 GB, free: 184.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.0476/1.205, allocations: 28.12 MB / 0.7424 GB, free: 169 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches