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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001567/0.001567, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001812/0.001812, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.384/1.384, allocations: 222.9 MB / 242.3 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1992/0.1992, allocations: 44.19 MB / 336.6 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 58.31 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1304, allocations: 60.83 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01356/0.144, allocations: 9.787 MB / 479.1 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008712/0.1528, allocations: 3.839 MB / 483 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00187/0.1547, allocations: 51.88 kB / 483 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00534/0.1601, allocations: 2.788 MB / 485.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004897/0.165, allocations: 1.712 MB / 487.5 MB, free: 12.03 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001989/0.1671, allocations: 0.7018 MB / 488.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006384/0.1735, allocations: 3.968 MB / 492.2 MB, free: 7.348 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006246/0.1798, allocations: 3.737 MB / 495.9 MB, free: 3.543 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003089/0.1829, allocations: 1.445 MB / 497.4 MB, free: 2.094 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003243/0.1862, allocations: 1.966 MB / 499.4 MB, free: 124 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001455/0.1876, allocations: 324 kB / 499.7 MB, free: 15.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003519/0.1912, allocations: 1.213 MB / 0.4891 GB, free: 14.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002875/0.1941, allocations: 1.827 MB / 0.4909 GB, free: 12.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004904/0.199, allocations: 2.191 MB / 0.4931 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009099/0.2082, allocations: 6.955 MB / 0.4999 GB, free: 3.578 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.2082, allocations: 0 / 0.4999 GB, free: 3.578 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.667e-06/0.2082, allocations: 0 / 0.4999 GB, free: 3.578 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002278/0.2084, allocations: 7.938 kB / 0.4999 GB, free: 3.57 MB / 382.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.264/0.4724, allocations: 4.631 MB / 0.5044 GB, free: 46.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.522e-05/0.4725, allocations: 10.09 kB / 0.5044 GB, free: 46.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002535/0.4751, allocations: 0.6987 MB / 0.5051 GB, free: 45.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09294/0.568, allocations: 7.058 MB / 0.512 GB, free: 45.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007713/0.5758, allocations: 2.792 MB / 0.5147 GB, free: 43.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002637/0.5761, allocations: 233.4 kB / 0.5149 GB, free: 43.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001382/0.5775, allocations: 297.5 kB / 0.5152 GB, free: 43.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01484/0.5924, allocations: 9.237 MB / 0.5242 GB, free: 36.96 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001154/0.5925, allocations: 36.41 kB / 0.5243 GB, free: 36.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004111/0.5929, allocations: 143.9 kB / 0.5244 GB, free: 36.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002473/0.5954, allocations: 1.849 MB / 0.5262 GB, free: 34.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01319/0.6086, allocations: 7.554 MB / 0.5336 GB, free: 27.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04019/0.6489, allocations: 34.65 MB / 0.5674 GB, free: 7.688 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005087/0.654, allocations: 2.379 MB / 0.5697 GB, free: 5.164 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001789/0.6558, allocations: 1.223 MB / 0.5709 GB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004184/0.6563, allocations: 327.6 kB / 0.5713 GB, free: 3.551 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.508e-05/0.6563, allocations: 43.12 kB / 0.5713 GB, free: 3.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=122): time 5.22e-06/0.6563, allocations: 0 / 0.5713 GB, free: 3.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=140): time 0.03006/0.6864, allocations: 10.69 MB / 0.5817 GB, free: 8.684 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.6866, allocations: 200.5 kB / 0.5819 GB, free: 8.445 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007958/0.6946, allocations: 3.636 MB / 0.5855 GB, free: 4.812 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004218/0.695, allocations: 45.7 kB / 0.5855 GB, free: 4.762 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002659/0.6977, allocations: 2.961 MB / 0.5884 GB, free: 1.758 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009369/0.6987, allocations: 0.5517 MB / 0.5889 GB, free: 1.199 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002299/0.701, allocations: 1.079 MB / 0.59 GB, free: 112 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.7011, allocations: 305.1 kB / 0.5903 GB, free: 15.81 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002997/0.7041, allocations: 1.716 MB / 0.592 GB, free: 14.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005681/0.7098, allocations: 5.131 MB / 0.597 GB, free: 7.227 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0105/0.7204, allocations: 7.423 MB / 0.6042 GB, free: 14.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001548/0.7206, allocations: 36 kB / 0.6043 GB, free: 14.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01509/0.7357, allocations: 6.807 MB / 0.6109 GB, free: 7.254 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001759/0.7359, allocations: 57 kB / 0.611 GB, free: 7.199 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002583/0.7362, allocations: 120.1 kB / 0.6111 GB, free: 7.082 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001276/0.7374, allocations: 437.4 kB / 0.6115 GB, free: 6.652 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004261/0.7417, allocations: 1.228 MB / 0.6127 GB, free: 5.422 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004603/0.7463, allocations: 3.61 MB / 0.6162 GB, free: 1.672 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004074/0.7504, allocations: 295.6 kB / 0.6165 GB, free: 1.383 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008136/0.7513, allocations: 332 kB / 0.6168 GB, free: 1.059 MB / 446.1 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 (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,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003617/0.7549, allocations: 2.037 MB / 0.6188 GB, free: 15.01 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006972/0.7556, allocations: 308 kB / 0.6191 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003953/0.7596, allocations: 1.883 MB / 0.6209 GB, free: 12.81 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.926e-05/0.7596, allocations: 19.98 kB / 0.621 GB, free: 12.79 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.7597, allocations: 8 kB / 0.621 GB, free: 12.78 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-05/0.7597, allocations: 7.969 kB / 0.621 GB, free: 12.77 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01572/0.7754, allocations: 5.927 MB / 0.6268 GB, free: 6.785 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.161e-05/0.7755, allocations: 0 / 0.6268 GB, free: 6.785 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001279/0.7768, allocations: 223.6 kB / 0.627 GB, free: 6.566 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009844/0.7778, allocations: 260.5 kB / 0.6272 GB, free: 6.309 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002304/0.7781, allocations: 23.98 kB / 0.6272 GB, free: 6.285 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004216/0.7823, allocations: 3.163 MB / 0.6303 GB, free: 2.988 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/0.7823, allocations: 0 / 0.6303 GB, free: 2.988 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008373/0.7907, allocations: 3.943 MB / 0.6342 GB, free: 15.02 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00138/0.7921, allocations: 357 kB / 0.6345 GB, free: 14.65 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00102/0.7932, allocations: 28.05 kB / 0.6346 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001848/0.7951, allocations: 72.02 kB / 0.6346 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004034/0.7955, allocations: 108.6 kB / 0.6347 GB, free: 14.45 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.7956, allocations: 39.98 kB / 0.6348 GB, free: 14.41 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005231/0.8009, allocations: 2.27 MB / 0.637 GB, free: 12.15 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8009, allocations: 0 / 0.637 GB, free: 12.15 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005908/0.8068, allocations: 0.8568 MB / 0.6378 GB, free: 11.3 MB / 478.1 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 (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.0072/0.814, allocations: 4.574 MB / 0.6423 GB, free: 6.68 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008088/0.8222, allocations: 4.624 MB / 0.6468 GB, free: 2.082 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.8222, allocations: 0 / 0.6468 GB, free: 2.082 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001865/0.8241, allocations: 1.166 MB / 0.6479 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003035/0.8271, allocations: 443.7 kB / 0.6484 GB, free: 496 kB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06844/0.8956, allocations: 42.79 MB / 0.6901 GB, free: 14.97 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004822/0.9005, allocations: 3.156 MB / 0.6932 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004471/0.9049, allocations: 1.725 MB / 0.6949 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002844/0.9078, allocations: 1.764 MB / 0.6966 GB, free: 8.285 MB / 0.5294 GB Notification: Performance of SimCode: time 9.61e-07/0.9078, allocations: 0 / 0.6966 GB, free: 8.285 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.328/1.236, allocations: 60.83 MB / 0.756 GB, free: 155 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.95, allocations: 5.906 kB / 0.756 GB, free: 155 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.csv","/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_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches