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.001088/0.001088, allocations: 105.3 kB / 18.45 MB, free: 4.625 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.001024/0.001025, allocations: 181.1 kB / 19.37 MB, free: 3.707 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.247/1.247, allocations: 222.9 MB / 243.1 MB, free: 15.05 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.1872/0.1872, allocations: 44.18 MB / 337.4 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 59.91 kB / 471.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3397, allocations: 60.82 MB / 0.5196 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01652/0.3563, allocations: 15.74 MB / 0.535 GB, free: 8.148 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01239/0.3687, allocations: 4.949 MB / 0.5398 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003702/0.3725, allocations: 108 kB / 0.5399 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01019/0.3827, allocations: 5.021 MB / 0.5448 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008404/0.3912, allocations: 2.558 MB / 0.5473 GB, free: 15 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003217/0.3944, allocations: 1.077 MB / 0.5483 GB, free: 14.25 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01131/0.4058, allocations: 6.836 MB / 0.555 GB, free: 7.676 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009073/0.4149, allocations: 5.796 MB / 0.5607 GB, free: 1.805 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004689/0.4196, allocations: 2.426 MB / 0.563 GB, free: 15.37 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005592/0.4253, allocations: 3.248 MB / 0.5662 GB, free: 12.11 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002206/0.4275, allocations: 0.5117 MB / 0.5667 GB, free: 11.6 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004399/0.4319, allocations: 1.408 MB / 0.5681 GB, free: 10.19 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004557/0.4365, allocations: 3.063 MB / 0.5711 GB, free: 7.121 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00678/0.4433, allocations: 3.429 MB / 0.5744 GB, free: 3.672 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01474/0.4581, allocations: 10.6 MB / 0.5848 GB, free: 9.035 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.4582, allocations: 0 / 0.5848 GB, free: 9.035 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.536e-06/0.4582, allocations: 7.984 kB / 0.5848 GB, free: 9.027 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004389/0.4586, allocations: 0 / 0.5848 GB, free: 9.027 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.0201/0.4787, allocations: 7.514 MB / 0.5921 GB, free: 1.426 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.4788, allocations: 8.031 kB / 0.5921 GB, free: 1.418 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01323/0.492, allocations: 2.761 MB / 0.5948 GB, free: 14.64 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009812/0.5019, allocations: 4.366 MB / 0.5991 GB, free: 10.19 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003718/0.5023, allocations: 361.7 kB / 0.5994 GB, free: 9.836 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001978/0.5043, allocations: 487.6 kB / 0.5999 GB, free: 9.359 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02774/0.5321, allocations: 14.63 MB / 0.6142 GB, free: 9.715 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002492/0.5324, allocations: 67.38 kB / 0.6143 GB, free: 9.648 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001285/0.5337, allocations: 231.8 kB / 0.6145 GB, free: 9.422 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00494/0.5386, allocations: 2.828 MB / 0.6172 GB, free: 6.586 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02343/0.5621, allocations: 12.35 MB / 0.6293 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07004/0.6321, allocations: 58.15 MB / 0.6861 GB, free: 14.56 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01495/0.6471, allocations: 6.272 MB / 0.6922 GB, free: 8.117 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004604/0.6518, allocations: 3.703 MB / 0.6958 GB, free: 4.395 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0155/0.6673, allocations: 8.559 MB / 0.7042 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.518e-05/0.6674, allocations: 64.22 kB / 0.7043 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=236): time 6.121e-06/0.6674, allocations: 0 / 0.7043 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=278): time 0.3311/0.9986, allocations: 30.44 MB / 0.734 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.9987, allocations: 240.5 kB / 0.7342 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009003/1.008, allocations: 6.753 MB / 0.7408 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007178/1.008, allocations: 72.33 kB / 0.7409 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002319/1.011, allocations: 4.496 MB / 0.7453 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001337/1.012, allocations: 1.067 MB / 0.7463 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002181/1.014, allocations: 1.799 MB / 0.7481 GB, free: 154 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.902e-05/1.014, allocations: 308.6 kB / 0.7484 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004311/1.019, allocations: 3.585 MB / 0.7519 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006275/1.025, allocations: 8.689 MB / 0.7603 GB, free: 142.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0114/1.036, allocations: 13.19 MB / 0.7732 GB, free: 126.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001391/1.037, allocations: 48 kB / 0.7733 GB, free: 126.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02309/1.06, allocations: 14.05 MB / 0.787 GB, free: 112.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.275e-05/1.06, allocations: 84 kB / 0.7871 GB, free: 112.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001488/1.06, allocations: 176 kB / 0.7872 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005169/1.065, allocations: 2.296 MB / 0.7895 GB, free: 110 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006049/1.071, allocations: 2.012 MB / 0.7914 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01419/1.085, allocations: 14.34 MB / 0.8054 GB, free: 93.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007289/1.093, allocations: 0.5068 MB / 0.8059 GB, free: 92.86 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001515/1.094, allocations: 0.5195 MB / 0.8065 GB, free: 92.34 MB / 0.5606 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.005095/1.099, allocations: 3.043 MB / 0.8094 GB, free: 89.29 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001325/1.101, allocations: 0.5553 MB / 0.81 GB, free: 88.72 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01085/1.112, allocations: 7.087 MB / 0.8169 GB, free: 81.61 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.496e-05/1.112, allocations: 28 kB / 0.8169 GB, free: 81.59 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.759e-05/1.112, allocations: 15.98 kB / 0.8169 GB, free: 81.57 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.796e-05/1.112, allocations: 11.95 kB / 0.8169 GB, free: 81.56 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02254/1.134, allocations: 14.82 MB / 0.8314 GB, free: 66.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.573e-05/1.134, allocations: 4 kB / 0.8314 GB, free: 66.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002224/1.137, allocations: 459.3 kB / 0.8319 GB, free: 66.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004722/1.141, allocations: 2.038 MB / 0.8338 GB, free: 64.21 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004695/1.142, allocations: 51.98 kB / 0.8339 GB, free: 64.16 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01436/1.156, allocations: 13.71 MB / 0.8473 GB, free: 50.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/1.156, allocations: 4 kB / 0.8473 GB, free: 50.17 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01502/1.171, allocations: 11.25 MB / 0.8583 GB, free: 38.77 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001773/1.173, allocations: 0.6303 MB / 0.8589 GB, free: 38.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001629/1.175, allocations: 52 kB / 0.8589 GB, free: 38.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003022/1.178, allocations: 199.6 kB / 0.8591 GB, free: 37.87 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005833/1.178, allocations: 173.7 kB / 0.8593 GB, free: 37.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001884/1.179, allocations: 71.98 kB / 0.8594 GB, free: 37.63 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006175/1.185, allocations: 4.325 MB / 0.8636 GB, free: 33.32 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.31e-07/1.185, allocations: 0 / 0.8636 GB, free: 33.32 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008708/1.194, allocations: 1.608 MB / 0.8652 GB, free: 31.72 MB / 0.5606 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.0006869/1.194, allocations: 198.2 kB / 0.8653 GB, free: 31.52 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01151/1.206, allocations: 8.73 MB / 0.8739 GB, free: 22.79 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/1.206, allocations: 0 / 0.8739 GB, free: 22.79 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004895/1.211, allocations: 3.417 MB / 0.8772 GB, free: 19.36 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005766/1.217, allocations: 0.7443 MB / 0.8779 GB, free: 18.62 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02416/1.241, allocations: 15.6 MB / 0.8932 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006699/1.247, allocations: 4.596 MB / 0.8977 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002045/1.25, allocations: 443.3 kB / 0.8981 GB, free: 13.87 MB / 0.5762 GB Notification: Performance of SimCode: time 1.543e-06/1.25, allocations: 4 kB / 0.8981 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of Templates: time 0.419/1.669, allocations: 146.1 MB / 1.041 GB, free: 114.3 MB / 0.6075 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