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.001752/0.001752, allocations: 118.4 kB / 17.78 MB, free: 5.258 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.001865/0.001865, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.339/1.339, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2106/0.2106, allocations: 44.18 MB / 336.7 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 63.91 kB / 470.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.3489, allocations: 60.82 MB / 0.5184 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01052/0.3595, allocations: 9.788 MB / 0.528 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008691/0.3682, allocations: 3.84 MB / 0.5317 GB, free: 9.703 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002215/0.3705, allocations: 54.69 kB / 0.5318 GB, free: 9.695 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005366/0.3759, allocations: 2.786 MB / 0.5345 GB, free: 7.836 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004657/0.3806, allocations: 1.75 MB / 0.5362 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001776/0.3824, allocations: 0.6999 MB / 0.5369 GB, free: 6.145 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005558/0.388, allocations: 3.976 MB / 0.5408 GB, free: 3.965 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004839/0.3928, allocations: 3.739 MB / 0.5444 GB, free: 1.406 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002576/0.3954, allocations: 1.449 MB / 0.5459 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002991/0.3984, allocations: 1.966 MB / 0.5478 GB, free: 13.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001031/0.3995, allocations: 328 kB / 0.5481 GB, free: 13.66 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002704/0.4022, allocations: 1.217 MB / 0.5493 GB, free: 12.44 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002176/0.4044, allocations: 1.843 MB / 0.5511 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004553/0.409, allocations: 2.183 MB / 0.5532 GB, free: 8.398 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009766/0.4187, allocations: 7.222 MB / 0.5603 GB, free: 1.148 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.4188, allocations: 0 / 0.5603 GB, free: 1.148 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4188, allocations: 0 / 0.5603 GB, free: 1.148 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002385/0.419, allocations: 0 / 0.5603 GB, free: 1.148 MB / 414.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.01215/0.4312, allocations: 4.771 MB / 0.5649 GB, free: 12.3 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.099e-05/0.4313, allocations: 8.031 kB / 0.5649 GB, free: 12.29 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001783/0.4331, allocations: 0.6909 MB / 0.5656 GB, free: 11.59 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08661/0.5197, allocations: 7.094 MB / 0.5725 GB, free: 4.488 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006982/0.5267, allocations: 2.832 MB / 0.5753 GB, free: 1.594 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000205/0.5269, allocations: 222.2 kB / 0.5755 GB, free: 1.375 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001199/0.5282, allocations: 307.8 kB / 0.5758 GB, free: 1.074 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01658/0.5447, allocations: 9.227 MB / 0.5848 GB, free: 7.219 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001189/0.5449, allocations: 47.69 kB / 0.5849 GB, free: 7.172 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003766/0.5453, allocations: 139.9 kB / 0.585 GB, free: 7.035 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00294/0.5483, allocations: 1.841 MB / 0.5868 GB, free: 5.188 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01379/0.5621, allocations: 7.557 MB / 0.5942 GB, free: 13.61 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04283/0.6049, allocations: 34.55 MB / 0.6279 GB, free: 9.984 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004565/0.6095, allocations: 2.366 MB / 0.6302 GB, free: 7.473 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001538/0.6111, allocations: 1.227 MB / 0.6314 GB, free: 6.23 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003395/0.6115, allocations: 331.6 kB / 0.6317 GB, free: 5.852 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.6115, allocations: 47.06 kB / 0.6318 GB, free: 5.797 MB / 494.1 MB Notification: Performance of pre-optimization done (n=122): time 3.377e-06/0.6115, allocations: 0 / 0.6318 GB, free: 5.797 MB / 494.1 MB Notification: Performance of matching and sorting (n=140): time 0.02505/0.6366, allocations: 10.9 MB / 0.6424 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.6367, allocations: 200.6 kB / 0.6426 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004924/0.6416, allocations: 3.641 MB / 0.6462 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002738/0.6419, allocations: 45.7 kB / 0.6462 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002163/0.6441, allocations: 3.084 MB / 0.6492 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008182/0.6449, allocations: 0.5738 MB / 0.6498 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001393/0.6463, allocations: 1.091 MB / 0.6508 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.6465, allocations: 309.1 kB / 0.6511 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002491/0.649, allocations: 1.72 MB / 0.6528 GB, free: 40 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004569/0.6535, allocations: 5.127 MB / 0.6578 GB, free: 9.184 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008255/0.6618, allocations: 7.422 MB / 0.6651 GB, free: 60 kB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.532e-05/0.6619, allocations: 39.94 kB / 0.6651 GB, free: 20 kB / 0.5137 GB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01198/0.6739, allocations: 6.827 MB / 0.6718 GB, free: 9.188 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001155/0.674, allocations: 59.94 kB / 0.6718 GB, free: 9.129 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001951/0.6743, allocations: 120 kB / 0.672 GB, free: 9.012 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001089/0.6754, allocations: 432.6 kB / 0.6724 GB, free: 8.59 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003847/0.6792, allocations: 1.224 MB / 0.6736 GB, free: 7.363 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004043/0.6833, allocations: 3.586 MB / 0.6771 GB, free: 3.637 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003755/0.687, allocations: 303.8 kB / 0.6774 GB, free: 3.34 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006778/0.6877, allocations: 336 kB / 0.6777 GB, free: 3.012 MB / 0.5294 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 (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.003545/0.6913, allocations: 2.033 MB / 0.6797 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000832/0.6921, allocations: 333.7 kB / 0.68 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003879/0.696, allocations: 1.879 MB / 0.6818 GB, free: 14.74 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.012e-05/0.6961, allocations: 20 kB / 0.6818 GB, free: 14.72 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.6961, allocations: 0 / 0.6818 GB, free: 14.72 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.695e-05/0.6961, allocations: 15.91 kB / 0.6818 GB, free: 14.71 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01264/0.7088, allocations: 5.918 MB / 0.6876 GB, free: 8.727 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/0.7088, allocations: 0 / 0.6876 GB, free: 8.727 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/0.7099, allocations: 215.7 kB / 0.6878 GB, free: 8.516 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007981/0.7107, allocations: 260.5 kB / 0.6881 GB, free: 8.258 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001441/0.7109, allocations: 23.98 kB / 0.6881 GB, free: 8.234 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003567/0.7145, allocations: 3.173 MB / 0.6912 GB, free: 4.922 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.7145, allocations: 0 / 0.6912 GB, free: 4.922 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005814/0.7203, allocations: 3.967 MB / 0.6951 GB, free: 0.9258 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009279/0.7213, allocations: 366.8 kB / 0.6954 GB, free: 0.5469 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006463/0.7219, allocations: 24 kB / 0.6954 GB, free: 0.5234 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001407/0.7234, allocations: 79.91 kB / 0.6955 GB, free: 456 kB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002451/0.7236, allocations: 100.6 kB / 0.6956 GB, free: 356 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.922e-05/0.7237, allocations: 47.91 kB / 0.6957 GB, free: 308 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003772/0.7275, allocations: 2.263 MB / 0.6979 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7275, allocations: 0 / 0.6979 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004257/0.7318, allocations: 0.8515 MB / 0.6987 GB, free: 13.19 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.006472/0.7383, allocations: 4.599 MB / 0.7032 GB, free: 8.566 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007088/0.7454, allocations: 4.126 MB / 0.7072 GB, free: 4.453 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/0.7454, allocations: 4.109 kB / 0.7072 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001822/0.7473, allocations: 1.166 MB / 0.7084 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002799/0.7501, allocations: 426.8 kB / 0.7088 GB, free: 2.855 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3308/1.081, allocations: 38.65 MB / 0.7465 GB, free: 172.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002501/1.083, allocations: 3.155 MB / 0.7496 GB, free: 171 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003022/1.086, allocations: 1.726 MB / 0.7513 GB, free: 170.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001524/1.088, allocations: 1.765 MB / 0.753 GB, free: 168.9 MB / 0.5762 GB Notification: Performance of SimCode: time 1.393e-06/1.088, allocations: 0 / 0.753 GB, free: 168.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08157/1.17, allocations: 57.59 MB / 0.8093 GB, free: 114.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.15/23.32, allocations: 6.875 kB / 0.8093 GB, free: 114.5 MB / 0.5762 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