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.001193/0.001193, allocations: 110.4 kB / 17.78 MB, free: 5.27 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.001016/0.001016, allocations: 183.8 kB / 18.71 MB, free: 4.348 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.251/1.251, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.1955/0.1955, allocations: 44.19 MB / 336.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 63.91 kB / 470.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3461, allocations: 60.82 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01677/0.3629, allocations: 15.75 MB / 0.5343 GB, free: 8.156 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01215/0.3751, allocations: 4.945 MB / 0.5391 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003827/0.379, allocations: 107.2 kB / 0.5392 GB, free: 4.223 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009742/0.3887, allocations: 5.022 MB / 0.5441 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00983/0.3988, allocations: 2.553 MB / 0.5466 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003149/0.4019, allocations: 1.072 MB / 0.5477 GB, free: 14.27 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01082/0.4128, allocations: 6.845 MB / 0.5544 GB, free: 7.699 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008561/0.4214, allocations: 5.792 MB / 0.56 GB, free: 1.832 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005461/0.4269, allocations: 2.418 MB / 0.5624 GB, free: 15.41 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006316/0.4332, allocations: 3.248 MB / 0.5655 GB, free: 12.15 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00229/0.4356, allocations: 0.5078 MB / 0.566 GB, free: 11.64 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004525/0.4401, allocations: 1.416 MB / 0.5674 GB, free: 10.22 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004381/0.4445, allocations: 3.07 MB / 0.5704 GB, free: 7.145 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006575/0.4511, allocations: 3.422 MB / 0.5738 GB, free: 3.703 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01425/0.4654, allocations: 10.61 MB / 0.5841 GB, free: 9.059 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.4654, allocations: 0 / 0.5841 GB, free: 9.059 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4654, allocations: 0 / 0.5841 GB, free: 9.059 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004503/0.4659, allocations: 0 / 0.5841 GB, free: 9.059 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.02009/0.486, allocations: 7.514 MB / 0.5915 GB, free: 1.457 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.486, allocations: 8.031 kB / 0.5915 GB, free: 1.449 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01246/0.4985, allocations: 2.753 MB / 0.5942 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01088/0.5094, allocations: 4.378 MB / 0.5984 GB, free: 10.22 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003532/0.5098, allocations: 361.7 kB / 0.5988 GB, free: 9.863 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002016/0.5118, allocations: 491.6 kB / 0.5992 GB, free: 9.383 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02684/0.5387, allocations: 14.62 MB / 0.6135 GB, free: 9.746 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002223/0.539, allocations: 71.3 kB / 0.6136 GB, free: 9.676 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007038/0.5397, allocations: 231.8 kB / 0.6138 GB, free: 9.449 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005069/0.5448, allocations: 2.828 MB / 0.6166 GB, free: 6.613 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0248/0.5696, allocations: 12.35 MB / 0.6286 GB, free: 10.24 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06892/0.6385, allocations: 58.16 MB / 0.6854 GB, free: 14.58 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01531/0.6539, allocations: 6.275 MB / 0.6916 GB, free: 8.141 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004553/0.6585, allocations: 3.707 MB / 0.6952 GB, free: 4.414 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01336/0.6719, allocations: 8.563 MB / 0.7035 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.933e-05/0.672, allocations: 52.22 kB / 0.7036 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=236): time 6.172e-06/0.672, allocations: 4 kB / 0.7036 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of matching and sorting (n=278): time 0.3274/0.9994, allocations: 30.44 MB / 0.7333 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.9996, allocations: 251.8 kB / 0.7336 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00826/1.008, allocations: 6.745 MB / 0.7402 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005343/1.008, allocations: 68.59 kB / 0.7402 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001983/1.01, allocations: 4.498 MB / 0.7446 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009421/1.011, allocations: 1.069 MB / 0.7457 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001837/1.013, allocations: 1.799 MB / 0.7474 GB, free: 154 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.06e-05/1.013, allocations: 308.9 kB / 0.7477 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003977/1.017, allocations: 3.583 MB / 0.7512 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006119/1.023, allocations: 8.687 MB / 0.7597 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/1.034, allocations: 13.2 MB / 0.7726 GB, free: 126.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.549e-05/1.034, allocations: 52 kB / 0.7726 GB, free: 126.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.01942/1.053, allocations: 14.04 MB / 0.7863 GB, free: 112.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.204e-05/1.053, allocations: 80 kB / 0.7864 GB, free: 112.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001474/1.054, allocations: 180.9 kB / 0.7866 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004985/1.059, allocations: 2.292 MB / 0.7888 GB, free: 110 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006218/1.065, allocations: 2.012 MB / 0.7908 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01395/1.079, allocations: 14.35 MB / 0.8048 GB, free: 93.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007778/1.087, allocations: 0.5032 MB / 0.8053 GB, free: 92.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001204/1.088, allocations: 0.5155 MB / 0.8058 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.004524/1.092, allocations: 3.045 MB / 0.8088 GB, free: 89.32 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001159/1.093, allocations: 0.5553 MB / 0.8093 GB, free: 88.76 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01033/1.104, allocations: 7.087 MB / 0.8162 GB, free: 81.65 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.115e-05/1.104, allocations: 32.3 kB / 0.8163 GB, free: 81.62 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.998e-05/1.104, allocations: 8 kB / 0.8163 GB, free: 81.62 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.798e-05/1.104, allocations: 15.95 kB / 0.8163 GB, free: 81.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02302/1.127, allocations: 14.81 MB / 0.8307 GB, free: 66.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.261e-05/1.127, allocations: 4.469 kB / 0.8308 GB, free: 66.74 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00209/1.129, allocations: 463.2 kB / 0.8312 GB, free: 66.29 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004587/1.134, allocations: 2.033 MB / 0.8332 GB, free: 64.25 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003228/1.134, allocations: 59.98 kB / 0.8332 GB, free: 64.19 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01412/1.148, allocations: 13.71 MB / 0.8466 GB, free: 50.21 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.289e-06/1.148, allocations: 4 kB / 0.8466 GB, free: 50.21 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01431/1.163, allocations: 11.25 MB / 0.8576 GB, free: 38.81 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00236/1.165, allocations: 0.6342 MB / 0.8582 GB, free: 38.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000768/1.166, allocations: 52 kB / 0.8583 GB, free: 38.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002362/1.168, allocations: 203.3 kB / 0.8585 GB, free: 37.91 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005347/1.169, allocations: 173.6 kB / 0.8586 GB, free: 37.74 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001938/1.169, allocations: 75.98 kB / 0.8587 GB, free: 37.66 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005538/1.174, allocations: 4.317 MB / 0.8629 GB, free: 33.36 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/1.174, allocations: 0 / 0.8629 GB, free: 33.36 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007805/1.182, allocations: 1.616 MB / 0.8645 GB, free: 31.75 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.0005635/1.183, allocations: 188.1 kB / 0.8647 GB, free: 31.56 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0112/1.194, allocations: 8.735 MB / 0.8732 GB, free: 22.82 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/1.194, allocations: 4.062 kB / 0.8732 GB, free: 22.82 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004706/1.199, allocations: 3.41 MB / 0.8765 GB, free: 19.39 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004292/1.203, allocations: 0.7443 MB / 0.8773 GB, free: 18.65 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0204/1.223, allocations: 14.97 MB / 0.8919 GB, free: 3.602 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004622/1.228, allocations: 4.627 MB / 0.8964 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.006526/1.235, allocations: 2.783 MB / 0.8991 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001431/1.236, allocations: 387.3 kB / 0.8995 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of SimCode: time 2.905e-06/1.236, allocations: 4 kB / 0.8995 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of Templates: time 0.3995/1.636, allocations: 62.95 MB / 0.961 GB, free: 192.4 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/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