Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008684/0.0008684, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008869/0.0008869, allocations: 170 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8657/0.8657, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 3.938 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.12e-05/1.267e-05, allocations: 2.281 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.007109/0.007121, allocations: 9.848 MB / 334.4 MB, free: 6.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004514/0.01163, allocations: 3.874 MB / 338.3 MB, free: 2.133 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004954/0.01213, allocations: 79.69 kB / 338.4 MB, free: 2.055 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002773/0.0149, allocations: 3.251 MB / 341.6 MB, free: 14.79 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001983/0.01689, allocations: 1.999 MB / 343.6 MB, free: 12.78 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008359/0.01772, allocations: 0.8926 MB / 344.5 MB, free: 11.89 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002892/0.02061, allocations: 4.8 MB / 349.3 MB, free: 7.078 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002117/0.02273, allocations: 3.297 MB / 352.6 MB, free: 3.719 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001793/0.02452, allocations: 2.424 MB / 355 MB, free: 1.289 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001494/0.02602, allocations: 2.225 MB / 357.3 MB, free: 15.06 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002898/0.02631, allocations: 352 kB / 357.6 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001007/0.02731, allocations: 1.19 MB / 358.8 MB, free: 13.52 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001256/0.02857, allocations: 2.147 MB / 360.9 MB, free: 11.37 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000816/0.02939, allocations: 1.332 MB / 362.3 MB, free: 10.04 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004617/0.034, allocations: 7.504 MB / 369.8 MB, free: 2.508 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.03401, allocations: 4 kB / 369.8 MB, free: 2.504 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.03401, allocations: 0 / 369.8 MB, free: 2.504 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.05e-05/0.03406, allocations: 0 / 369.8 MB, free: 2.504 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: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.005591/0.03965, allocations: 5.222 MB / 375 MB, free: 13.22 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.03969, allocations: 12.03 kB / 375 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008335/0.04053, allocations: 0.736 MB / 375.8 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01095/0.05147, allocations: 4.113 MB / 379.9 MB, free: 8.344 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003558/0.05503, allocations: 2.756 MB / 382.6 MB, free: 5.531 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/0.05514, allocations: 246.1 kB / 382.9 MB, free: 5.289 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003632/0.0555, allocations: 319.8 kB / 383.2 MB, free: 4.977 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009749/0.06525, allocations: 10.41 MB / 393.6 MB, free: 9.863 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.795e-05/0.06532, allocations: 47.62 kB / 393.6 MB, free: 9.816 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002606/0.06558, allocations: 147.9 kB / 393.8 MB, free: 9.672 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001858/0.06744, allocations: 2.029 MB / 395.8 MB, free: 7.641 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01013/0.07757, allocations: 8.76 MB / 404.6 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0389/0.1165, allocations: 39.36 MB / 443.9 MB, free: 6.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006695/0.1232, allocations: 3.936 MB / 447.9 MB, free: 2.438 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002049/0.1252, allocations: 2.232 MB / 450.1 MB, free: 204 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.147/0.2722, allocations: 6.296 MB / 456.4 MB, free: 111.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.2722, allocations: 54.28 kB / 456.4 MB, free: 111.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=177): time 4.248e-06/0.2722, allocations: 0 / 456.4 MB, free: 111.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=198): time 0.0243/0.2965, allocations: 18.33 MB / 474.8 MB, free: 100.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.588e-05/0.2966, allocations: 171.5 kB / 474.9 MB, free: 99.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003379/0.3, allocations: 4.975 MB / 479.9 MB, free: 95.02 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.867e-05/0.3, allocations: 57.7 kB / 480 MB, free: 94.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008482/0.3009, allocations: 3.237 MB / 483.2 MB, free: 91.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003172/0.3012, allocations: 0.7702 MB / 484 MB, free: 91.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008288/0.302, allocations: 1.234 MB / 485.2 MB, free: 89.86 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.854e-05/0.3021, allocations: 309.1 kB / 485.5 MB, free: 89.55 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001727/0.3038, allocations: 2.261 MB / 487.8 MB, free: 87.29 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002394/0.3062, allocations: 5.978 MB / 493.8 MB, free: 79.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004831/0.311, allocations: 8.947 MB / 0.4909 GB, free: 68.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.108e-05/0.3111, allocations: 36 kB / 0.491 GB, free: 68.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.007363/0.3184, allocations: 8.786 MB / 0.4995 GB, free: 59.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.439e-05/0.3185, allocations: 67.97 kB / 0.4996 GB, free: 59.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.008e-05/0.3185, allocations: 128 kB / 0.4997 GB, free: 59.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001115/0.3196, allocations: 0.9374 MB / 0.5006 GB, free: 58.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002026/0.3217, allocations: 1.4 MB / 0.502 GB, free: 57.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004524/0.3262, allocations: 6.392 MB / 0.5082 GB, free: 50.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002505/0.3287, allocations: 375.6 kB / 0.5086 GB, free: 50.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002837/0.329, allocations: 372 kB / 0.509 GB, free: 50.14 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.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.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 (744): * Single equations (assignments): 738 * 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.002018/0.331, allocations: 2.179 MB / 0.5111 GB, free: 47.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003301/0.3313, allocations: 409.3 kB / 0.5115 GB, free: 47.55 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00325/0.3346, allocations: 3.66 MB / 0.5151 GB, free: 43.87 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.487e-05/0.3346, allocations: 20 kB / 0.5151 GB, free: 43.85 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.3346, allocations: 8 kB / 0.5151 GB, free: 43.84 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.3346, allocations: 15.91 kB / 0.5151 GB, free: 43.83 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007976/0.3426, allocations: 8.692 MB / 0.5236 GB, free: 35.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.186e-06/0.3426, allocations: 4 kB / 0.5236 GB, free: 35.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007373/0.3433, allocations: 315.5 kB / 0.5239 GB, free: 34.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00106/0.3444, allocations: 0.7726 MB / 0.5246 GB, free: 33.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.398e-05/0.3445, allocations: 36 kB / 0.5247 GB, free: 33.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004666/0.3491, allocations: 6.016 MB / 0.5306 GB, free: 27.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.3492, allocations: 7.938 kB / 0.5306 GB, free: 27.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005382/0.3545, allocations: 6.564 MB / 0.537 GB, free: 21.13 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006137/0.3552, allocations: 438.3 kB / 0.5374 GB, free: 20.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002558/0.3554, allocations: 36 kB / 0.5374 GB, free: 20.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008657/0.3563, allocations: 151.7 kB / 0.5376 GB, free: 20.52 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/0.3565, allocations: 136.9 kB / 0.5377 GB, free: 20.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.77e-05/0.3565, allocations: 59.98 kB / 0.5378 GB, free: 20.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002438/0.359, allocations: 3.069 MB / 0.5408 GB, free: 17.25 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.359, allocations: 0 / 0.5408 GB, free: 17.25 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002777/0.3617, allocations: 1.129 MB / 0.5419 GB, free: 16.13 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.005082/0.3668, allocations: 7.241 MB / 0.5489 GB, free: 8.793 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004502/0.3713, allocations: 5.288 MB / 0.5541 GB, free: 3.527 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3713, allocations: 0 / 0.5541 GB, free: 3.527 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001577/0.3729, allocations: 1.833 MB / 0.5559 GB, free: 1.676 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/0.3744, allocations: 0.5055 MB / 0.5564 GB, free: 1.191 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04644/0.4209, allocations: 50.54 MB / 0.6057 GB, free: 8.742 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002612/0.4235, allocations: 2.827 MB / 0.6085 GB, free: 5.867 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.1464/0.5699, allocations: 2.036 MB / 0.6105 GB, free: 163.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002517/0.5724, allocations: 1.997 MB / 0.6124 GB, free: 163.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5724, allocations: 0 / 0.6124 GB, free: 163.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07614/0.6485, allocations: 78.94 MB / 0.6895 GB, free: 97.88 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.59, allocations: 8.047 kB / 0.6895 GB, free: 97.87 MB / 474.7 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 13.41798816435039]