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.001319/0.001319, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001487/0.001487, allocations: 189.2 kB / 23.72 MB, free: 4.68 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.408/1.408, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001585/0.001585, allocations: 51.92 kB / 371 MB, free: 9.324 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.2813, allocations: 52.17 MB / 423.1 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01491/0.2962, allocations: 11.49 MB / 434.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00963/0.3059, allocations: 4.119 MB / 438.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002049/0.3079, allocations: 79.69 kB / 438.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007045/0.315, allocations: 3.255 MB / 442.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0066/0.3216, allocations: 2.012 MB / 444.1 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002728/0.3243, allocations: 0.8227 MB / 444.9 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007667/0.332, allocations: 4.455 MB / 449.4 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004831/0.3368, allocations: 2.887 MB / 452.2 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003449/0.3402, allocations: 1.682 MB / 453.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003987/0.3442, allocations: 2.332 MB / 456.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001262/0.3455, allocations: 352 kB / 456.6 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003026/0.3485, allocations: 1.295 MB / 457.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002786/0.3513, allocations: 2.127 MB / 460 MB, free: 9.578 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003438/0.3547, allocations: 2.353 MB / 462.4 MB, free: 7.211 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009215/0.3639, allocations: 7.665 MB / 470 MB, free: 15.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.364, allocations: 0 / 470 MB, free: 15.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.364, allocations: 0 / 470 MB, free: 15.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000182/0.3641, allocations: 3.938 kB / 470 MB, free: 15.51 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: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.01171/0.3758, allocations: 5.247 MB / 475.3 MB, free: 10.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.3759, allocations: 12.03 kB / 475.3 MB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009624/0.3855, allocations: 2.209 MB / 477.5 MB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006841/0.3924, allocations: 2.783 MB / 480.3 MB, free: 5.141 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002134/0.3926, allocations: 250.3 kB / 480.5 MB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009858/0.3935, allocations: 323.8 kB / 480.9 MB, free: 4.578 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02062/0.4142, allocations: 10.83 MB / 491.7 MB, free: 9.059 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001171/0.4143, allocations: 47.62 kB / 491.7 MB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004253/0.4147, allocations: 155.9 kB / 491.9 MB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003901/0.4186, allocations: 2.15 MB / 494 MB, free: 6.707 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01852/0.4371, allocations: 9.219 MB / 0.4915 GB, free: 13.47 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05733/0.4945, allocations: 41.61 MB / 0.5321 GB, free: 2.715 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2434/0.7379, allocations: 3.86 MB / 0.5359 GB, free: 106.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003157/0.7411, allocations: 2.295 MB / 0.5381 GB, free: 105.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01099/0.752, allocations: 6.722 MB / 0.5447 GB, free: 103 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.216e-05/0.7521, allocations: 54.84 kB / 0.5447 GB, free: 103 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 6.603e-06/0.7521, allocations: 0 / 0.5447 GB, free: 103 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.04277/0.7949, allocations: 18.86 MB / 0.5631 GB, free: 90.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.04e-05/0.7949, allocations: 175.5 kB / 0.5633 GB, free: 90.39 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004759/0.7997, allocations: 4.633 MB / 0.5678 GB, free: 85.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003084/0.8, allocations: 53.64 kB / 0.5679 GB, free: 85.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001356/0.8014, allocations: 3.348 MB / 0.5712 GB, free: 82.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005512/0.8019, allocations: 0.7847 MB / 0.5719 GB, free: 81.84 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00125/0.8032, allocations: 1.309 MB / 0.5732 GB, free: 80.52 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.989e-05/0.8032, allocations: 305.1 kB / 0.5735 GB, free: 80.22 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002609/0.8058, allocations: 2.398 MB / 0.5758 GB, free: 77.82 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003854/0.8097, allocations: 6.141 MB / 0.5818 GB, free: 69.87 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007595/0.8173, allocations: 9.234 MB / 0.5908 GB, free: 58.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.273e-05/0.8173, allocations: 36 kB / 0.5909 GB, free: 58.76 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01492/0.8323, allocations: 9.362 MB / 0.6 GB, free: 49.39 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.373e-05/0.8323, allocations: 60 kB / 0.6001 GB, free: 49.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-05/0.8324, allocations: 135.9 kB / 0.6002 GB, free: 49.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00268/0.8351, allocations: 1.203 MB / 0.6014 GB, free: 48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004112/0.8392, allocations: 1.45 MB / 0.6028 GB, free: 46.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00744/0.8467, allocations: 7.18 MB / 0.6098 GB, free: 39.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004939/0.8516, allocations: 359.6 kB / 0.6102 GB, free: 38.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008172/0.8524, allocations: 387.2 kB / 0.6105 GB, free: 38.52 MB / 446.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.00293/0.8554, allocations: 2.233 MB / 0.6127 GB, free: 36.28 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006725/0.856, allocations: 417.2 kB / 0.6131 GB, free: 35.87 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006278/0.8623, allocations: 4.038 MB / 0.617 GB, free: 31.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.515e-05/0.8623, allocations: 24 kB / 0.6171 GB, free: 31.79 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/0.8624, allocations: 4 kB / 0.6171 GB, free: 31.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.867e-05/0.8624, allocations: 15.89 kB / 0.6171 GB, free: 31.77 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01514/0.8775, allocations: 9.462 MB / 0.6263 GB, free: 22.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.636e-05/0.8775, allocations: 4 kB / 0.6263 GB, free: 22.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001469/0.879, allocations: 324.2 kB / 0.6266 GB, free: 21.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00255/0.8815, allocations: 1.021 MB / 0.6276 GB, free: 20.87 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002486/0.8818, allocations: 40 kB / 0.6277 GB, free: 20.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007728/0.8895, allocations: 6.789 MB / 0.6343 GB, free: 13.95 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/0.8895, allocations: 12 kB / 0.6343 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01006/0.8996, allocations: 7.059 MB / 0.6412 GB, free: 6.781 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001861/0.9015, allocations: 417 kB / 0.6416 GB, free: 6.371 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001268/0.9027, allocations: 32 kB / 0.6416 GB, free: 6.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002396/0.9051, allocations: 131.8 kB / 0.6418 GB, free: 6.211 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000388/0.9055, allocations: 128.9 kB / 0.6419 GB, free: 6.082 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001682/0.9057, allocations: 59.12 kB / 0.6419 GB, free: 6.027 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004222/0.9099, allocations: 2.96 MB / 0.6448 GB, free: 3.066 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.9099, allocations: 0 / 0.6448 GB, free: 3.066 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0053/0.9152, allocations: 1.094 MB / 0.6459 GB, free: 1.973 MB / 446.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.0004237/0.9156, allocations: 170.2 kB / 0.6461 GB, free: 1.801 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008611/0.9242, allocations: 5.526 MB / 0.6515 GB, free: 12.29 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.331e-05/0.9242, allocations: 8.188 kB / 0.6515 GB, free: 12.28 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003627/0.9279, allocations: 1.911 MB / 0.6533 GB, free: 10.35 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00301/0.9309, allocations: 0.5026 MB / 0.6538 GB, free: 9.859 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01766/0.9485, allocations: 10.52 MB / 0.6641 GB, free: 15.23 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003973/0.9525, allocations: 3.456 MB / 0.6675 GB, free: 11.75 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004773/0.9573, allocations: 2.042 MB / 0.6695 GB, free: 9.699 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009075/0.9582, allocations: 267.4 kB / 0.6697 GB, free: 9.438 MB / 478.1 MB Notification: Performance of SimCode: time 8.72e-07/0.9582, allocations: 0 / 0.6697 GB, free: 9.438 MB / 478.1 MB Notification: Performance of Templates: time 0.09012/1.048, allocations: 44.23 MB / 0.7129 GB, free: 13.45 MB / 0.5137 GB " [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.625234986655414]