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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000761/0.000761, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007061/0.0007061, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8488/0.8488, allocations: 173.4 MB / 200.5 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.118e-05/1.26e-05, allocations: 5.516 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.007714/0.007727, allocations: 10.03 MB / 328.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005713/0.01344, allocations: 3.889 MB / 332.4 MB, free: 8.371 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009144/0.01435, allocations: 75.69 kB / 332.4 MB, free: 8.297 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003197/0.01755, allocations: 3.282 MB / 335.7 MB, free: 5.004 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00265/0.0202, allocations: 2.076 MB / 337.8 MB, free: 2.918 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00112/0.02132, allocations: 0.8926 MB / 338.7 MB, free: 2.023 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003478/0.0248, allocations: 4.813 MB / 343.5 MB, free: 13.2 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002171/0.02697, allocations: 3.344 MB / 346.9 MB, free: 9.785 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001897/0.02887, allocations: 2.502 MB / 349.4 MB, free: 7.277 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002016/0.03088, allocations: 2.268 MB / 351.6 MB, free: 5.004 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003235/0.03121, allocations: 360 kB / 352 MB, free: 4.652 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001358/0.03256, allocations: 1.209 MB / 353.2 MB, free: 3.441 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001143/0.03371, allocations: 2.213 MB / 355.4 MB, free: 1.223 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008998/0.03461, allocations: 1.386 MB / 356.8 MB, free: 15.83 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00516/0.03977, allocations: 7.764 MB / 364.5 MB, free: 8.043 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.03977, allocations: 0 / 364.5 MB, free: 8.043 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.03977, allocations: 0 / 364.5 MB, free: 8.043 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.887e-05/0.03982, allocations: 4 kB / 364.5 MB, free: 8.039 MB / 330.7 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.005763/0.04558, allocations: 5.356 MB / 369.9 MB, free: 2.625 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.04563, allocations: 12.92 kB / 369.9 MB, free: 2.613 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006291/0.04626, allocations: 0.757 MB / 370.7 MB, free: 1.844 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01136/0.05762, allocations: 4.171 MB / 374.8 MB, free: 13.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003346/0.06096, allocations: 2.795 MB / 377.6 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.06109, allocations: 250.2 kB / 377.9 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003599/0.06145, allocations: 323.8 kB / 378.2 MB, free: 10.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01045/0.0719, allocations: 10.8 MB / 389 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.581e-05/0.07196, allocations: 35.69 kB / 389 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002784/0.07224, allocations: 159.8 kB / 389.2 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002046/0.07429, allocations: 2.154 MB / 391.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01096/0.08525, allocations: 9.062 MB / 400.4 MB, free: 3.332 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03407/0.1193, allocations: 40.18 MB / 440.6 MB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00614/0.1255, allocations: 3.936 MB / 444.5 MB, free: 6.035 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001785/0.1272, allocations: 2.233 MB / 446.8 MB, free: 3.797 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1479/0.2751, allocations: 6.316 MB / 453.1 MB, free: 118 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.571e-05/0.2751, allocations: 53.38 kB / 453.1 MB, free: 118 MB / 410.7 MB Notification: Performance of pre-optimization done (n=177): time 4.959e-06/0.2751, allocations: 0 / 453.1 MB, free: 118 MB / 410.7 MB Notification: Performance of matching and sorting (n=198): time 0.02469/0.2998, allocations: 18.45 MB / 471.6 MB, free: 108.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.656e-05/0.2999, allocations: 175.5 kB / 471.7 MB, free: 108.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003586/0.3035, allocations: 5.034 MB / 476.8 MB, free: 103.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001364/0.3036, allocations: 49.7 kB / 476.8 MB, free: 103.2 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008822/0.3045, allocations: 3.338 MB / 480.2 MB, free: 100.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004679/0.305, allocations: 0.7806 MB / 480.9 MB, free: 99.35 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008701/0.3058, allocations: 1.25 MB / 482.2 MB, free: 98.09 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.737e-05/0.3059, allocations: 305.1 kB / 482.5 MB, free: 97.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001752/0.3076, allocations: 2.28 MB / 484.8 MB, free: 95.51 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002438/0.31, allocations: 6.04 MB / 490.8 MB, free: 87.61 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005348/0.3154, allocations: 9.035 MB / 499.8 MB, free: 76.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.416e-05/0.3154, allocations: 40 kB / 499.9 MB, free: 76.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.008228/0.3237, allocations: 8.856 MB / 0.4968 GB, free: 67.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.757e-05/0.3237, allocations: 60 kB / 0.4969 GB, free: 67.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.277e-05/0.3238, allocations: 132 kB / 0.497 GB, free: 67.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0012/0.325, allocations: 0.9466 MB / 0.4979 GB, free: 66.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002079/0.3271, allocations: 1.423 MB / 0.4993 GB, free: 65.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004359/0.3314, allocations: 6.409 MB / 0.5056 GB, free: 58.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002899/0.3343, allocations: 375.5 kB / 0.5059 GB, free: 58.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003239/0.3347, allocations: 380 kB / 0.5063 GB, free: 58.05 MB / 410.7 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.002068/0.3367, allocations: 2.229 MB / 0.5085 GB, free: 55.81 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004533/0.3372, allocations: 417.2 kB / 0.5089 GB, free: 55.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003236/0.3404, allocations: 3.668 MB / 0.5125 GB, free: 51.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-05/0.3404, allocations: 23.98 kB / 0.5125 GB, free: 51.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.3404, allocations: 4 kB / 0.5125 GB, free: 51.69 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.3404, allocations: 7.969 kB / 0.5125 GB, free: 51.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008079/0.3485, allocations: 8.796 MB / 0.5211 GB, free: 42.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.3485, allocations: 4.656 kB / 0.5211 GB, free: 42.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007448/0.3493, allocations: 323.5 kB / 0.5214 GB, free: 42.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001027/0.3503, allocations: 0.7617 MB / 0.5221 GB, free: 41.71 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.395e-05/0.3504, allocations: 43.92 kB / 0.5222 GB, free: 41.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004131/0.3545, allocations: 5.998 MB / 0.528 GB, free: 35.56 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.3545, allocations: 11.94 kB / 0.528 GB, free: 35.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005253/0.3598, allocations: 6.577 MB / 0.5345 GB, free: 28.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001042/0.3608, allocations: 437 kB / 0.5349 GB, free: 28.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003085/0.3611, allocations: 43.98 kB / 0.5349 GB, free: 28.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009221/0.3621, allocations: 135.8 kB / 0.5351 GB, free: 28.28 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002226/0.3623, allocations: 143.5 kB / 0.5352 GB, free: 28.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.919e-05/0.3624, allocations: 56 kB / 0.5352 GB, free: 28.09 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002635/0.365, allocations: 3.107 MB / 0.5383 GB, free: 24.98 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.365, allocations: 0 / 0.5383 GB, free: 24.98 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003062/0.3681, allocations: 1.164 MB / 0.5394 GB, free: 23.82 MB / 410.7 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.005157/0.3732, allocations: 7.237 MB / 0.5465 GB, free: 16.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004757/0.378, allocations: 5.333 MB / 0.5517 GB, free: 11.18 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.378, allocations: 4.062 kB / 0.5517 GB, free: 11.17 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001614/0.3796, allocations: 1.837 MB / 0.5535 GB, free: 9.32 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002017/0.3816, allocations: 0.5322 MB / 0.554 GB, free: 8.809 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1887/0.5703, allocations: 51.2 MB / 0.604 GB, free: 155.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002639/0.5729, allocations: 2.924 MB / 0.6069 GB, free: 155.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002651/0.5756, allocations: 2.053 MB / 0.6089 GB, free: 155.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00155/0.5771, allocations: 2.066 MB / 0.6109 GB, free: 155.1 MB / 458.7 MB Notification: Performance of SimCode: time 1.413e-06/0.5771, allocations: 0 / 0.6109 GB, free: 155.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07276/0.6499, allocations: 80.07 MB / 0.6891 GB, free: 81.76 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.978/10.63, allocations: 11.86 kB / 0.6891 GB, free: 81.75 MB / 458.7 MB " [Timeout remaining time 649] (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.000201919 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.42782139312476]