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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 101.3 kB / 17.05 MB, free: 6.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 196.1 kB / 18 MB, free: 5.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009391/0.0009391, allocations: 47.94 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2566, allocations: 49.44 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.012/0.2686, allocations: 11.41 MB / 412.1 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007333/0.276, allocations: 4.066 MB / 416.2 MB, free: 9.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001355/0.2774, allocations: 71.81 kB / 416.3 MB, free: 9.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005465/0.2829, allocations: 3.197 MB / 419.5 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004205/0.2871, allocations: 2.007 MB / 421.5 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001559/0.2887, allocations: 0.8188 MB / 422.3 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005265/0.294, allocations: 4.454 MB / 426.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004295/0.2983, allocations: 4.06 MB / 430.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001882/0.3002, allocations: 1.655 MB / 432.5 MB, free: 8.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002328/0.3025, allocations: 2.161 MB / 434.6 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005219/0.303, allocations: 352 kB / 435 MB, free: 6.453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001841/0.3049, allocations: 1.26 MB / 436.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001551/0.3064, allocations: 2.069 MB / 438.3 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001963/0.3084, allocations: 2.361 MB / 440.7 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006763/0.3152, allocations: 7.626 MB / 448.3 MB, free: 9.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3152, allocations: 4 kB / 448.3 MB, free: 9.086 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3152, allocations: 0 / 448.3 MB, free: 9.086 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001065/0.3153, allocations: 0 / 448.3 MB, free: 9.086 MB / 366.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.00838/0.3237, allocations: 5.19 MB / 453.5 MB, free: 3.824 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.3238, allocations: 12.03 kB / 453.5 MB, free: 3.812 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007788/0.3316, allocations: 2.178 MB / 455.7 MB, free: 1.625 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004769/0.3364, allocations: 2.846 MB / 458.5 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000164/0.3365, allocations: 246.3 kB / 458.8 MB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005286/0.3371, allocations: 323.8 kB / 459.1 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01417/0.3512, allocations: 10.83 MB / 469.9 MB, free: 2.637 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.577e-05/0.3513, allocations: 43.52 kB / 469.9 MB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003513/0.3517, allocations: 151.9 kB / 470.1 MB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00299/0.3547, allocations: 2.154 MB / 472.3 MB, free: 300 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01577/0.3705, allocations: 9.219 MB / 481.5 MB, free: 7.047 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05924/0.4297, allocations: 41.68 MB / 0.5109 GB, free: 12.23 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01194/0.4417, allocations: 4.487 MB / 0.5153 GB, free: 7.602 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003399/0.4452, allocations: 2.505 MB / 0.5177 GB, free: 5.09 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01332/0.4585, allocations: 7.38 MB / 0.5249 GB, free: 13.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.466e-05/0.4586, allocations: 51.56 kB / 0.525 GB, free: 13.44 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 5.731e-06/0.4586, allocations: 0 / 0.525 GB, free: 13.44 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.2394/0.698, allocations: 18.76 MB / 0.5433 GB, free: 128.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.6981, allocations: 178.2 kB / 0.5435 GB, free: 128.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004992/0.7031, allocations: 4.624 MB / 0.548 GB, free: 127 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002467/0.7034, allocations: 50.48 kB / 0.548 GB, free: 127 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001396/0.7048, allocations: 3.216 MB / 0.5512 GB, free: 124.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000517/0.7053, allocations: 0.7504 MB / 0.5519 GB, free: 123.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001246/0.7065, allocations: 1.304 MB / 0.5532 GB, free: 123.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.991e-05/0.7066, allocations: 308.7 kB / 0.5535 GB, free: 123 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002613/0.7092, allocations: 2.399 MB / 0.5558 GB, free: 122.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00361/0.7128, allocations: 6.14 MB / 0.5618 GB, free: 116.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006936/0.7198, allocations: 9.238 MB / 0.5708 GB, free: 106.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.606e-05/0.7199, allocations: 40 kB / 0.5709 GB, free: 106.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01242/0.7323, allocations: 9.355 MB / 0.58 GB, free: 97.42 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.459e-05/0.7324, allocations: 64 kB / 0.5801 GB, free: 97.36 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001129/0.7325, allocations: 135.9 kB / 0.5802 GB, free: 97.22 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002481/0.735, allocations: 1.191 MB / 0.5814 GB, free: 96.03 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004005/0.739, allocations: 1.45 MB / 0.5828 GB, free: 94.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00684/0.7459, allocations: 7.287 MB / 0.5899 GB, free: 87.15 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004812/0.7507, allocations: 351.5 kB / 0.5902 GB, free: 86.81 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007791/0.7515, allocations: 384 kB / 0.5906 GB, free: 86.43 MB / 462.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.003153/0.7547, allocations: 2.235 MB / 0.5928 GB, free: 84.19 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008004/0.7555, allocations: 390.9 kB / 0.5932 GB, free: 83.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006062/0.7616, allocations: 4.054 MB / 0.5971 GB, free: 79.73 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.014e-05/0.7616, allocations: 34.66 kB / 0.5971 GB, free: 79.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/0.7616, allocations: 8 kB / 0.5972 GB, free: 79.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/0.7617, allocations: 11.67 kB / 0.5972 GB, free: 79.69 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01358/0.7752, allocations: 9.511 MB / 0.6065 GB, free: 70.08 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/0.7753, allocations: 8 kB / 0.6065 GB, free: 70.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001268/0.7766, allocations: 324.1 kB / 0.6068 GB, free: 69.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002262/0.7788, allocations: 1.017 MB / 0.6078 GB, free: 68.73 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001552/0.779, allocations: 40 kB / 0.6078 GB, free: 68.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00691/0.7859, allocations: 6.873 MB / 0.6145 GB, free: 61.69 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/0.7859, allocations: 11.94 kB / 0.6145 GB, free: 61.68 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008012/0.794, allocations: 7.05 MB / 0.6214 GB, free: 54.54 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/0.7951, allocations: 467.8 kB / 0.6219 GB, free: 54.06 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007096/0.7958, allocations: 47.83 kB / 0.6219 GB, free: 54.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001563/0.7974, allocations: 119.8 kB / 0.622 GB, free: 53.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002748/0.7976, allocations: 129 kB / 0.6221 GB, free: 53.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001325/0.7978, allocations: 56 kB / 0.6222 GB, free: 53.71 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003142/0.8009, allocations: 2.956 MB / 0.6251 GB, free: 50.76 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8009, allocations: 4 kB / 0.6251 GB, free: 50.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004198/0.8051, allocations: 1.081 MB / 0.6261 GB, free: 49.68 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.0003501/0.8055, allocations: 182.2 kB / 0.6263 GB, free: 49.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006304/0.8118, allocations: 5.763 MB / 0.6319 GB, free: 43.76 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.8118, allocations: 64 / 0.6319 GB, free: 43.76 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002582/0.8144, allocations: 2.068 MB / 0.634 GB, free: 41.68 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002429/0.8169, allocations: 0.5104 MB / 0.6345 GB, free: 41.18 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01554/0.8324, allocations: 10.27 MB / 0.6445 GB, free: 30.82 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004925/0.8374, allocations: 3.449 MB / 0.6479 GB, free: 27.34 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004554/0.842, allocations: 2.043 MB / 0.6499 GB, free: 25.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008707/0.8428, allocations: 267.4 kB / 0.6501 GB, free: 25.04 MB / 462.1 MB Notification: Performance of SimCode: time 1.763e-06/0.8429, allocations: 0 / 0.6501 GB, free: 25.04 MB / 462.1 MB Notification: Performance of Templates: time 0.06556/0.9084, allocations: 39.48 MB / 0.6887 GB, free: 1.797 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (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) 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) Reference file matches