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.001604/0.001604, allocations: 107.9 kB / 18.44 MB, free: 4.629 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.001937/0.001937, allocations: 186.3 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.39/1.39, allocations: 222.9 MB / 243.1 MB, free: 15.16 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.2097/0.2097, allocations: 44.18 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 63.89 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3823/0.3836, allocations: 60.82 MB / 0.5196 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01724/0.4009, allocations: 15.74 MB / 0.535 GB, free: 8.156 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0133/0.4142, allocations: 4.946 MB / 0.5398 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004432/0.4187, allocations: 107.2 kB / 0.5399 GB, free: 4.223 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0108/0.4296, allocations: 5.021 MB / 0.5448 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009225/0.4389, allocations: 2.547 MB / 0.5473 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00354/0.4424, allocations: 1.075 MB / 0.5483 GB, free: 14.27 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01128/0.4538, allocations: 6.839 MB / 0.555 GB, free: 7.707 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008562/0.4624, allocations: 5.803 MB / 0.5607 GB, free: 1.828 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005242/0.4677, allocations: 2.43 MB / 0.563 GB, free: 15.39 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005638/0.4733, allocations: 3.248 MB / 0.5662 GB, free: 12.13 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002373/0.4758, allocations: 0.5117 MB / 0.5667 GB, free: 11.62 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00439/0.4802, allocations: 1.408 MB / 0.5681 GB, free: 10.21 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004268/0.4845, allocations: 3.067 MB / 0.5711 GB, free: 7.137 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006428/0.4909, allocations: 3.418 MB / 0.5744 GB, free: 3.699 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01492/0.5059, allocations: 10.62 MB / 0.5848 GB, free: 9.043 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.5059, allocations: 0 / 0.5848 GB, free: 9.043 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.5059, allocations: 0 / 0.5848 GB, free: 9.043 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004284/0.5063, allocations: 0 / 0.5848 GB, free: 9.043 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.01978/0.5261, allocations: 7.51 MB / 0.5921 GB, free: 1.449 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.5262, allocations: 12.03 kB / 0.5921 GB, free: 1.438 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01324/0.5395, allocations: 2.761 MB / 0.5948 GB, free: 14.66 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01148/0.551, allocations: 4.362 MB / 0.5991 GB, free: 10.21 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004039/0.5514, allocations: 369.7 kB / 0.5994 GB, free: 9.852 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001991/0.5534, allocations: 487.6 kB / 0.5999 GB, free: 9.375 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0299/0.5833, allocations: 14.62 MB / 0.6142 GB, free: 9.742 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003954/0.5838, allocations: 75.3 kB / 0.6143 GB, free: 9.668 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001988/0.5858, allocations: 231.8 kB / 0.6145 GB, free: 9.441 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005227/0.591, allocations: 2.824 MB / 0.6172 GB, free: 6.609 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02565/0.6167, allocations: 12.35 MB / 0.6293 GB, free: 10.23 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07301/0.6897, allocations: 58.15 MB / 0.6861 GB, free: 14.58 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01476/0.7045, allocations: 6.272 MB / 0.6922 GB, free: 8.137 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004525/0.7091, allocations: 3.706 MB / 0.6958 GB, free: 4.414 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01538/0.7245, allocations: 8.563 MB / 0.7042 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.605e-05/0.7246, allocations: 60.22 kB / 0.7043 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=236): time 4.709e-06/0.7246, allocations: 0 / 0.7043 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of matching and sorting (n=278): time 0.3585/1.083, allocations: 30.45 MB / 0.734 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/1.083, allocations: 241.1 kB / 0.7342 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01023/1.093, allocations: 6.75 MB / 0.7408 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008195/1.094, allocations: 65.05 kB / 0.7409 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002854/1.097, allocations: 4.496 MB / 0.7453 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00179/1.099, allocations: 1.068 MB / 0.7463 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002755/1.102, allocations: 1.798 MB / 0.7481 GB, free: 154 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.073e-05/1.102, allocations: 312.6 kB / 0.7484 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004577/1.106, allocations: 3.582 MB / 0.7519 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006669/1.113, allocations: 8.685 MB / 0.7603 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.012/1.125, allocations: 13.19 MB / 0.7732 GB, free: 126.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000143/1.125, allocations: 52 kB / 0.7733 GB, free: 126.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02502/1.15, allocations: 14.04 MB / 0.787 GB, free: 112.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001107/1.151, allocations: 84.98 kB / 0.7871 GB, free: 112.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002009/1.151, allocations: 183.9 kB / 0.7872 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005458/1.156, allocations: 2.288 MB / 0.7895 GB, free: 110 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006922/1.163, allocations: 2.016 MB / 0.7914 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01491/1.178, allocations: 14.33 MB / 0.8054 GB, free: 93.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007575/1.186, allocations: 0.5071 MB / 0.8059 GB, free: 92.89 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001627/1.187, allocations: 0.5117 MB / 0.8064 GB, free: 92.38 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.005464/1.193, allocations: 3.053 MB / 0.8094 GB, free: 89.32 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001574/1.194, allocations: 0.5553 MB / 0.81 GB, free: 88.75 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01131/1.206, allocations: 7.092 MB / 0.8169 GB, free: 81.64 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.263e-05/1.206, allocations: 32 kB / 0.8169 GB, free: 81.61 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-05/1.206, allocations: 8 kB / 0.8169 GB, free: 81.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.942e-05/1.206, allocations: 15.95 kB / 0.8169 GB, free: 81.59 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02658/1.233, allocations: 14.8 MB / 0.8314 GB, free: 66.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.862e-05/1.233, allocations: 8.094 kB / 0.8314 GB, free: 66.73 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002216/1.235, allocations: 463.3 kB / 0.8319 GB, free: 66.28 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004832/1.24, allocations: 2.033 MB / 0.8338 GB, free: 64.24 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005294/1.24, allocations: 48 kB / 0.8339 GB, free: 64.19 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0145/1.255, allocations: 13.71 MB / 0.8473 GB, free: 50.21 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/1.255, allocations: 8 kB / 0.8473 GB, free: 50.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01565/1.27, allocations: 11.24 MB / 0.8583 GB, free: 38.81 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002384/1.273, allocations: 0.6342 MB / 0.8589 GB, free: 38.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001836/1.275, allocations: 55.98 kB / 0.8589 GB, free: 38.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003354/1.278, allocations: 203.6 kB / 0.8591 GB, free: 37.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007045/1.279, allocations: 169.6 kB / 0.8593 GB, free: 37.73 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002239/1.279, allocations: 72 kB / 0.8594 GB, free: 37.66 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006395/1.285, allocations: 4.325 MB / 0.8636 GB, free: 33.35 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.082e-06/1.286, allocations: 3.938 kB / 0.8636 GB, free: 33.35 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008555/1.294, allocations: 1.612 MB / 0.8652 GB, free: 31.74 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.0008112/1.295, allocations: 193.2 kB / 0.8653 GB, free: 31.55 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0118/1.307, allocations: 8.731 MB / 0.8739 GB, free: 22.82 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/1.307, allocations: 0 / 0.8739 GB, free: 22.82 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005062/1.312, allocations: 3.414 MB / 0.8772 GB, free: 19.38 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005577/1.317, allocations: 0.7384 MB / 0.8779 GB, free: 18.65 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02482/1.342, allocations: 15.62 MB / 0.8932 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006684/1.349, allocations: 4.593 MB / 0.8977 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002183/1.351, allocations: 443.4 kB / 0.8981 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of SimCode: time 2.625e-06/1.351, allocations: 0 / 0.8981 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of Templates: time 0.4547/1.806, allocations: 147 MB / 1.042 GB, free: 113.9 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