Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",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.001708/0.001708, allocations: 108.9 kB / 17.06 MB, free: 5.969 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.001832/0.001832, allocations: 200 kB / 18.01 MB, free: 5.051 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.322/1.322, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 43.94 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2795, allocations: 49.44 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01226/0.2918, allocations: 11.4 MB / 411.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008557/0.3004, allocations: 4.065 MB / 415.7 MB, free: 9.277 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001903/0.3024, allocations: 71.81 kB / 415.8 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005636/0.3081, allocations: 3.197 MB / 419 MB, free: 6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00521/0.3133, allocations: 2.012 MB / 421 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002104/0.3154, allocations: 0.8188 MB / 421.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006756/0.3222, allocations: 4.461 MB / 426.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005683/0.3279, allocations: 4.055 MB / 430.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003511/0.3315, allocations: 1.659 MB / 432 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003556/0.335, allocations: 2.161 MB / 434.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001446/0.3365, allocations: 352 kB / 434.5 MB, free: 6.395 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003586/0.3401, allocations: 1.256 MB / 435.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003187/0.3433, allocations: 2.069 MB / 437.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004971/0.3483, allocations: 2.388 MB / 440.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01041/0.3588, allocations: 7.727 MB / 447.9 MB, free: 8.902 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.3588, allocations: 0 / 447.9 MB, free: 8.902 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3588, allocations: 3.938 kB / 447.9 MB, free: 8.898 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002819/0.3591, allocations: 4 kB / 447.9 MB, free: 8.895 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.01488/0.374, allocations: 5.412 MB / 453.4 MB, free: 3.402 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.3741, allocations: 19.88 kB / 453.4 MB, free: 3.383 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002238/0.3763, allocations: 0.7531 MB / 454.1 MB, free: 2.617 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02372/0.4, allocations: 3.945 MB / 458.1 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008218/0.4083, allocations: 3.14 MB / 461.2 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002475/0.4086, allocations: 246.3 kB / 461.5 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001369/0.41, allocations: 335.8 kB / 461.8 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02032/0.4303, allocations: 10.75 MB / 472.5 MB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001857/0.4306, allocations: 43.62 kB / 472.6 MB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001108/0.4317, allocations: 155.8 kB / 472.7 MB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003963/0.4357, allocations: 2.154 MB / 474.9 MB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01881/0.4545, allocations: 9.094 MB / 484 MB, free: 3.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05887/0.5134, allocations: 41.57 MB / 0.5132 GB, free: 9.293 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01196/0.5254, allocations: 4.433 MB / 0.5176 GB, free: 4.715 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003414/0.5289, allocations: 2.442 MB / 0.5199 GB, free: 2.266 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01447/0.5434, allocations: 7.249 MB / 0.527 GB, free: 10.81 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.832e-05/0.5435, allocations: 51.56 kB / 0.5271 GB, free: 10.75 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 9.728e-06/0.5435, allocations: 0 / 0.5271 GB, free: 10.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.266/0.8095, allocations: 18.14 MB / 0.5448 GB, free: 128 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.297e-05/0.8096, allocations: 175.2 kB / 0.545 GB, free: 127.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006782/0.8164, allocations: 4.638 MB / 0.5495 GB, free: 126.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005137/0.8169, allocations: 57.08 kB / 0.5495 GB, free: 126.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002322/0.8193, allocations: 3.362 MB / 0.5528 GB, free: 123.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00136/0.8206, allocations: 0.7919 MB / 0.5536 GB, free: 123.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002097/0.8227, allocations: 1.268 MB / 0.5548 GB, free: 122.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.552e-05/0.8228, allocations: 305.1 kB / 0.5551 GB, free: 122.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002986/0.8258, allocations: 2.283 MB / 0.5574 GB, free: 121.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005023/0.8309, allocations: 6.03 MB / 0.5632 GB, free: 115.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008407/0.8393, allocations: 9.048 MB / 0.5721 GB, free: 105.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001109/0.8395, allocations: 40 kB / 0.5721 GB, free: 105.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.01364/0.8531, allocations: 8.884 MB / 0.5808 GB, free: 96.52 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.269e-05/0.8533, allocations: 66.81 kB / 0.5809 GB, free: 96.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000134/0.8534, allocations: 132 kB / 0.581 GB, free: 96.33 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002015/0.8554, allocations: 0.9381 MB / 0.5819 GB, free: 95.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004257/0.8597, allocations: 1.423 MB / 0.5833 GB, free: 93.96 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00649/0.8662, allocations: 6.525 MB / 0.5897 GB, free: 87.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005186/0.8714, allocations: 335.6 kB / 0.59 GB, free: 86.97 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008127/0.8723, allocations: 380 kB / 0.5903 GB, free: 86.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (753): * Single equations (assignments): 747 * Array equations: 5 * 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 {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003407/0.8757, allocations: 2.245 MB / 0.5925 GB, free: 84.36 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007719/0.8764, allocations: 421.2 kB / 0.5929 GB, free: 83.94 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005304/0.8818, allocations: 3.68 MB / 0.5965 GB, free: 80.25 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.912e-05/0.8818, allocations: 20 kB / 0.5966 GB, free: 80.23 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/0.8818, allocations: 8 kB / 0.5966 GB, free: 80.22 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.016e-05/0.8819, allocations: 12.41 kB / 0.5966 GB, free: 80.21 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01595/0.8978, allocations: 9.161 MB / 0.6055 GB, free: 70.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.489e-05/0.8979, allocations: 11.98 kB / 0.6055 GB, free: 70.94 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001512/0.8994, allocations: 318 kB / 0.6058 GB, free: 70.63 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001871/0.9013, allocations: 0.7757 MB / 0.6066 GB, free: 69.85 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002956/0.9016, allocations: 39.98 kB / 0.6066 GB, free: 69.81 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006354/0.908, allocations: 6.11 MB / 0.6126 GB, free: 63.58 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.908, allocations: 8 kB / 0.6126 GB, free: 63.57 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008373/0.9164, allocations: 6.617 MB / 0.6191 GB, free: 56.87 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001652/0.9181, allocations: 486.2 kB / 0.6195 GB, free: 56.37 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005422/0.9187, allocations: 36 kB / 0.6196 GB, free: 56.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001542/0.9202, allocations: 115.8 kB / 0.6197 GB, free: 56.22 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003023/0.9205, allocations: 136.9 kB / 0.6198 GB, free: 56.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/0.9206, allocations: 56 kB / 0.6199 GB, free: 56.04 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00376/0.9244, allocations: 2.966 MB / 0.6228 GB, free: 53.07 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9244, allocations: 0 / 0.6228 GB, free: 53.07 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005361/0.9298, allocations: 1.062 MB / 0.6238 GB, free: 52.01 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (157): * Single equations (assignments): 153 * 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 {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007802/0.9376, allocations: 7.281 MB / 0.6309 GB, free: 44.62 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007482/0.9451, allocations: 5.568 MB / 0.6363 GB, free: 39.08 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.457e-06/0.9452, allocations: 0 / 0.6363 GB, free: 39.08 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002523/0.9477, allocations: 1.989 MB / 0.6383 GB, free: 37.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003218/0.9509, allocations: 0.5134 MB / 0.6388 GB, free: 36.57 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06696/1.018, allocations: 50.8 MB / 0.6884 GB, free: 11.78 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005727/1.024, allocations: 3.451 MB / 0.6918 GB, free: 8.297 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005171/1.029, allocations: 2.053 MB / 0.6938 GB, free: 6.238 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00338/1.032, allocations: 2.054 MB / 0.6958 GB, free: 4.184 MB / 494.1 MB Notification: Performance of SimCode: time 1.302e-06/1.032, allocations: 3.938 kB / 0.6958 GB, free: 4.18 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3425/1.375, allocations: 77.39 MB / 0.7714 GB, free: 149.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.25/28.62, allocations: 7.625 kB / 0.7714 GB, free: 149.5 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches