Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001311/0.001311, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001405/0.001405, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.531/1.531, allocations: 230.3 MB / 258 MB, free: 8.207 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00215/0.00215, allocations: 67.88 kB / 378.8 MB, free: 2.766 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2489, allocations: 53.36 MB / 432.1 MB, free: 7.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01439/0.2633, allocations: 11.26 MB / 443.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008371/0.2716, allocations: 4.098 MB / 447.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001367/0.273, allocations: 79.62 kB / 447.6 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006471/0.2795, allocations: 3.224 MB / 450.8 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004925/0.2844, allocations: 1.934 MB / 452.7 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002044/0.2864, allocations: 0.8266 MB / 453.5 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006668/0.2931, allocations: 4.413 MB / 458 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004228/0.2973, allocations: 2.838 MB / 460.8 MB, free: 10.26 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002823/0.3002, allocations: 1.643 MB / 462.4 MB, free: 8.613 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003476/0.3036, allocations: 2.286 MB / 464.7 MB, free: 6.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009304/0.3046, allocations: 348 kB / 465.1 MB, free: 5.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002778/0.3074, allocations: 1.272 MB / 466.3 MB, free: 4.707 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002826/0.3102, allocations: 2.045 MB / 468.4 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003906/0.3141, allocations: 2.276 MB / 470.7 MB, free: 376 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01007/0.3241, allocations: 7.389 MB / 478.1 MB, free: 8.949 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3242, allocations: 0 / 478.1 MB, free: 8.949 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3242, allocations: 8 kB / 478.1 MB, free: 8.941 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000166/0.3243, allocations: 0 / 478.1 MB, free: 8.941 MB / 382.1 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.01084/0.3352, allocations: 5.126 MB / 483.2 MB, free: 3.754 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.3352, allocations: 8.031 kB / 483.2 MB, free: 3.746 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009153/0.3443, allocations: 2.151 MB / 485.3 MB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006964/0.3513, allocations: 2.709 MB / 488.1 MB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002915/0.3516, allocations: 242.2 kB / 488.3 MB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009458/0.3525, allocations: 327.8 kB / 488.6 MB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02046/0.373, allocations: 10.44 MB / 499.1 MB, free: 3.125 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001385/0.3732, allocations: 39.64 kB / 499.1 MB, free: 3.086 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009428/0.3741, allocations: 151.9 kB / 499.2 MB, free: 2.938 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003852/0.3779, allocations: 2.033 MB / 0.4895 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02024/0.3982, allocations: 8.909 MB / 0.4982 GB, free: 7.98 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2856/0.6838, allocations: 40.74 MB / 0.538 GB, free: 90.29 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01204/0.6958, allocations: 3.871 MB / 0.5418 GB, free: 90.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002603/0.6984, allocations: 2.293 MB / 0.544 GB, free: 90.16 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01244/0.7109, allocations: 6.687 MB / 0.5506 GB, free: 88.33 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.155e-05/0.7109, allocations: 57.88 kB / 0.5506 GB, free: 88.28 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 6.031e-06/0.7109, allocations: 0 / 0.5506 GB, free: 88.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.04861/0.7596, allocations: 18.72 MB / 0.5689 GB, free: 76.65 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/0.7596, allocations: 171.5 kB / 0.5691 GB, free: 76.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005383/0.765, allocations: 4.576 MB / 0.5735 GB, free: 71.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001928/0.7652, allocations: 57.64 kB / 0.5736 GB, free: 71.87 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00131/0.7665, allocations: 3.24 MB / 0.5767 GB, free: 68.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004885/0.767, allocations: 0.8007 MB / 0.5775 GB, free: 68.01 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001202/0.7682, allocations: 1.29 MB / 0.5788 GB, free: 66.71 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.493e-05/0.7682, allocations: 301.1 kB / 0.5791 GB, free: 66.42 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002471/0.7707, allocations: 2.382 MB / 0.5814 GB, free: 64.03 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003511/0.7742, allocations: 6.082 MB / 0.5873 GB, free: 56.23 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006745/0.7809, allocations: 9.149 MB / 0.5963 GB, free: 45.36 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.211e-05/0.781, allocations: 36 kB / 0.5963 GB, free: 45.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01201/0.793, allocations: 9.291 MB / 0.6054 GB, free: 36.02 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.7931, allocations: 64 kB / 0.6054 GB, free: 35.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000136/0.7932, allocations: 129.1 kB / 0.6056 GB, free: 35.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002573/0.7958, allocations: 1.192 MB / 0.6067 GB, free: 34.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003843/0.7997, allocations: 1.435 MB / 0.6081 GB, free: 33.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007174/0.8068, allocations: 7.178 MB / 0.6151 GB, free: 25.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004038/0.8109, allocations: 355.4 kB / 0.6155 GB, free: 25.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006347/0.8115, allocations: 380 kB / 0.6158 GB, free: 25.2 MB / 446.1 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 (763): * Single equations (assignments): 757 * 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.002724/0.8142, allocations: 2.178 MB / 0.618 GB, free: 23.01 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006631/0.8149, allocations: 401.3 kB / 0.6184 GB, free: 22.61 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006137/0.821, allocations: 4.042 MB / 0.6223 GB, free: 18.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.313e-05/0.821, allocations: 20 kB / 0.6223 GB, free: 18.54 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.8211, allocations: 4 kB / 0.6223 GB, free: 18.53 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/0.8211, allocations: 15.95 kB / 0.6223 GB, free: 18.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0139/0.835, allocations: 9.38 MB / 0.6315 GB, free: 9.039 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.757e-05/0.835, allocations: 4 kB / 0.6315 GB, free: 9.035 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001447/0.8364, allocations: 315.5 kB / 0.6318 GB, free: 8.727 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002457/0.8389, allocations: 1.023 MB / 0.6328 GB, free: 7.699 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001965/0.8391, allocations: 39.94 kB / 0.6328 GB, free: 7.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007657/0.8467, allocations: 6.788 MB / 0.6395 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.748e-06/0.8468, allocations: 4 kB / 0.6395 GB, free: 0.7656 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0122/0.8589, allocations: 7.065 MB / 0.6464 GB, free: 9.598 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001466/0.8604, allocations: 405.1 kB / 0.6468 GB, free: 9.199 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001357/0.8618, allocations: 33.31 kB / 0.6468 GB, free: 9.168 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002833/0.8646, allocations: 123.8 kB / 0.6469 GB, free: 9.047 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006195/0.8652, allocations: 143.4 kB / 0.647 GB, free: 8.906 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002954/0.8655, allocations: 59.98 kB / 0.6471 GB, free: 8.848 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00628/0.8718, allocations: 2.92 MB / 0.65 GB, free: 5.926 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8718, allocations: 4 kB / 0.65 GB, free: 5.922 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005831/0.8776, allocations: 1.05 MB / 0.651 GB, free: 4.875 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.0006364/0.8783, allocations: 178.9 kB / 0.6512 GB, free: 4.691 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00958/0.8878, allocations: 5.485 MB / 0.6565 GB, free: 15.22 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.8879, allocations: 0 / 0.6565 GB, free: 15.22 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003725/0.8916, allocations: 1.927 MB / 0.6584 GB, free: 13.28 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003462/0.895, allocations: 499.9 kB / 0.6589 GB, free: 12.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01851/0.9136, allocations: 10.29 MB / 0.6689 GB, free: 2.406 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004911/0.9185, allocations: 3.36 MB / 0.6722 GB, free: 15.01 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004905/0.9234, allocations: 2.029 MB / 0.6742 GB, free: 12.98 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009936/0.9244, allocations: 267.4 kB / 0.6744 GB, free: 12.71 MB / 494.1 MB Notification: Performance of SimCode: time 1.302e-06/0.9244, allocations: 0 / 0.6744 GB, free: 12.71 MB / 494.1 MB Notification: Performance of Templates: time 0.08862/1.013, allocations: 43.57 MB / 0.717 GB, free: 1.359 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/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_trunk_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: 6.667111513204873]