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.001539/0.001539, allocations: 112.8 kB / 17.78 MB, free: 5.277 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.001763/0.001763, allocations: 180.9 kB / 18.71 MB, free: 4.363 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.393/1.393, allocations: 222.9 MB / 242.4 MB, free: 15.16 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.2115/0.2115, allocations: 44.18 MB / 336.7 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 63.89 kB / 470.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3288, allocations: 60.82 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01125/0.3401, allocations: 9.789 MB / 0.528 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008808/0.349, allocations: 3.831 MB / 0.5317 GB, free: 9.707 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002133/0.3512, allocations: 58.94 kB / 0.5318 GB, free: 9.695 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005621/0.3568, allocations: 2.786 MB / 0.5345 GB, free: 7.836 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006287/0.3632, allocations: 1.709 MB / 0.5362 GB, free: 6.637 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002053/0.3652, allocations: 0.699 MB / 0.5369 GB, free: 6.172 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007143/0.3724, allocations: 3.979 MB / 0.5407 GB, free: 3.988 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004807/0.3772, allocations: 3.728 MB / 0.5444 GB, free: 1.461 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002634/0.3799, allocations: 1.449 MB / 0.5458 GB, free: 8 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002855/0.3828, allocations: 1.962 MB / 0.5477 GB, free: 14.04 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007541/0.3836, allocations: 324 kB / 0.548 GB, free: 13.72 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00241/0.386, allocations: 1.209 MB / 0.5492 GB, free: 12.51 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001839/0.3878, allocations: 1.839 MB / 0.551 GB, free: 10.67 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002668/0.3905, allocations: 2.183 MB / 0.5531 GB, free: 8.473 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01024/0.4008, allocations: 7.21 MB / 0.5602 GB, free: 1.234 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.345e-06/0.4008, allocations: 0 / 0.5602 GB, free: 1.234 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4008, allocations: 3.938 kB / 0.5602 GB, free: 1.23 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001987/0.401, allocations: 0 / 0.5602 GB, free: 1.23 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.01142/0.4125, allocations: 4.763 MB / 0.5648 GB, free: 12.39 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.4125, allocations: 8.031 kB / 0.5648 GB, free: 12.38 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001201/0.4137, allocations: 0.7025 MB / 0.5655 GB, free: 11.67 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09108/0.5048, allocations: 7.083 MB / 0.5724 GB, free: 4.578 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006715/0.5116, allocations: 2.836 MB / 0.5752 GB, free: 1.68 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001807/0.5118, allocations: 226.2 kB / 0.5754 GB, free: 1.457 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007721/0.5126, allocations: 307.8 kB / 0.5757 GB, free: 1.156 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01434/0.5269, allocations: 9.231 MB / 0.5847 GB, free: 7.297 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001122/0.5271, allocations: 51.62 kB / 0.5848 GB, free: 7.246 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003775/0.5275, allocations: 139.9 kB / 0.5849 GB, free: 7.109 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003059/0.5305, allocations: 1.837 MB / 0.5867 GB, free: 5.266 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01401/0.5446, allocations: 7.553 MB / 0.5941 GB, free: 13.69 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04232/0.5869, allocations: 34.54 MB / 0.6278 GB, free: 10.07 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004791/0.5918, allocations: 2.378 MB / 0.6301 GB, free: 7.547 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001702/0.5935, allocations: 1.227 MB / 0.6313 GB, free: 6.305 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003909/0.5939, allocations: 327.7 kB / 0.6317 GB, free: 5.93 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.076e-05/0.5939, allocations: 47.12 kB / 0.6317 GB, free: 5.875 MB / 494.1 MB Notification: Performance of pre-optimization done (n=122): time 3.657e-06/0.5939, allocations: 0 / 0.6317 GB, free: 5.875 MB / 494.1 MB Notification: Performance of matching and sorting (n=140): time 0.02603/0.62, allocations: 10.91 MB / 0.6424 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001336/0.6202, allocations: 196.6 kB / 0.6425 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005129/0.6253, allocations: 3.645 MB / 0.6461 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001791/0.6255, allocations: 49.69 kB / 0.6461 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002306/0.6278, allocations: 3.084 MB / 0.6492 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006411/0.6285, allocations: 0.57 MB / 0.6497 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001431/0.6299, allocations: 1.099 MB / 0.6508 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001214/0.63, allocations: 305.1 kB / 0.6511 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002673/0.6327, allocations: 1.712 MB / 0.6527 GB, free: 120 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005382/0.6381, allocations: 5.131 MB / 0.6578 GB, free: 9.254 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009473/0.6476, allocations: 7.425 MB / 0.665 GB, free: 132 kB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.139e-05/0.6477, allocations: 36 kB / 0.665 GB, free: 96 kB / 0.5137 GB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01367/0.6614, allocations: 6.83 MB / 0.6717 GB, free: 9.258 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001126/0.6616, allocations: 59.94 kB / 0.6718 GB, free: 9.199 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001879/0.6618, allocations: 120 kB / 0.6719 GB, free: 9.082 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/0.6629, allocations: 435.6 kB / 0.6723 GB, free: 8.656 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004093/0.667, allocations: 1.224 MB / 0.6735 GB, free: 7.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004541/0.6716, allocations: 3.59 MB / 0.677 GB, free: 3.703 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00355/0.6752, allocations: 291.8 kB / 0.6773 GB, free: 3.418 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005697/0.6757, allocations: 340 kB / 0.6776 GB, free: 3.086 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.003045/0.6788, allocations: 2.037 MB / 0.6796 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005322/0.6793, allocations: 329.7 kB / 0.6799 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00359/0.6829, allocations: 1.883 MB / 0.6817 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.62e-05/0.683, allocations: 16 kB / 0.6818 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.683, allocations: 0 / 0.6818 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.683, allocations: 11.92 kB / 0.6818 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01015/0.6932, allocations: 5.918 MB / 0.6876 GB, free: 8.805 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.6932, allocations: 7.922 kB / 0.6876 GB, free: 8.797 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/0.6943, allocations: 219.7 kB / 0.6878 GB, free: 8.582 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007298/0.695, allocations: 256.6 kB / 0.688 GB, free: 8.328 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.365e-05/0.6951, allocations: 27.97 kB / 0.688 GB, free: 8.301 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003755/0.6989, allocations: 3.158 MB / 0.6911 GB, free: 5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.6989, allocations: 4.062 kB / 0.6911 GB, free: 4.996 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006189/0.7051, allocations: 3.962 MB / 0.695 GB, free: 1.008 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009464/0.7061, allocations: 370.8 kB / 0.6954 GB, free: 0.625 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000342/0.7064, allocations: 27.98 kB / 0.6954 GB, free: 0.5977 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.7075, allocations: 75.91 kB / 0.6955 GB, free: 0.5234 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002826/0.7078, allocations: 100.4 kB / 0.6955 GB, free: 436 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.7079, allocations: 43.92 kB / 0.6956 GB, free: 392 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00359/0.7115, allocations: 2.266 MB / 0.6978 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7115, allocations: 4.062 kB / 0.6978 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004019/0.7156, allocations: 0.8515 MB / 0.6986 GB, free: 13.27 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.006649/0.7222, allocations: 4.596 MB / 0.7031 GB, free: 8.641 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007582/0.7298, allocations: 4.13 MB / 0.7072 GB, free: 4.523 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.7299, allocations: 0 / 0.7072 GB, free: 4.523 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001873/0.7317, allocations: 1.162 MB / 0.7083 GB, free: 3.352 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002423/0.7342, allocations: 436.7 kB / 0.7087 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2924/1.027, allocations: 38.65 MB / 0.7465 GB, free: 174.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002568/1.029, allocations: 3.161 MB / 0.7495 GB, free: 173.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003036/1.032, allocations: 1.725 MB / 0.7512 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001656/1.034, allocations: 1.757 MB / 0.7529 GB, free: 171.7 MB / 0.5762 GB Notification: Performance of SimCode: time 5.61e-07/1.034, allocations: 0 / 0.7529 GB, free: 171.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08396/1.118, allocations: 57.6 MB / 0.8092 GB, free: 117.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.1/23.21, allocations: 11.97 kB / 0.8092 GB, free: 117.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