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.001835/0.001835, allocations: 76.66 kB / 20.67 MB, free: 1.027 MB / 14.72 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.001753/0.001753, allocations: 147.5 kB / 23.94 MB, free: 4.168 MB / 14.72 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 1.392/1.392, allocations: 173.4 MB / 200.4 MB, free: 12.87 MB / 190.1 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: 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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 0.6094 kB / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.989e-05/2.179e-05, allocations: 10.16 kB / 318.9 MB, free: 3.535 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01153/0.01155, allocations: 10.03 MB / 329 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009268/0.02082, allocations: 3.89 MB / 332.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001673/0.02249, allocations: 82.66 kB / 332.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006435/0.02893, allocations: 3.27 MB / 336.2 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005619/0.03455, allocations: 2.083 MB / 338.3 MB, free: 7.148 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001968/0.03651, allocations: 0.8919 MB / 339.2 MB, free: 6.535 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006973/0.04349, allocations: 4.836 MB / 344 MB, free: 2.523 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004567/0.04806, allocations: 3.344 MB / 347.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003695/0.05175, allocations: 2.495 MB / 349.9 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003326/0.05508, allocations: 2.268 MB / 352.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006643/0.05574, allocations: 360 kB / 352.5 MB, free: 9.988 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002351/0.05809, allocations: 1.205 MB / 353.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002209/0.0603, allocations: 2.217 MB / 355.9 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002022/0.06232, allocations: 1.351 MB / 357.3 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01002/0.07234, allocations: 7.698 MB / 365 MB, free: 13.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.07235, allocations: 0 / 365 MB, free: 13.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.07235, allocations: 3.938 kB / 365 MB, free: 13.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000193/0.07254, allocations: 0 / 365 MB, free: 13.48 MB / 334.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.01389/0.08643, allocations: 5.247 MB / 370.2 MB, free: 8.168 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.08648, allocations: 12.92 kB / 370.2 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009751/0.09623, allocations: 2.264 MB / 372.5 MB, free: 5.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006837/0.1031, allocations: 2.763 MB / 375.2 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002453/0.1033, allocations: 250.2 kB / 375.5 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009912/0.1043, allocations: 331.8 kB / 375.8 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01942/0.1237, allocations: 10.85 MB / 386.7 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001215/0.1238, allocations: 43.64 kB / 386.7 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004381/0.1243, allocations: 163.8 kB / 386.9 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003934/0.1282, allocations: 2.143 MB / 389 MB, free: 4.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0192/0.1474, allocations: 9.195 MB / 398.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05731/0.2047, allocations: 39.27 MB / 437.5 MB, free: 3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01262/0.2173, allocations: 4.013 MB / 441.5 MB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003434/0.2208, allocations: 2.294 MB / 443.8 MB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01198/0.2328, allocations: 6.351 MB / 450.1 MB, free: 6.258 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.079e-05/0.2328, allocations: 51.56 kB / 450.2 MB, free: 6.199 MB / 414.1 MB Notification: Performance of pre-optimization done (n=177): time 5.32e-06/0.2328, allocations: 0 / 450.2 MB, free: 6.199 MB / 414.1 MB Notification: Performance of matching and sorting (n=198): time 0.05365/0.2865, allocations: 19.3 MB / 469.5 MB, free: 2.836 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001761/0.2866, allocations: 183.4 kB / 469.7 MB, free: 2.621 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1784/0.465, allocations: 4.038 MB / 473.7 MB, free: 128.6 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004179/0.4655, allocations: 53.17 kB / 473.7 MB, free: 128.6 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001926/0.4674, allocations: 3.338 MB / 477.1 MB, free: 127.2 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008737/0.4683, allocations: 0.7797 MB / 477.9 MB, free: 126.6 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001774/0.47, allocations: 1.287 MB / 479.2 MB, free: 126 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.931e-05/0.4701, allocations: 302.4 kB / 479.4 MB, free: 125.7 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003484/0.4736, allocations: 2.387 MB / 481.8 MB, free: 124.9 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00589/0.4795, allocations: 6.159 MB / 488 MB, free: 119.1 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01054/0.49, allocations: 9.213 MB / 497.2 MB, free: 111.8 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002423/0.4902, allocations: 38.84 kB / 497.2 MB, free: 111.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01616/0.5064, allocations: 9.295 MB / 0.4947 GB, free: 108.4 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.734e-05/0.5065, allocations: 60.34 kB / 0.4947 GB, free: 108.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001488/0.5066, allocations: 133.4 kB / 0.4949 GB, free: 108.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002804/0.5094, allocations: 1.196 MB / 0.496 GB, free: 108.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004564/0.514, allocations: 1.454 MB / 0.4974 GB, free: 108 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007453/0.5215, allocations: 7.14 MB / 0.5044 GB, free: 102.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005029/0.5265, allocations: 382.9 kB / 0.5048 GB, free: 101.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007911/0.5273, allocations: 383.2 kB / 0.5051 GB, free: 101.5 MB / 430.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 (772): * Single equations (assignments): 766 * 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.003428/0.5307, allocations: 2.24 MB / 0.5073 GB, free: 99.37 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008301/0.5315, allocations: 345.7 kB / 0.5077 GB, free: 99.03 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006316/0.5379, allocations: 3.966 MB / 0.5115 GB, free: 95.05 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.661e-05/0.5379, allocations: 20 kB / 0.5116 GB, free: 95.03 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.5379, allocations: 8 kB / 0.5116 GB, free: 95.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.949e-05/0.5379, allocations: 11.95 kB / 0.5116 GB, free: 95.01 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01513/0.553, allocations: 8.397 MB / 0.5198 GB, free: 86.56 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/0.5531, allocations: 4 kB / 0.5198 GB, free: 86.56 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001475/0.5545, allocations: 315.5 kB / 0.5201 GB, free: 86.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002542/0.5571, allocations: 1.023 MB / 0.5211 GB, free: 85.23 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00022/0.5573, allocations: 35.98 kB / 0.5211 GB, free: 85.19 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007316/0.5646, allocations: 6.73 MB / 0.5277 GB, free: 78.36 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.5646, allocations: 7.938 kB / 0.5277 GB, free: 78.36 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008836/0.5735, allocations: 6.955 MB / 0.5345 GB, free: 71.32 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/0.5747, allocations: 337.6 kB / 0.5348 GB, free: 70.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008948/0.5756, allocations: 36 kB / 0.5348 GB, free: 70.95 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002091/0.5777, allocations: 155.7 kB / 0.535 GB, free: 70.8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003486/0.578, allocations: 140.8 kB / 0.5351 GB, free: 70.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/0.5782, allocations: 55.44 kB / 0.5352 GB, free: 70.61 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002816/0.581, allocations: 2.354 MB / 0.5375 GB, free: 68.27 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.581, allocations: 0 / 0.5375 GB, free: 68.27 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005368/0.5864, allocations: 1.176 MB / 0.5386 GB, free: 67.09 MB / 430.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.000464/0.5868, allocations: 198 kB / 0.5388 GB, free: 66.89 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007043/0.5939, allocations: 5.509 MB / 0.5442 GB, free: 61.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/0.5939, allocations: 4.438 kB / 0.5442 GB, free: 61.41 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003012/0.5969, allocations: 1.919 MB / 0.5461 GB, free: 59.48 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003316/0.6002, allocations: 440.9 kB / 0.5465 GB, free: 59.07 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0145/0.6147, allocations: 10.27 MB / 0.5565 GB, free: 48.69 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002929/0.6176, allocations: 2.933 MB / 0.5594 GB, free: 45.72 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003627/0.6213, allocations: 1.957 MB / 0.5613 GB, free: 43.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007731/0.622, allocations: 248.4 kB / 0.5615 GB, free: 43.51 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.622, allocations: 0 / 0.5615 GB, free: 43.51 MB / 430.1 MB Notification: Performance of Templates: time 0.05909/0.6811, allocations: 35.3 MB / 0.596 GB, free: 8.719 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 480] 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: 6.177112575620413]