Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.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.Parts.Rotor1D.Rotor1D_2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008579/0.000858, allocations: 99.23 kB / 17.01 MB, free: 6.082 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.0009018/0.0009017, allocations: 182.2 kB / 17.89 MB, free: 5.664 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.413/1.413, allocations: 223.3 MB / 241.9 MB, free: 228 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2015/0.2015, allocations: 44.25 MB / 337.3 MB, free: 2.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003215/0.0003216, allocations: 8 kB / 409.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.126, allocations: 61.94 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.04348/0.1695, allocations: 44.97 MB / 0.5045 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2756/0.4452, allocations: 9.729 MB / 0.514 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01235/0.4576, allocations: 209.3 kB / 0.5142 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008829/0.4665, allocations: 2.321 MB / 0.5164 GB, free: 9.578 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02472/0.4912, allocations: 6.914 MB / 0.5232 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004401/0.4956, allocations: 0.504 MB / 0.5237 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008092/0.5038, allocations: 4.17 MB / 0.5278 GB, free: 6.055 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008237/0.512, allocations: 4.456 MB / 0.5321 GB, free: 4.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003249/0.5153, allocations: 1.163 MB / 0.5332 GB, free: 4.273 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003926/0.5193, allocations: 1.817 MB / 0.535 GB, free: 3.664 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001122/0.5204, allocations: 131.6 kB / 0.5351 GB, free: 3.664 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002611/0.5231, allocations: 0.7902 MB / 0.5359 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00247/0.5256, allocations: 1.586 MB / 0.5375 GB, free: 2.887 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001746/0.5273, allocations: 0.7954 MB / 0.5382 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006338/0.5337, allocations: 5.278 MB / 0.5434 GB, free: 0 / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.5337, allocations: 128 / 0.5434 GB, free: 0 / 382.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.5337, allocations: 64 / 0.5434 GB, free: 0 / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003196/0.534, allocations: 0 / 0.5434 GB, free: 0 / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.01777/0.5518, allocations: 4.289 MB / 0.5476 GB, free: 12.85 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.5519, allocations: 12.03 kB / 0.5476 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007407/0.5593, allocations: 1.9 MB / 0.5495 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006989/0.5663, allocations: 2.199 MB / 0.5516 GB, free: 9.258 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002824/0.5666, allocations: 230.8 kB / 0.5518 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001999/0.5687, allocations: 304.1 kB / 0.5521 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02654/0.5952, allocations: 10.22 MB / 0.5621 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002805/0.5956, allocations: 44.95 kB / 0.5621 GB, free: 0.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001648/0.5972, allocations: 141.5 kB / 0.5623 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003462/0.6007, allocations: 1.871 MB / 0.5641 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02144/0.6222, allocations: 9.169 MB / 0.5731 GB, free: 6.977 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05918/0.6814, allocations: 37.59 MB / 0.6098 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01262/0.6941, allocations: 3.71 MB / 0.6134 GB, free: 12.65 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002525/0.6966, allocations: 1.706 MB / 0.615 GB, free: 10.94 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009876/0.6977, allocations: 0.6789 MB / 0.6157 GB, free: 10.16 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.838e-05/0.6977, allocations: 55.06 kB / 0.6158 GB, free: 10.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=130): time 5.661e-06/0.6977, allocations: 0 / 0.6158 GB, free: 10.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=136): time 0.04043/0.7382, allocations: 12.93 MB / 0.6284 GB, free: 13.05 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.7383, allocations: 145.2 kB / 0.6285 GB, free: 12.88 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00622/0.7446, allocations: 3.952 MB / 0.6324 GB, free: 8.953 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003802/0.745, allocations: 45.7 kB / 0.6324 GB, free: 8.902 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002531/0.7475, allocations: 3.005 MB / 0.6354 GB, free: 5.914 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000969/0.7485, allocations: 0.5534 MB / 0.6359 GB, free: 5.367 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002468/0.7488, allocations: 108 kB / 0.636 GB, free: 5.262 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003979/0.7492, allocations: 0.5452 MB / 0.6365 GB, free: 4.711 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003159/0.7523, allocations: 1.928 MB / 0.6384 GB, free: 2.777 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005657/0.758, allocations: 5.504 MB / 0.6438 GB, free: 11.46 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005028/0.7631, allocations: 3.173 MB / 0.6469 GB, free: 8.289 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.464e-05/0.7632, allocations: 40 kB / 0.6469 GB, free: 8.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=723) (initialization): time 0.01516/0.7783, allocations: 7.916 MB / 0.6547 GB, free: 340 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.884e-05/0.7785, allocations: 65.7 kB / 0.6547 GB, free: 276 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001379/0.7786, allocations: 128 kB / 0.6549 GB, free: 148 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002315/0.7809, allocations: 0.9209 MB / 0.6557 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004095/0.785, allocations: 1.294 MB / 0.657 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006664/0.7917, allocations: 4.858 MB / 0.6618 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004586/0.7963, allocations: 299.6 kB / 0.662 GB, free: 8.645 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007771/0.7971, allocations: 362.8 kB / 0.6624 GB, free: 8.293 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (684): * Single equations (assignments): 680 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003893/0.801, allocations: 1.994 MB / 0.6643 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00068/0.8017, allocations: 335.6 kB / 0.6647 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005322/0.807, allocations: 2.79 MB / 0.6674 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.877e-05/0.8071, allocations: 12 kB / 0.6674 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.8071, allocations: 4 kB / 0.6674 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.8071, allocations: 7.984 kB / 0.6674 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01305/0.8202, allocations: 7.273 MB / 0.6745 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/0.8202, allocations: 96 / 0.6745 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/0.8214, allocations: 267.6 kB / 0.6748 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001976/0.8234, allocations: 0.7108 MB / 0.6755 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001307/0.8235, allocations: 31.97 kB / 0.6755 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005761/0.8293, allocations: 4.425 MB / 0.6798 GB, free: 6.238 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/0.8293, allocations: 4.031 kB / 0.6798 GB, free: 6.234 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008032/0.8374, allocations: 5.134 MB / 0.6848 GB, free: 1.066 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001262/0.8387, allocations: 392.7 kB / 0.6852 GB, free: 0.6602 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004036/0.8391, allocations: 25.73 kB / 0.6852 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/0.8403, allocations: 90.36 kB / 0.6853 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002678/0.8406, allocations: 92.45 kB / 0.6854 GB, free: 472 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/0.8407, allocations: 47.97 kB / 0.6854 GB, free: 424 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004303/0.845, allocations: 2.465 MB / 0.6879 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.9e-07/0.845, allocations: 288 / 0.6879 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005404/0.8505, allocations: 0.8986 MB / 0.6887 GB, free: 13.07 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.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 (104): * Single equations (assignments): 100 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004646/0.8509, allocations: 149.7 kB / 0.6889 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008144/0.8591, allocations: 4.61 MB / 0.6934 GB, free: 8.324 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/0.8591, allocations: 0 / 0.6934 GB, free: 8.324 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002007/0.8612, allocations: 1.364 MB / 0.6947 GB, free: 6.949 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002789/0.864, allocations: 403.7 kB / 0.6951 GB, free: 6.555 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2805/1.144, allocations: 10.01 MB / 0.7049 GB, free: 179.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004422/1.149, allocations: 3.098 MB / 0.7079 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005262/1.154, allocations: 1.798 MB / 0.7097 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008625/1.155, allocations: 252.4 kB / 0.7099 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of SimCode: time 9.82e-07/1.155, allocations: 0 / 0.7099 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of Templates: time 0.06664/1.222, allocations: 32.91 MB / 0.742 GB, free: 162.8 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/Rotor1D_2/Rotor1D_2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches