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.001096/0.001096, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001101/0.001101, allocations: 192 kB / 18.56 MB, free: 4.434 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.282/1.282, allocations: 222.9 MB / 242.2 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.192/0.192, allocations: 44.19 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 65.22 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09665/0.09786, allocations: 60.82 MB / 469.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01498/0.1129, allocations: 15.74 MB / 485 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009872/0.1228, allocations: 4.964 MB / 489.9 MB, free: 9.582 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002397/0.1252, allocations: 103.8 kB / 490 MB, free: 9.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008777/0.134, allocations: 5.027 MB / 495.1 MB, free: 4.438 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006527/0.1406, allocations: 2.544 MB / 497.6 MB, free: 1.883 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002272/0.1429, allocations: 1.08 MB / 498.7 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008805/0.1517, allocations: 6.828 MB / 0.4937 GB, free: 9.957 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006589/0.1583, allocations: 5.802 MB / 0.4993 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003655/0.162, allocations: 2.422 MB / 0.5017 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2067/0.3688, allocations: 3.237 MB / 0.5049 GB, free: 18.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002116/0.3709, allocations: 0.5075 MB / 0.5054 GB, free: 18.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005697/0.3766, allocations: 1.41 MB / 0.5067 GB, free: 18.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004515/0.3812, allocations: 3.048 MB / 0.5097 GB, free: 18.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006242/0.3874, allocations: 3.423 MB / 0.5131 GB, free: 17.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01377/0.4012, allocations: 10.3 MB / 0.5231 GB, free: 16.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.4013, allocations: 1.625 kB / 0.5231 GB, free: 16.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.4013, allocations: 3.891 kB / 0.5231 GB, free: 16.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004398/0.4017, allocations: 1.031 kB / 0.5231 GB, free: 16.03 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: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.02462/0.4264, allocations: 7.507 MB / 0.5305 GB, free: 11.55 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.4264, allocations: 7.531 kB / 0.5305 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01346/0.4399, allocations: 2.764 MB / 0.5332 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01097/0.4509, allocations: 4.283 MB / 0.5373 GB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002976/0.4512, allocations: 367.6 kB / 0.5377 GB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001874/0.4531, allocations: 487.3 kB / 0.5382 GB, free: 7.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0266/0.4797, allocations: 14.63 MB / 0.5524 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004828/0.4803, allocations: 67.09 kB / 0.5525 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00211/0.4824, allocations: 234.6 kB / 0.5527 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006018/0.4884, allocations: 2.825 MB / 0.5555 GB, free: 8.754 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0367/0.5252, allocations: 12.36 MB / 0.5676 GB, free: 12.65 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09228/0.6175, allocations: 58.41 MB / 0.6246 GB, free: 1.535 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01583/0.6334, allocations: 6.274 MB / 0.6307 GB, free: 11.11 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005011/0.6384, allocations: 3.707 MB / 0.6344 GB, free: 7.391 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0163/0.6548, allocations: 8.552 MB / 0.6427 GB, free: 14.74 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.654e-05/0.6549, allocations: 67.02 kB / 0.6428 GB, free: 14.67 MB / 494.1 MB Notification: Performance of pre-optimization done (n=236): time 5.189e-06/0.6549, allocations: 0 / 0.6428 GB, free: 14.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=278): time 0.09001/0.7449, allocations: 30.45 MB / 0.6725 GB, free: 72 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001728/0.7451, allocations: 242.8 kB / 0.6727 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01286/0.758, allocations: 6.747 MB / 0.6793 GB, free: 9.047 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007943/0.7588, allocations: 69.7 kB / 0.6794 GB, free: 8.973 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003508/0.7623, allocations: 4.499 MB / 0.6838 GB, free: 4.48 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001648/0.764, allocations: 1.067 MB / 0.6848 GB, free: 3.422 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002714/0.7667, allocations: 1.804 MB / 0.6866 GB, free: 1.605 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.7668, allocations: 309.1 kB / 0.6869 GB, free: 1.301 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005282/0.7721, allocations: 3.581 MB / 0.6904 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008482/0.7806, allocations: 8.687 MB / 0.6989 GB, free: 2.594 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2331/1.014, allocations: 13.19 MB / 0.7117 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000139/1.014, allocations: 50.34 kB / 0.7118 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.0315/1.045, allocations: 14.06 MB / 0.7255 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000201/1.046, allocations: 80.28 kB / 0.7256 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000324/1.046, allocations: 180.1 kB / 0.7258 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005659/1.052, allocations: 2.285 MB / 0.728 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00689/1.059, allocations: 2.02 MB / 0.73 GB, free: 163.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01509/1.074, allocations: 14.36 MB / 0.744 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008216/1.082, allocations: 0.4942 MB / 0.7445 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002007/1.084, allocations: 0.5185 MB / 0.745 GB, free: 154.4 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.007095/1.091, allocations: 3.047 MB / 0.748 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002109/1.093, allocations: 0.5556 MB / 0.7485 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01301/1.106, allocations: 7.085 MB / 0.7554 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-05/1.106, allocations: 33.5 kB / 0.7555 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.243e-05/1.106, allocations: 8 kB / 0.7555 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.853e-05/1.106, allocations: 14.72 kB / 0.7555 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03041/1.137, allocations: 15.01 MB / 0.7701 GB, free: 131.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.759e-05/1.137, allocations: 12 kB / 0.7701 GB, free: 131.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002211/1.139, allocations: 455.3 kB / 0.7706 GB, free: 131.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00463/1.144, allocations: 2.043 MB / 0.7726 GB, free: 129.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004694/1.144, allocations: 52.88 kB / 0.7726 GB, free: 129.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.014/1.158, allocations: 13.62 MB / 0.7859 GB, free: 115.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/1.158, allocations: 7.938 kB / 0.7859 GB, free: 115.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01531/1.174, allocations: 11.22 MB / 0.7969 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002382/1.176, allocations: 0.6342 MB / 0.7975 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001099/1.177, allocations: 52 kB / 0.7976 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002519/1.18, allocations: 197.1 kB / 0.7977 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000546/1.18, allocations: 177.6 kB / 0.7979 GB, free: 103 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001968/1.181, allocations: 71.98 kB / 0.798 GB, free: 102.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00686/1.187, allocations: 4.323 MB / 0.8022 GB, free: 98.64 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.112e-06/1.187, allocations: 0 / 0.8022 GB, free: 98.64 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008591/1.196, allocations: 1.61 MB / 0.8038 GB, free: 97.03 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.0006667/1.197, allocations: 203.5 kB / 0.804 GB, free: 96.83 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0139/1.211, allocations: 10.28 MB / 0.814 GB, free: 86.58 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/1.211, allocations: 0 / 0.814 GB, free: 86.58 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004744/1.215, allocations: 3.405 MB / 0.8173 GB, free: 83.15 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004865/1.22, allocations: 0.7551 MB / 0.8181 GB, free: 82.42 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02122/1.242, allocations: 15.15 MB / 0.8329 GB, free: 67.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004239/1.246, allocations: 4.623 MB / 0.8374 GB, free: 62.54 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006067/1.252, allocations: 2.787 MB / 0.8401 GB, free: 59.74 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00122/1.253, allocations: 383.4 kB / 0.8405 GB, free: 59.37 MB / 0.5294 GB Notification: Performance of SimCode: time 9.32e-07/1.253, allocations: 0 / 0.8405 GB, free: 59.37 MB / 0.5294 GB Notification: Performance of Templates: time 0.3393/1.592, allocations: 67.87 MB / 0.9067 GB, free: 167 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","/var/lib/jenkins/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