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.001369/0.001369, allocations: 109.4 kB / 17.86 MB, free: 5.668 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.001461/0.001461, allocations: 194 kB / 18.78 MB, free: 4.758 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.475/1.475, allocations: 222.9 MB / 242.5 MB, free: 15.52 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.2111/0.2111, allocations: 44.18 MB / 336.8 MB, free: 3.035 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 63.27 kB / 408.4 MB, free: 27.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1238, allocations: 60.82 MB / 469.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3371/0.461, allocations: 89.17 MB / 0.5453 GB, free: 1.031 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04828/0.5093, allocations: 17.11 MB / 0.562 GB, free: 4.688 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02493/0.5343, allocations: 391.3 kB / 0.5623 GB, free: 4.629 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01031/0.5446, allocations: 5.042 MB / 0.5673 GB, free: 316 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007797/0.5525, allocations: 2.399 MB / 0.5696 GB, free: 13.9 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003631/0.5562, allocations: 0.9908 MB / 0.5706 GB, free: 12.91 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01277/0.569, allocations: 10.05 MB / 0.5804 GB, free: 2.844 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008865/0.5779, allocations: 5.735 MB / 0.586 GB, free: 13.05 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004622/0.5826, allocations: 2.157 MB / 0.5881 GB, free: 10.89 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005712/0.5883, allocations: 3.497 MB / 0.5915 GB, free: 7.383 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002001/0.5904, allocations: 376 kB / 0.5919 GB, free: 7.016 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004167/0.5946, allocations: 1.342 MB / 0.5932 GB, free: 5.672 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004448/0.5991, allocations: 2.949 MB / 0.5961 GB, free: 2.715 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006565/0.6057, allocations: 3.304 MB / 0.5993 GB, free: 15.39 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01021/0.6159, allocations: 8.369 MB / 0.6075 GB, free: 7.004 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.616, allocations: 0 / 0.6075 GB, free: 7.004 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.616, allocations: 0 / 0.6075 GB, free: 7.004 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004627/0.6164, allocations: 0 / 0.6075 GB, free: 7.004 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.01926/0.6357, allocations: 7.511 MB / 0.6148 GB, free: 15.4 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.6358, allocations: 8.031 kB / 0.6148 GB, free: 15.39 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01336/0.6492, allocations: 2.761 MB / 0.6175 GB, free: 12.62 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01181/0.661, allocations: 4.281 MB / 0.6217 GB, free: 8.254 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003818/0.6614, allocations: 365.8 kB / 0.622 GB, free: 7.895 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002077/0.6635, allocations: 495.5 kB / 0.6225 GB, free: 7.41 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04292/0.7065, allocations: 14.62 MB / 0.6368 GB, free: 7.773 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004311/0.707, allocations: 67.31 kB / 0.6368 GB, free: 7.707 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002436/0.7094, allocations: 231.8 kB / 0.6371 GB, free: 7.48 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007961/0.7174, allocations: 2.828 MB / 0.6398 GB, free: 4.648 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03551/0.753, allocations: 12.35 MB / 0.6519 GB, free: 8.27 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.369/1.122, allocations: 58.4 MB / 0.7089 GB, free: 176.4 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0166/1.139, allocations: 6.285 MB / 0.7151 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005811/1.145, allocations: 3.708 MB / 0.7187 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01598/1.161, allocations: 8.555 MB / 0.727 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.419e-05/1.161, allocations: 60 kB / 0.7271 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 7.514e-06/1.161, allocations: 0 / 0.7271 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.08046/1.241, allocations: 30.44 MB / 0.7568 GB, free: 155.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.817e-05/1.241, allocations: 243.3 kB / 0.7571 GB, free: 155.6 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01039/1.252, allocations: 6.751 MB / 0.7636 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007744/1.252, allocations: 65.7 kB / 0.7637 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002755/1.255, allocations: 4.498 MB / 0.7681 GB, free: 144.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001563/1.257, allocations: 1.066 MB / 0.7691 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002825/1.26, allocations: 1.796 MB / 0.7709 GB, free: 141.4 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.738e-05/1.26, allocations: 308.6 kB / 0.7712 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004549/1.264, allocations: 3.581 MB / 0.7747 GB, free: 137.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00701/1.271, allocations: 8.686 MB / 0.7832 GB, free: 126.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01212/1.284, allocations: 13.19 MB / 0.7961 GB, free: 111 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001681/1.284, allocations: 52 kB / 0.7961 GB, free: 111 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.02561/1.309, allocations: 14.06 MB / 0.8098 GB, free: 96.91 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001195/1.31, allocations: 80.22 kB / 0.8099 GB, free: 96.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001879/1.31, allocations: 184 kB / 0.8101 GB, free: 96.65 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005337/1.315, allocations: 2.276 MB / 0.8123 GB, free: 94.37 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006999/1.322, allocations: 2.02 MB / 0.8143 GB, free: 92.34 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01552/1.338, allocations: 13.42 MB / 0.8274 GB, free: 78.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007641/1.345, allocations: 0.5104 MB / 0.8279 GB, free: 78.16 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001674/1.347, allocations: 0.5195 MB / 0.8284 GB, free: 77.64 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.005281/1.352, allocations: 3.04 MB / 0.8314 GB, free: 74.59 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001216/1.354, allocations: 0.5553 MB / 0.8319 GB, free: 74.03 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01131/1.365, allocations: 7.091 MB / 0.8388 GB, free: 66.91 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.036e-05/1.365, allocations: 35.94 kB / 0.8389 GB, free: 66.88 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.813e-05/1.365, allocations: 11.75 kB / 0.8389 GB, free: 66.87 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.044e-05/1.365, allocations: 15.95 kB / 0.8389 GB, free: 66.86 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.026/1.391, allocations: 15 MB / 0.8535 GB, free: 51.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.388e-05/1.391, allocations: 7.984 kB / 0.8535 GB, free: 51.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002242/1.393, allocations: 459.3 kB / 0.854 GB, free: 51.35 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004905/1.398, allocations: 2.038 MB / 0.856 GB, free: 49.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007928/1.399, allocations: 55.66 kB / 0.856 GB, free: 49.25 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01545/1.415, allocations: 12.68 MB / 0.8684 GB, free: 36.33 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/1.415, allocations: 4 kB / 0.8684 GB, free: 36.32 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01559/1.43, allocations: 11.22 MB / 0.8794 GB, free: 24.95 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001891/1.432, allocations: 0.6419 MB / 0.88 GB, free: 24.29 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001616/1.434, allocations: 52 kB / 0.88 GB, free: 24.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003041/1.437, allocations: 203.5 kB / 0.8802 GB, free: 24.04 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009836/1.438, allocations: 169.6 kB / 0.8804 GB, free: 23.88 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002966/1.438, allocations: 75.98 kB / 0.8805 GB, free: 23.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006595/1.445, allocations: 4.321 MB / 0.8847 GB, free: 19.49 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.01e-07/1.445, allocations: 0 / 0.8847 GB, free: 19.49 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00836/1.453, allocations: 1.608 MB / 0.8863 GB, free: 17.89 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.0008121/1.454, allocations: 197.3 kB / 0.8864 GB, free: 17.69 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01188/1.466, allocations: 8.691 MB / 0.8949 GB, free: 8.996 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/1.466, allocations: 4.062 kB / 0.8949 GB, free: 8.992 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005293/1.471, allocations: 3.4 MB / 0.8983 GB, free: 5.566 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005958/1.477, allocations: 0.716 MB / 0.899 GB, free: 4.855 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2512/1.729, allocations: 18.55 MB / 0.9171 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008334/1.737, allocations: 4.609 MB / 0.9216 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001982/1.739, allocations: 446.7 kB / 0.922 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of SimCode: time 1.573e-06/1.739, allocations: 3.875 kB / 0.922 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of Templates: time 0.1556/1.895, allocations: 145.1 MB / 1.064 GB, free: 35.11 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