Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.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.FrameTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameTorques",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.001176/0.001176, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001188/0.001188, allocations: 179.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.305/1.305, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.1926/0.1926, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 63.89 kB / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3232, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques): time 0.01293/0.3362, allocations: 12.88 MB / 0.531 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009923/0.3462, allocations: 4.512 MB / 0.5354 GB, free: 6.684 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002949/0.3492, allocations: 87.94 kB / 0.5355 GB, free: 6.668 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007112/0.3563, allocations: 3.742 MB / 0.5392 GB, free: 4.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006649/0.363, allocations: 2.322 MB / 0.5414 GB, free: 2.5 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002471/0.3655, allocations: 0.9927 MB / 0.5424 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008656/0.3742, allocations: 6.048 MB / 0.5483 GB, free: 13.47 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006094/0.3803, allocations: 4.601 MB / 0.5528 GB, free: 8.797 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003822/0.3842, allocations: 1.99 MB / 0.5547 GB, free: 6.801 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003959/0.3882, allocations: 2.66 MB / 0.5573 GB, free: 4.133 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001441/0.3897, allocations: 416 kB / 0.5577 GB, free: 3.727 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003755/0.3934, allocations: 1.459 MB / 0.5592 GB, free: 2.266 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003274/0.3967, allocations: 2.517 MB / 0.5616 GB, free: 15.74 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005437/0.4022, allocations: 2.859 MB / 0.5644 GB, free: 12.87 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01221/0.4145, allocations: 9.062 MB / 0.5733 GB, free: 3.77 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.4145, allocations: 0 / 0.5733 GB, free: 3.77 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4146, allocations: 0 / 0.5733 GB, free: 3.77 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003811/0.4149, allocations: 0 / 0.5733 GB, free: 3.77 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1787 * Number of variables: 1787 Notification: Performance of Generate backend data structure: time 0.01614/0.4311, allocations: 6.484 MB / 0.5796 GB, free: 13.2 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.4312, allocations: 12.03 kB / 0.5796 GB, free: 13.19 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002087/0.4333, allocations: 0.8515 MB / 0.5804 GB, free: 12.33 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03837/0.4716, allocations: 6.109 MB / 0.5864 GB, free: 6.211 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009866/0.4815, allocations: 4.416 MB / 0.5907 GB, free: 1.742 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002488/0.4818, allocations: 295.3 kB / 0.591 GB, free: 1.453 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001379/0.4832, allocations: 379.8 kB / 0.5914 GB, free: 1.082 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02063/0.5039, allocations: 11.86 MB / 0.6029 GB, free: 4.371 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001682/0.5041, allocations: 59.52 kB / 0.603 GB, free: 4.312 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007107/0.5048, allocations: 183.8 kB / 0.6032 GB, free: 4.133 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003723/0.5085, allocations: 2.276 MB / 0.6054 GB, free: 1.855 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0176/0.5262, allocations: 9.677 MB / 0.6148 GB, free: 8.164 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05059/0.5768, allocations: 46.18 MB / 0.6599 GB, free: 8.68 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009811/0.5866, allocations: 3.8 MB / 0.6637 GB, free: 4.723 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002402/0.5891, allocations: 2.014 MB / 0.6656 GB, free: 2.691 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009457/0.5985, allocations: 5.678 MB / 0.6712 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.822e-05/0.5986, allocations: 60.05 kB / 0.6712 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=150): time 4.278e-06/0.5986, allocations: 0 / 0.6712 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of matching and sorting (n=162): time 0.03954/0.6382, allocations: 16.06 MB / 0.6869 GB, free: 12.61 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.71e-05/0.6383, allocations: 222.2 kB / 0.6871 GB, free: 12.35 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006966/0.6453, allocations: 5.705 MB / 0.6927 GB, free: 6.668 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0002618/0.6456, allocations: 53.69 kB / 0.6927 GB, free: 6.609 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002456/0.648, allocations: 3.994 MB / 0.6966 GB, free: 2.578 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007013/0.6488, allocations: 0.6827 MB / 0.6973 GB, free: 1.891 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001564/0.6503, allocations: 1.361 MB / 0.6986 GB, free: 0.5195 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.6505, allocations: 301.1 kB / 0.6989 GB, free: 228 kB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00288/0.6533, allocations: 2.082 MB / 0.701 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005517/0.6589, allocations: 6.362 MB / 0.7072 GB, free: 5.629 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01095/0.6698, allocations: 9.194 MB / 0.7162 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001697/0.6701, allocations: 44 kB / 0.7162 GB, free: 10.26 MB / 0.5762 GB Notification: Performance of matching and sorting (n=866) (initialization): time 0.01728/0.6873, allocations: 8.679 MB / 0.7247 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001929/0.6876, allocations: 72 kB / 0.7247 GB, free: 1.504 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00026/0.6879, allocations: 152 kB / 0.7249 GB, free: 1.355 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001984/0.6899, allocations: 0.7224 MB / 0.7256 GB, free: 0.6289 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2414/0.9313, allocations: 1.512 MB / 0.7271 GB, free: 177.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008544/0.9399, allocations: 6.969 MB / 0.7339 GB, free: 173.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005625/0.9455, allocations: 347.1 kB / 0.7342 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001276/0.9469, allocations: 417 kB / 0.7346 GB, free: 173.5 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 692 * Number of states: 0 () * Number of discrete variables: 49 (frameTorque2.arrow.arrowLine.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque1.arrow.arrowLine.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (804): * Single equations (assignments): 797 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005545/0.9524, allocations: 2.521 MB / 0.7371 GB, free: 172.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001285/0.9537, allocations: 492.2 kB / 0.7375 GB, free: 172.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004977/0.9587, allocations: 2.653 MB / 0.7401 GB, free: 171.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.5e-05/0.9588, allocations: 17.66 kB / 0.7401 GB, free: 171.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.163e-05/0.9588, allocations: 5.406 kB / 0.7401 GB, free: 171.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.616e-05/0.9588, allocations: 10.56 kB / 0.7402 GB, free: 171.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01635/0.9752, allocations: 7.571 MB / 0.7475 GB, free: 168.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.107e-05/0.9753, allocations: 4.75 kB / 0.7475 GB, free: 168.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/0.9765, allocations: 257.3 kB / 0.7478 GB, free: 168.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001337/0.9778, allocations: 0.4951 MB / 0.7483 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002138/0.9781, allocations: 35.61 kB / 0.7483 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005664/0.9837, allocations: 6.281 MB / 0.7544 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.86e-06/0.9838, allocations: 7.875 kB / 0.7545 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006391/0.9902, allocations: 4.975 MB / 0.7593 GB, free: 162.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001518/0.9917, allocations: 0.546 MB / 0.7598 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000954/0.9927, allocations: 34.36 kB / 0.7599 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00207/0.9948, allocations: 73.42 kB / 0.7599 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000372/0.9952, allocations: 104.2 kB / 0.76 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/0.9953, allocations: 43.81 kB / 0.7601 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.006195/1.002, allocations: 3.649 MB / 0.7637 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.11e-07/1.002, allocations: 0 / 0.7637 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006382/1.008, allocations: 1.123 MB / 0.7647 GB, free: 160.5 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (120): * Single equations (assignments): 115 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (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.006687/1.015, allocations: 5.621 MB / 0.7702 GB, free: 155 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0073/1.022, allocations: 5.187 MB / 0.7753 GB, free: 149.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/1.022, allocations: 0 / 0.7753 GB, free: 149.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001951/1.024, allocations: 1.49 MB / 0.7768 GB, free: 148.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005176/1.029, allocations: 0.6443 MB / 0.7774 GB, free: 147.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07305/1.102, allocations: 54.64 MB / 0.8307 GB, free: 86.47 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003527/1.106, allocations: 3.857 MB / 0.8345 GB, free: 82.59 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004053/1.11, allocations: 2.133 MB / 0.8366 GB, free: 80.45 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002654/1.113, allocations: 2.381 MB / 0.8389 GB, free: 78.07 MB / 0.5762 GB Notification: Performance of SimCode: time 1.142e-06/1.113, allocations: 7.938 kB / 0.8389 GB, free: 78.06 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1214/1.234, allocations: 85.11 MB / 0.922 GB, free: 9.453 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.89/32.12, allocations: 12.83 kB / 0.9221 GB, free: 9.441 MB / 0.5919 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques_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_FrameTorques.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameTorques/FrameTorques.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches