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.001416/0.001416, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.001426/0.001426, allocations: 193.3 kB / 18.91 MB, free: 4.477 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.334/1.334, allocations: 222.9 MB / 242.6 MB, free: 15.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.2069/0.2069, allocations: 44.19 MB / 336.9 MB, free: 2.949 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 69.14 kB / 408.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09934/0.1006, allocations: 60.83 MB / 469.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.269/0.3697, allocations: 89.18 MB / 0.5455 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03738/0.4071, allocations: 17 MB / 0.5621 GB, free: 4.602 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01779/0.4249, allocations: 386.3 kB / 0.5624 GB, free: 4.543 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009817/0.4348, allocations: 4.847 MB / 0.5672 GB, free: 464 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007169/0.4421, allocations: 2.379 MB / 0.5695 GB, free: 14.07 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002967/0.4451, allocations: 1.014 MB / 0.5705 GB, free: 13.05 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01064/0.4557, allocations: 7.24 MB / 0.5776 GB, free: 5.797 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009127/0.4649, allocations: 6.116 MB / 0.5835 GB, free: 15.63 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004607/0.4695, allocations: 2.477 MB / 0.586 GB, free: 13.14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005475/0.4751, allocations: 3.614 MB / 0.5895 GB, free: 9.52 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001903/0.477, allocations: 0.5078 MB / 0.59 GB, free: 9.012 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003914/0.4809, allocations: 1.428 MB / 0.5914 GB, free: 7.582 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004671/0.4857, allocations: 3.094 MB / 0.5944 GB, free: 4.48 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006335/0.4921, allocations: 3.464 MB / 0.5978 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01057/0.5026, allocations: 8.451 MB / 0.606 GB, free: 8.527 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.5027, allocations: 0 / 0.606 GB, free: 8.527 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.5027, allocations: 0 / 0.606 GB, free: 8.527 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004131/0.5031, allocations: 0 / 0.606 GB, free: 8.527 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.01891/0.5221, allocations: 7.514 MB / 0.6134 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.5221, allocations: 8.031 kB / 0.6134 GB, free: 0.918 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01332/0.5354, allocations: 2.761 MB / 0.6161 GB, free: 14.14 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01017/0.5457, allocations: 4.281 MB / 0.6203 GB, free: 9.777 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003814/0.5461, allocations: 361.9 kB / 0.6206 GB, free: 9.422 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001975/0.5481, allocations: 499.5 kB / 0.6211 GB, free: 8.934 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02783/0.5759, allocations: 14.63 MB / 0.6354 GB, free: 9.293 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002439/0.5762, allocations: 67.38 kB / 0.6354 GB, free: 9.227 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001007/0.5772, allocations: 235.8 kB / 0.6356 GB, free: 8.996 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004941/0.5822, allocations: 2.824 MB / 0.6384 GB, free: 6.168 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02431/0.6065, allocations: 12.35 MB / 0.6505 GB, free: 9.785 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2662/0.8728, allocations: 58.4 MB / 0.7075 GB, free: 176.2 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01522/0.8881, allocations: 6.271 MB / 0.7136 GB, free: 175.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005148/0.8933, allocations: 3.707 MB / 0.7172 GB, free: 175.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01462/0.9079, allocations: 8.562 MB / 0.7256 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.712e-05/0.9081, allocations: 65.19 kB / 0.7257 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 1.041e-05/0.9081, allocations: 0 / 0.7257 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.07082/0.9789, allocations: 30.44 MB / 0.7554 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.043e-05/0.979, allocations: 246.8 kB / 0.7556 GB, free: 156.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009062/0.9881, allocations: 6.75 MB / 0.7622 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007292/0.9889, allocations: 65.7 kB / 0.7623 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00246/0.9913, allocations: 4.499 MB / 0.7667 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001265/0.9926, allocations: 1.066 MB / 0.7677 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002417/0.9951, allocations: 1.803 MB / 0.7695 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.481e-05/0.9951, allocations: 306.2 kB / 0.7698 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004008/0.9991, allocations: 3.581 MB / 0.7733 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005828/1.005, allocations: 8.688 MB / 0.7818 GB, free: 127.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0111/1.016, allocations: 13.18 MB / 0.7946 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001361/1.016, allocations: 52 kB / 0.7947 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02284/1.039, allocations: 14.06 MB / 0.8084 GB, free: 98.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001114/1.039, allocations: 80 kB / 0.8085 GB, free: 98.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001847/1.039, allocations: 183.9 kB / 0.8087 GB, free: 97.94 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005205/1.045, allocations: 2.284 MB / 0.8109 GB, free: 95.65 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006215/1.051, allocations: 2.016 MB / 0.8129 GB, free: 93.63 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01403/1.065, allocations: 14.37 MB / 0.8269 GB, free: 78.99 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006796/1.072, allocations: 0.5031 MB / 0.8274 GB, free: 78.49 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001271/1.073, allocations: 0.523 MB / 0.8279 GB, free: 77.97 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.005051/1.078, allocations: 3.042 MB / 0.8309 GB, free: 74.91 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001137/1.079, allocations: 0.5591 MB / 0.8314 GB, free: 74.35 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01039/1.09, allocations: 7.08 MB / 0.8383 GB, free: 67.25 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.19e-05/1.09, allocations: 35.98 kB / 0.8384 GB, free: 67.21 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.865e-05/1.09, allocations: 8 kB / 0.8384 GB, free: 67.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.093e-05/1.09, allocations: 11.95 kB / 0.8384 GB, free: 67.19 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02625/1.116, allocations: 15.01 MB / 0.853 GB, free: 52.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.764e-05/1.116, allocations: 4 kB / 0.853 GB, free: 52.13 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002212/1.118, allocations: 463.3 kB / 0.8535 GB, free: 51.68 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004703/1.123, allocations: 2.038 MB / 0.8555 GB, free: 49.63 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006336/1.124, allocations: 52 kB / 0.8555 GB, free: 49.58 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0141/1.138, allocations: 13.62 MB / 0.8688 GB, free: 35.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/1.138, allocations: 4.781 kB / 0.8688 GB, free: 35.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01425/1.152, allocations: 11.23 MB / 0.8798 GB, free: 24.32 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001666/1.154, allocations: 0.6381 MB / 0.8804 GB, free: 23.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001621/1.156, allocations: 48 kB / 0.8805 GB, free: 23.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003303/1.159, allocations: 195.1 kB / 0.8807 GB, free: 23.42 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009137/1.16, allocations: 181.6 kB / 0.8808 GB, free: 23.25 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004526/1.16, allocations: 79.98 kB / 0.8809 GB, free: 23.17 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006364/1.167, allocations: 4.317 MB / 0.8851 GB, free: 18.86 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.91e-07/1.167, allocations: 0 / 0.8851 GB, free: 18.86 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00803/1.175, allocations: 1.608 MB / 0.8867 GB, free: 17.26 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.0008601/1.176, allocations: 197.4 kB / 0.8869 GB, free: 17.06 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01409/1.19, allocations: 10.29 MB / 0.8969 GB, free: 6.797 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/1.19, allocations: 0 / 0.8969 GB, free: 6.797 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005214/1.195, allocations: 3.404 MB / 0.9002 GB, free: 3.367 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2064/1.401, allocations: 0.7385 MB / 0.901 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03385/1.435, allocations: 18.58 MB / 0.9191 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008678/1.444, allocations: 4.599 MB / 0.9236 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002229/1.446, allocations: 444.7 kB / 0.924 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of SimCode: time 1.243e-06/1.446, allocations: 0 / 0.924 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of Templates: time 0.1765/1.623, allocations: 145.1 MB / 1.066 GB, free: 33.84 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