Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque") translateModel(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009434/0.0009434, allocations: 96.61 kB / 18 MB, free: 5.605 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.0009629/0.0009631, allocations: 176.9 kB / 18.91 MB, free: 4.742 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.49/1.49, allocations: 223.3 MB / 243 MB, free: 14.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1965/0.1965, allocations: 44.23 MB / 338.3 MB, free: 2.441 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003354/0.0003354, allocations: 8.75 kB / 411 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1093, allocations: 61.93 MB / 472.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3492/0.4585, allocations: 87.09 MB / 0.5469 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04992/0.5085, allocations: 17.04 MB / 0.5635 GB, free: 6.152 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02415/0.5327, allocations: 387.8 kB / 0.5639 GB, free: 6.094 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002799/0.5356, allocations: 0.6053 MB / 0.5645 GB, free: 5.617 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007937/0.5436, allocations: 2.411 MB / 0.5668 GB, free: 3.906 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002517/0.5461, allocations: 0.8737 MB / 0.5677 GB, free: 3.289 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01321/0.5593, allocations: 10.06 MB / 0.5775 GB, free: 9.219 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01294/0.5723, allocations: 8.116 MB / 0.5854 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004065/0.5764, allocations: 1.758 MB / 0.5872 GB, free: 15.22 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005259/0.5817, allocations: 2.993 MB / 0.5901 GB, free: 12.21 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001803/0.5836, allocations: 212 kB / 0.5903 GB, free: 12.01 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003812/0.5874, allocations: 1.178 MB / 0.5914 GB, free: 10.83 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003586/0.591, allocations: 2.711 MB / 0.5941 GB, free: 8.113 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004231/0.5953, allocations: 3.029 MB / 0.597 GB, free: 5.059 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008755/0.604, allocations: 8.175 MB / 0.605 GB, free: 12.86 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.6041, allocations: 0 / 0.605 GB, free: 12.86 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.6041, allocations: 0 / 0.605 GB, free: 12.86 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003495/0.6045, allocations: 0 / 0.605 GB, free: 12.86 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.01407/0.6185, allocations: 6.173 MB / 0.611 GB, free: 6.605 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.6186, allocations: 8.031 kB / 0.6111 GB, free: 6.598 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01326/0.6319, allocations: 2.835 MB / 0.6138 GB, free: 3.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009588/0.6415, allocations: 4.277 MB / 0.618 GB, free: 15.39 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003191/0.6419, allocations: 361.9 kB / 0.6183 GB, free: 15.04 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001861/0.6437, allocations: 491.6 kB / 0.6188 GB, free: 14.55 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0275/0.6713, allocations: 14.65 MB / 0.6331 GB, free: 14.89 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002356/0.6715, allocations: 67.39 kB / 0.6332 GB, free: 14.82 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008166/0.6724, allocations: 231.8 kB / 0.6334 GB, free: 14.6 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005086/0.6775, allocations: 2.82 MB / 0.6362 GB, free: 11.77 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02524/0.7027, allocations: 12.37 MB / 0.6482 GB, free: 15.37 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07622/0.779, allocations: 58.47 MB / 0.7053 GB, free: 3.402 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2507/1.03, allocations: 6.285 MB / 0.7115 GB, free: 187.6 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005599/1.035, allocations: 3.707 MB / 0.7151 GB, free: 186.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01632/1.052, allocations: 8.558 MB / 0.7235 GB, free: 182.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.845e-05/1.052, allocations: 61.16 kB / 0.7235 GB, free: 182.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 7.244e-06/1.052, allocations: 0 / 0.7235 GB, free: 182.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.07433/1.126, allocations: 30.41 MB / 0.7532 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.718e-05/1.126, allocations: 239.2 kB / 0.7534 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01041/1.137, allocations: 6.758 MB / 0.76 GB, free: 159.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007069/1.138, allocations: 66.41 kB / 0.7601 GB, free: 159.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003021/1.141, allocations: 4.492 MB / 0.7645 GB, free: 155 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001512/1.142, allocations: 1.066 MB / 0.7655 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001843/1.144, allocations: 0.7605 MB / 0.7663 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.486e-05/1.144, allocations: 305.1 kB / 0.7666 GB, free: 152.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005265/1.149, allocations: 3.588 MB / 0.7701 GB, free: 149.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00751/1.157, allocations: 8.688 MB / 0.7785 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01266/1.17, allocations: 13.19 MB / 0.7914 GB, free: 122.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001927/1.17, allocations: 52 kB / 0.7915 GB, free: 122.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02471/1.194, allocations: 14.06 MB / 0.8052 GB, free: 108.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000239/1.195, allocations: 84.06 kB / 0.8053 GB, free: 108.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000295/1.195, allocations: 180.8 kB / 0.8055 GB, free: 108.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005735/1.201, allocations: 2.284 MB / 0.8077 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006518/1.207, allocations: 2.012 MB / 0.8096 GB, free: 103.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01502/1.222, allocations: 13.42 MB / 0.8228 GB, free: 90.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00723/1.23, allocations: 0.503 MB / 0.8232 GB, free: 89.63 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001689/1.231, allocations: 0.5195 MB / 0.8238 GB, free: 89.11 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 814 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1064): * Single equations (assignments): 1057 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006256/1.238, allocations: 3.054 MB / 0.8267 GB, free: 86.05 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001449/1.239, allocations: 0.5553 MB / 0.8273 GB, free: 85.49 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01298/1.252, allocations: 7.08 MB / 0.8342 GB, free: 78.39 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.523e-05/1.252, allocations: 33.83 kB / 0.8342 GB, free: 78.36 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.44e-05/1.252, allocations: 8 kB / 0.8342 GB, free: 78.35 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.674e-05/1.252, allocations: 15.95 kB / 0.8342 GB, free: 78.34 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02839/1.281, allocations: 15.02 MB / 0.8489 GB, free: 63.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.622e-05/1.281, allocations: 6.156 kB / 0.8489 GB, free: 63.25 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002219/1.283, allocations: 455.3 kB / 0.8494 GB, free: 62.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005083/1.288, allocations: 2.034 MB / 0.8513 GB, free: 60.77 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000583/1.289, allocations: 52 kB / 0.8514 GB, free: 60.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01467/1.303, allocations: 12.69 MB / 0.8638 GB, free: 47.77 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/1.304, allocations: 15.88 kB / 0.8638 GB, free: 47.75 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0167/1.32, allocations: 11.21 MB / 0.8747 GB, free: 36.39 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001764/1.322, allocations: 0.6498 MB / 0.8754 GB, free: 35.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001829/1.324, allocations: 48.75 kB / 0.8754 GB, free: 35.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003719/1.328, allocations: 199.7 kB / 0.8756 GB, free: 35.47 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009126/1.329, allocations: 173.6 kB / 0.8758 GB, free: 35.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004308/1.329, allocations: 77.27 kB / 0.8759 GB, free: 35.23 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008031/1.337, allocations: 4.321 MB / 0.8801 GB, free: 30.92 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.41e-07/1.337, allocations: 0 / 0.8801 GB, free: 30.92 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009165/1.346, allocations: 1.614 MB / 0.8817 GB, free: 29.31 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (220): * Single equations (assignments): 215 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,18,75.0%), (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.0009647/1.347, allocations: 197.6 kB / 0.8818 GB, free: 29.11 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01342/1.361, allocations: 8.686 MB / 0.8903 GB, free: 20.43 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/1.361, allocations: 4.062 kB / 0.8903 GB, free: 20.43 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005625/1.366, allocations: 3.411 MB / 0.8937 GB, free: 16.99 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01002/1.376, allocations: 0.7046 MB / 0.8944 GB, free: 16.29 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2653/1.642, allocations: 18.71 MB / 0.9126 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008629/1.65, allocations: 4.61 MB / 0.9171 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002045/1.652, allocations: 439.7 kB / 0.9175 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of SimCode: time 7.71e-07/1.653, allocations: 3.875 kB / 0.9176 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of Templates: time 0.1824/1.835, allocations: 143.8 MB / 1.058 GB, free: 40.44 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches