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.001836/0.001836, allocations: 109.7 kB / 17.06 MB, free: 5.812 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.001645/0.001645, allocations: 200 kB / 18.01 MB, free: 4.941 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.477/1.477, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00165/0.001651, allocations: 51.91 kB / 350.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2777, allocations: 49.43 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01476/0.2925, allocations: 11.42 MB / 411.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009032/0.3016, allocations: 4.057 MB / 415.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002134/0.3038, allocations: 71.81 kB / 415.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006728/0.3106, allocations: 3.193 MB / 419 MB, free: 5.988 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005944/0.3166, allocations: 1.961 MB / 420.9 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002465/0.3191, allocations: 0.8266 MB / 421.8 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007691/0.3268, allocations: 4.454 MB / 426.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005886/0.3327, allocations: 4.063 MB / 430.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003357/0.3361, allocations: 1.643 MB / 431.9 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004003/0.3402, allocations: 2.157 MB / 434.1 MB, free: 6.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001129/0.3413, allocations: 356 kB / 434.4 MB, free: 6.441 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002726/0.3441, allocations: 1.252 MB / 435.7 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002525/0.3466, allocations: 2.061 MB / 437.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00336/0.35, allocations: 2.392 MB / 440.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009948/0.3599, allocations: 7.731 MB / 447.9 MB, free: 8.953 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.36, allocations: 0 / 447.9 MB, free: 8.953 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.429e-06/0.36, allocations: 0 / 447.9 MB, free: 8.953 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002574/0.3603, allocations: 3.938 kB / 447.9 MB, free: 8.949 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.01322/0.3735, allocations: 5.412 MB / 453.3 MB, free: 3.457 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.3735, allocations: 12.03 kB / 453.3 MB, free: 3.445 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001594/0.3751, allocations: 0.757 MB / 454.1 MB, free: 2.676 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02373/0.3989, allocations: 3.949 MB / 458 MB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007334/0.4063, allocations: 3.136 MB / 461.1 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002714/0.4066, allocations: 246.3 kB / 461.4 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001254/0.4078, allocations: 331.8 kB / 461.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02218/0.43, allocations: 10.75 MB / 472.5 MB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001888/0.4303, allocations: 47.64 kB / 472.5 MB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009866/0.4313, allocations: 155.8 kB / 472.7 MB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004163/0.4354, allocations: 2.154 MB / 474.8 MB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02003/0.4555, allocations: 9.094 MB / 483.9 MB, free: 4.043 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05886/0.5144, allocations: 41.57 MB / 0.5132 GB, free: 9.355 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01222/0.5267, allocations: 4.433 MB / 0.5175 GB, free: 4.777 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003609/0.5303, allocations: 2.434 MB / 0.5199 GB, free: 2.336 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01309/0.5435, allocations: 7.261 MB / 0.527 GB, free: 10.87 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.779e-05/0.5436, allocations: 51.5 kB / 0.527 GB, free: 10.81 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.819e-06/0.5436, allocations: 0 / 0.527 GB, free: 10.81 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.2636/0.8072, allocations: 18.14 MB / 0.5447 GB, free: 128.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.658e-05/0.8073, allocations: 180.9 kB / 0.5449 GB, free: 127.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006502/0.8138, allocations: 4.64 MB / 0.5494 GB, free: 126.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004395/0.8143, allocations: 57.3 kB / 0.5495 GB, free: 126.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001733/0.816, allocations: 3.363 MB / 0.5528 GB, free: 124 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007706/0.8168, allocations: 0.7905 MB / 0.5535 GB, free: 123.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001431/0.8182, allocations: 1.27 MB / 0.5548 GB, free: 122.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.555e-05/0.8183, allocations: 301.1 kB / 0.5551 GB, free: 122.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002762/0.8211, allocations: 2.283 MB / 0.5573 GB, free: 121.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004438/0.8255, allocations: 6.032 MB / 0.5632 GB, free: 115.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008064/0.8336, allocations: 9.046 MB / 0.572 GB, free: 105.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001158/0.8338, allocations: 40 kB / 0.572 GB, free: 105.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.01518/0.849, allocations: 8.885 MB / 0.5807 GB, free: 96.61 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002131/0.8492, allocations: 60.22 kB / 0.5808 GB, free: 96.55 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002643/0.8495, allocations: 136 kB / 0.5809 GB, free: 96.42 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002379/0.8519, allocations: 0.9451 MB / 0.5818 GB, free: 95.47 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004538/0.8565, allocations: 1.419 MB / 0.5832 GB, free: 94.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007443/0.864, allocations: 6.526 MB / 0.5896 GB, free: 87.39 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00573/0.8697, allocations: 343.6 kB / 0.5899 GB, free: 87.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001284/0.8711, allocations: 383.9 kB / 0.5903 GB, free: 86.68 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.005285/0.8764, allocations: 2.234 MB / 0.5925 GB, free: 84.44 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001298/0.8777, allocations: 417.2 kB / 0.5929 GB, free: 84.03 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006953/0.8846, allocations: 3.684 MB / 0.5965 GB, free: 80.33 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.816e-05/0.8847, allocations: 23.98 kB / 0.5965 GB, free: 80.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.206e-05/0.8848, allocations: 11.94 kB / 0.5965 GB, free: 80.29 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.129e-05/0.8848, allocations: 8.469 kB / 0.5965 GB, free: 80.29 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01634/0.9011, allocations: 9.162 MB / 0.6055 GB, free: 71.03 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-05/0.9012, allocations: 8 kB / 0.6055 GB, free: 71.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001415/0.9026, allocations: 318.6 kB / 0.6058 GB, free: 70.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00177/0.9044, allocations: 0.772 MB / 0.6065 GB, free: 69.94 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000198/0.9046, allocations: 36 kB / 0.6066 GB, free: 69.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009183/0.9138, allocations: 6.113 MB / 0.6125 GB, free: 63.66 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.797e-06/0.9139, allocations: 7.938 kB / 0.6125 GB, free: 63.66 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01246/0.9263, allocations: 6.617 MB / 0.619 GB, free: 56.95 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001382/0.9278, allocations: 494.1 kB / 0.6195 GB, free: 56.45 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007425/0.9285, allocations: 36 kB / 0.6195 GB, free: 56.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00246/0.931, allocations: 115.8 kB / 0.6196 GB, free: 56.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004699/0.9315, allocations: 129.2 kB / 0.6197 GB, free: 56.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002034/0.9317, allocations: 60 kB / 0.6198 GB, free: 56.12 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005705/0.9374, allocations: 2.965 MB / 0.6227 GB, free: 53.15 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.9374, allocations: 0 / 0.6227 GB, free: 53.15 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007757/0.9452, allocations: 1.058 MB / 0.6237 GB, free: 52.1 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.01296/0.9582, allocations: 7.281 MB / 0.6308 GB, free: 44.71 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01101/0.9693, allocations: 5.575 MB / 0.6363 GB, free: 39.16 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-05/0.9693, allocations: 4.312 kB / 0.6363 GB, free: 39.15 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004374/0.9737, allocations: 1.973 MB / 0.6382 GB, free: 37.16 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004828/0.9786, allocations: 0.5184 MB / 0.6387 GB, free: 36.66 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07593/1.055, allocations: 50.81 MB / 0.6883 GB, free: 11.86 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006191/1.061, allocations: 3.447 MB / 0.6917 GB, free: 8.383 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005898/1.067, allocations: 2.049 MB / 0.6937 GB, free: 6.328 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004068/1.071, allocations: 2.061 MB / 0.6957 GB, free: 4.266 MB / 494.1 MB Notification: Performance of SimCode: time 1.322e-06/1.071, allocations: 0 / 0.6957 GB, free: 4.266 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.363/1.434, allocations: 77.39 MB / 0.7713 GB, free: 149.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.61/27.04, allocations: 6.438 kB / 0.7713 GB, free: 149.6 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