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.0007693/0.0007693, allocations: 76.08 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.0009688/0.0009688, allocations: 149.1 kB / 23.93 MB, free: 0.6289 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.8881/0.8881, allocations: 173.4 MB / 200.5 MB, free: 9.43 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.824e-06/1.824e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.909e-05/2.091e-05, allocations: 2.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.008232/0.008253, allocations: 10.03 MB / 328.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006556/0.01481, allocations: 3.889 MB / 332.4 MB, free: 8.367 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001364/0.01617, allocations: 79.69 kB / 332.4 MB, free: 8.289 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003327/0.0195, allocations: 3.282 MB / 335.7 MB, free: 4.996 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003883/0.02338, allocations: 2.075 MB / 337.8 MB, free: 2.914 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001348/0.02473, allocations: 0.8965 MB / 338.7 MB, free: 2.016 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005001/0.02973, allocations: 4.828 MB / 343.5 MB, free: 13.18 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003371/0.0331, allocations: 3.336 MB / 346.9 MB, free: 9.773 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002794/0.0359, allocations: 2.502 MB / 349.4 MB, free: 7.266 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00259/0.03849, allocations: 2.268 MB / 351.6 MB, free: 4.992 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006733/0.03916, allocations: 360 kB / 352 MB, free: 4.641 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001827/0.04099, allocations: 1.201 MB / 353.2 MB, free: 3.438 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001792/0.04278, allocations: 2.217 MB / 355.4 MB, free: 1.215 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001403/0.04418, allocations: 1.386 MB / 356.8 MB, free: 15.82 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006918/0.0511, allocations: 7.764 MB / 364.6 MB, free: 8.035 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.05111, allocations: 0 / 364.6 MB, free: 8.035 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.05111, allocations: 0 / 364.6 MB, free: 8.035 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002011/0.05131, allocations: 4 kB / 364.6 MB, free: 8.031 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.009056/0.06037, allocations: 5.352 MB / 369.9 MB, free: 2.617 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.06042, allocations: 12.91 kB / 369.9 MB, free: 2.605 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008865/0.0613, allocations: 0.757 MB / 370.7 MB, free: 1.836 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01211/0.07341, allocations: 4.167 MB / 374.8 MB, free: 13.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005767/0.07918, allocations: 2.799 MB / 377.6 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/0.07933, allocations: 254.2 kB / 377.9 MB, free: 10.56 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000734/0.08006, allocations: 323.8 kB / 378.2 MB, free: 10.24 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01542/0.09548, allocations: 10.79 MB / 389 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/0.09559, allocations: 43.67 kB / 389 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004488/0.09604, allocations: 155.8 kB / 389.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002271/0.09831, allocations: 2.146 MB / 391.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01448/0.1128, allocations: 9.07 MB / 400.4 MB, free: 3.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03976/0.1526, allocations: 40.18 MB / 440.6 MB, free: 10 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007203/0.1598, allocations: 3.932 MB / 444.5 MB, free: 6.027 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002326/0.1621, allocations: 2.243 MB / 446.8 MB, free: 3.781 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1678/0.3299, allocations: 6.316 MB / 453.1 MB, free: 118.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.3299, allocations: 54.41 kB / 453.1 MB, free: 118 MB / 410.7 MB Notification: Performance of pre-optimization done (n=177): time 4.629e-06/0.3299, allocations: 0 / 453.1 MB, free: 118 MB / 410.7 MB Notification: Performance of matching and sorting (n=198): time 0.02533/0.3552, allocations: 18.45 MB / 471.6 MB, free: 108.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.3553, allocations: 171.5 kB / 471.8 MB, free: 108.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004201/0.3595, allocations: 5.034 MB / 476.8 MB, free: 103.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003859/0.3599, allocations: 56.59 kB / 476.8 MB, free: 103.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001065/0.361, allocations: 3.324 MB / 480.2 MB, free: 100.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005291/0.3615, allocations: 0.784 MB / 481 MB, free: 99.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00101/0.3625, allocations: 1.254 MB / 482.2 MB, free: 98.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.786e-05/0.3625, allocations: 309.1 kB / 482.5 MB, free: 97.74 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001884/0.3644, allocations: 2.276 MB / 484.8 MB, free: 95.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002602/0.367, allocations: 6.044 MB / 490.8 MB, free: 87.55 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005789/0.3728, allocations: 9.031 MB / 499.9 MB, free: 76.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.838e-05/0.3729, allocations: 40 kB / 499.9 MB, free: 76.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.009755/0.3826, allocations: 8.858 MB / 0.4968 GB, free: 67.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.052e-05/0.3827, allocations: 60 kB / 0.4969 GB, free: 67.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.011e-05/0.3828, allocations: 132 kB / 0.497 GB, free: 67.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001347/0.3841, allocations: 0.9425 MB / 0.4979 GB, free: 66.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002597/0.3867, allocations: 1.427 MB / 0.4993 GB, free: 65.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004643/0.3914, allocations: 6.407 MB / 0.5056 GB, free: 58.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003041/0.3944, allocations: 371.5 kB / 0.5059 GB, free: 58.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003615/0.3948, allocations: 376 kB / 0.5063 GB, free: 58 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.002114/0.3969, allocations: 2.229 MB / 0.5085 GB, free: 55.75 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004698/0.3974, allocations: 417.2 kB / 0.5089 GB, free: 55.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003327/0.4007, allocations: 3.664 MB / 0.5125 GB, free: 51.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.036e-05/0.4007, allocations: 23.44 kB / 0.5125 GB, free: 51.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.4007, allocations: 4 kB / 0.5125 GB, free: 51.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.4007, allocations: 11.97 kB / 0.5125 GB, free: 51.62 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009187/0.4099, allocations: 8.796 MB / 0.5211 GB, free: 42.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/0.4099, allocations: 4 kB / 0.5211 GB, free: 42.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008305/0.4108, allocations: 320.2 kB / 0.5214 GB, free: 42.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/0.4119, allocations: 0.7726 MB / 0.5221 GB, free: 41.65 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001195/0.412, allocations: 43.92 kB / 0.5222 GB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005101/0.4171, allocations: 5.99 MB / 0.528 GB, free: 35.51 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.4171, allocations: 11.94 kB / 0.528 GB, free: 35.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006203/0.4233, allocations: 6.582 MB / 0.5345 GB, free: 28.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001225/0.4246, allocations: 437 kB / 0.5349 GB, free: 28.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003251/0.4249, allocations: 40 kB / 0.5349 GB, free: 28.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009789/0.4259, allocations: 143.8 kB / 0.5351 GB, free: 28.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002224/0.4261, allocations: 133 kB / 0.5352 GB, free: 28.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.87e-05/0.4262, allocations: 59.91 kB / 0.5352 GB, free: 28.03 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003031/0.4292, allocations: 3.103 MB / 0.5383 GB, free: 24.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4292, allocations: 0 / 0.5383 GB, free: 24.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003333/0.4325, allocations: 1.164 MB / 0.5394 GB, free: 23.77 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.005385/0.4379, allocations: 7.249 MB / 0.5465 GB, free: 16.42 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005048/0.443, allocations: 5.325 MB / 0.5517 GB, free: 11.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.443, allocations: 0.75 kB / 0.5517 GB, free: 11.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00166/0.4446, allocations: 1.841 MB / 0.5535 GB, free: 9.262 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00209/0.4467, allocations: 0.527 MB / 0.554 GB, free: 8.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1953/0.6421, allocations: 51.2 MB / 0.604 GB, free: 155.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003105/0.6452, allocations: 2.924 MB / 0.6069 GB, free: 155 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002659/0.6478, allocations: 2.05 MB / 0.6089 GB, free: 154.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001612/0.6494, allocations: 2.063 MB / 0.6109 GB, free: 154.6 MB / 458.7 MB Notification: Performance of SimCode: time 1.322e-06/0.6494, allocations: 0 / 0.6109 GB, free: 154.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08647/0.7359, allocations: 80.08 MB / 0.6891 GB, free: 81.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.55, allocations: 3.859 kB / 0.6891 GB, free: 81.3 MB / 458.7 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 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.mat","/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: 13.716232885606587]