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.001367/0.001367, allocations: 117.2 kB / 17.78 MB, free: 5.254 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.001233/0.001233, allocations: 181 kB / 18.71 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.395/1.395, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2155/0.2155, allocations: 44.18 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 63.91 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.3375, allocations: 60.82 MB / 0.5184 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01054/0.3481, allocations: 9.822 MB / 0.528 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008734/0.3568, allocations: 3.839 MB / 0.5318 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001624/0.3584, allocations: 54.66 kB / 0.5318 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005862/0.3643, allocations: 2.815 MB / 0.5346 GB, free: 8.004 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006035/0.3703, allocations: 1.75 MB / 0.5363 GB, free: 6.777 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002102/0.3724, allocations: 0.6991 MB / 0.537 GB, free: 6.312 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006585/0.379, allocations: 3.983 MB / 0.5409 GB, free: 4.125 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004227/0.3833, allocations: 3.108 MB / 0.5439 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00264/0.3859, allocations: 1.448 MB / 0.5453 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003045/0.3889, allocations: 1.974 MB / 0.5472 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008166/0.3898, allocations: 324 kB / 0.5475 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002586/0.3923, allocations: 1.209 MB / 0.5487 GB, free: 13.11 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002179/0.3945, allocations: 1.885 MB / 0.5506 GB, free: 11.22 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002781/0.3973, allocations: 2.191 MB / 0.5527 GB, free: 9.02 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00983/0.4071, allocations: 7.218 MB / 0.5598 GB, free: 1.773 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.4071, allocations: 4 kB / 0.5598 GB, free: 1.77 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4071, allocations: 0 / 0.5598 GB, free: 1.77 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002439/0.4074, allocations: 0 / 0.5598 GB, free: 1.77 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.01235/0.4197, allocations: 4.769 MB / 0.5644 GB, free: 12.93 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.4198, allocations: 12.03 kB / 0.5644 GB, free: 12.92 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001295/0.4211, allocations: 0.6908 MB / 0.5651 GB, free: 12.22 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08688/0.508, allocations: 7.094 MB / 0.572 GB, free: 5.113 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007028/0.515, allocations: 2.821 MB / 0.5748 GB, free: 2.23 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/0.5152, allocations: 230.9 kB / 0.575 GB, free: 2.004 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008402/0.516, allocations: 307.8 kB / 0.5753 GB, free: 1.703 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0157/0.5317, allocations: 9.238 MB / 0.5843 GB, free: 7.832 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001234/0.5318, allocations: 39.64 kB / 0.5844 GB, free: 7.793 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004101/0.5322, allocations: 143.9 kB / 0.5845 GB, free: 7.652 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003121/0.5354, allocations: 1.837 MB / 0.5863 GB, free: 5.809 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0141/0.5495, allocations: 7.549 MB / 0.5937 GB, free: 14.24 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04299/0.5925, allocations: 34.55 MB / 0.6274 GB, free: 10.61 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004797/0.5973, allocations: 2.287 MB / 0.6296 GB, free: 8.18 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001668/0.5989, allocations: 1.125 MB / 0.6307 GB, free: 7.039 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003788/0.5993, allocations: 327.7 kB / 0.631 GB, free: 6.664 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.155e-05/0.5993, allocations: 47.06 kB / 0.6311 GB, free: 6.609 MB / 494.1 MB Notification: Performance of pre-optimization done (n=122): time 3.396e-06/0.5993, allocations: 0 / 0.6311 GB, free: 6.609 MB / 494.1 MB Notification: Performance of matching and sorting (n=140): time 0.02657/0.6259, allocations: 10.9 MB / 0.6417 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.626, allocations: 196.5 kB / 0.6419 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00539/0.6314, allocations: 3.645 MB / 0.6455 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002559/0.6317, allocations: 45.7 kB / 0.6455 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002745/0.6344, allocations: 3.08 MB / 0.6485 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009259/0.6354, allocations: 0.5739 MB / 0.6491 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001671/0.637, allocations: 1.095 MB / 0.6502 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.6372, allocations: 301.1 kB / 0.6505 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002732/0.6399, allocations: 1.716 MB / 0.6521 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005699/0.6456, allocations: 5.139 MB / 0.6571 GB, free: 9.992 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009899/0.6555, allocations: 7.408 MB / 0.6644 GB, free: 0.8828 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001113/0.6556, allocations: 40 kB / 0.6644 GB, free: 0.8438 MB / 0.5137 GB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01304/0.6686, allocations: 6.831 MB / 0.6711 GB, free: 10 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.893e-05/0.6687, allocations: 63.98 kB / 0.6712 GB, free: 9.941 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001327/0.6689, allocations: 120 kB / 0.6713 GB, free: 9.824 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009854/0.6699, allocations: 432.2 kB / 0.6717 GB, free: 9.402 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003778/0.6736, allocations: 1.228 MB / 0.6729 GB, free: 8.172 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004568/0.6782, allocations: 3.586 MB / 0.6764 GB, free: 4.445 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004187/0.6824, allocations: 295.7 kB / 0.6767 GB, free: 4.156 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00072/0.6831, allocations: 340 kB / 0.677 GB, free: 3.824 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.004298/0.6874, allocations: 2.037 MB / 0.679 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007581/0.6882, allocations: 317.8 kB / 0.6793 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00379/0.692, allocations: 1.879 MB / 0.6811 GB, free: 15.57 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-05/0.692, allocations: 16 kB / 0.6811 GB, free: 15.55 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.692, allocations: 8 kB / 0.6811 GB, free: 15.54 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.423e-05/0.692, allocations: 3.984 kB / 0.6811 GB, free: 15.54 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01133/0.7033, allocations: 5.926 MB / 0.6869 GB, free: 9.555 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.7033, allocations: 0 / 0.6869 GB, free: 9.555 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.7044, allocations: 219.6 kB / 0.6871 GB, free: 9.34 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007553/0.7052, allocations: 256.6 kB / 0.6874 GB, free: 9.086 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.662e-05/0.7053, allocations: 27.98 kB / 0.6874 GB, free: 9.059 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003797/0.7091, allocations: 3.165 MB / 0.6905 GB, free: 5.75 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.7091, allocations: 0 / 0.6905 GB, free: 5.75 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006289/0.7154, allocations: 3.96 MB / 0.6944 GB, free: 1.762 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/0.7164, allocations: 378.7 kB / 0.6947 GB, free: 1.371 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003648/0.7168, allocations: 24 kB / 0.6948 GB, free: 1.348 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001163/0.7179, allocations: 71.91 kB / 0.6948 GB, free: 1.277 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002989/0.7182, allocations: 96.58 kB / 0.6949 GB, free: 1.184 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/0.7183, allocations: 43.97 kB / 0.695 GB, free: 1.141 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00379/0.7221, allocations: 2.266 MB / 0.6972 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.7221, allocations: 0 / 0.6972 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004918/0.727, allocations: 0.8554 MB / 0.698 GB, free: 14.03 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.006907/0.7339, allocations: 4.596 MB / 0.7025 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007369/0.7413, allocations: 3.985 MB / 0.7064 GB, free: 5.426 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.7413, allocations: 448 / 0.7064 GB, free: 5.426 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001897/0.7432, allocations: 1.104 MB / 0.7075 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002387/0.7456, allocations: 430 kB / 0.7079 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3006/1.046, allocations: 38.65 MB / 0.7456 GB, free: 173.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002531/1.049, allocations: 3.157 MB / 0.7487 GB, free: 172.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003132/1.052, allocations: 1.725 MB / 0.7504 GB, free: 172.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001629/1.054, allocations: 1.761 MB / 0.7521 GB, free: 170.6 MB / 0.5762 GB Notification: Performance of SimCode: time 1.152e-06/1.054, allocations: 0 / 0.7521 GB, free: 170.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08982/1.143, allocations: 57.77 MB / 0.8085 GB, free: 115.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.68/22.82, allocations: 9.719 kB / 0.8085 GB, free: 115.8 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