Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001087/0.001087, allocations: 99.36 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009946/0.0009946, allocations: 209.3 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2367/0.2367, allocations: 45.91 MB / 344 MB, free: 12.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002493/0.0002494, allocations: 11.98 kB / 417.9 MB, free: 20.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1421, allocations: 63.47 MB / 481.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03123/0.1734, allocations: 34.91 MB / 0.5042 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2999/0.4733, allocations: 8.719 MB / 0.5127 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01039/0.4838, allocations: 170.2 kB / 0.5129 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00686/0.4906, allocations: 1.724 MB / 0.5146 GB, free: 9.852 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01938/0.51, allocations: 5.124 MB / 0.5196 GB, free: 9.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002924/0.513, allocations: 495.2 kB / 0.52 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.04067/0.5537, allocations: 24.71 MB / 0.5442 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004306/0.558, allocations: 2.932 MB / 0.547 GB, free: 104 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001745/0.5598, allocations: 0.8188 MB / 0.5478 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00155/0.5614, allocations: 1.138 MB / 0.5489 GB, free: 14.47 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003894/0.5618, allocations: 112 kB / 0.549 GB, free: 14.36 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001829/0.5636, allocations: 0.8737 MB / 0.5499 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001276/0.5649, allocations: 1.319 MB / 0.5512 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007327/0.5657, allocations: 0.6861 MB / 0.5519 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004948/0.5706, allocations: 4.664 MB / 0.5564 GB, free: 8.137 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.5706, allocations: 0 / 0.5564 GB, free: 8.137 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.616e-06/0.5707, allocations: 0 / 0.5564 GB, free: 8.137 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001166/0.5708, allocations: 4 kB / 0.5564 GB, free: 8.133 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.008373/0.5792, allocations: 3.482 MB / 0.5598 GB, free: 4.895 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.5792, allocations: 8.031 kB / 0.5598 GB, free: 4.887 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0817/0.6609, allocations: 8.271 MB / 0.5679 GB, free: 13.01 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006941/0.6679, allocations: 2.34 MB / 0.5702 GB, free: 11.16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001601/0.6681, allocations: 179.5 kB / 0.5704 GB, free: 11.06 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007497/0.6689, allocations: 250 kB / 0.5706 GB, free: 10.85 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01543/0.6843, allocations: 8.113 MB / 0.5785 GB, free: 2.195 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001243/0.6845, allocations: 39.59 kB / 0.5786 GB, free: 2.156 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003695/0.6848, allocations: 117.5 kB / 0.5787 GB, free: 2.074 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002758/0.6876, allocations: 1.707 MB / 0.5803 GB, free: 384 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01298/0.7006, allocations: 6.804 MB / 0.587 GB, free: 9.566 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04236/0.743, allocations: 32.24 MB / 0.6185 GB, free: 8.5 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004765/0.7479, allocations: 2.424 MB / 0.6208 GB, free: 5.93 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000411/0.7483, allocations: 330.5 kB / 0.6211 GB, free: 5.555 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.7484, allocations: 42.56 kB / 0.6212 GB, free: 5.504 MB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 6.272e-06/0.7484, allocations: 0 / 0.6212 GB, free: 5.504 MB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.02265/0.771, allocations: 8.725 MB / 0.6297 GB, free: 12.62 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000139/0.7712, allocations: 196.5 kB / 0.6299 GB, free: 12.39 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006485/0.7777, allocations: 3.927 MB / 0.6337 GB, free: 8.477 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003112/0.778, allocations: 41.7 kB / 0.6338 GB, free: 8.43 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002349/0.7804, allocations: 2.793 MB / 0.6365 GB, free: 5.652 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007142/0.7811, allocations: 0.4934 MB / 0.637 GB, free: 5.164 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002023/0.7813, allocations: 104 kB / 0.6371 GB, free: 5.062 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003414/0.7817, allocations: 0.5373 MB / 0.6376 GB, free: 4.52 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002376/0.7841, allocations: 1.58 MB / 0.6391 GB, free: 2.934 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004876/0.789, allocations: 5.169 MB / 0.6442 GB, free: 11.94 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004356/0.7934, allocations: 2.814 MB / 0.6469 GB, free: 9.121 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.021e-05/0.7934, allocations: 37.09 kB / 0.647 GB, free: 9.086 MB / 494.1 MB Notification: Performance of matching and sorting (n=707) (initialization): time 0.01243/0.8059, allocations: 6.659 MB / 0.6535 GB, free: 2.422 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.976e-05/0.806, allocations: 60 kB / 0.6535 GB, free: 2.363 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001397/0.8061, allocations: 128 kB / 0.6537 GB, free: 2.238 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008955/0.807, allocations: 431 kB / 0.6541 GB, free: 1.816 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003805/0.8109, allocations: 1.232 MB / 0.6553 GB, free: 0.582 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003621/0.8145, allocations: 3.156 MB / 0.6584 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004235/0.8188, allocations: 294 kB / 0.6586 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008267/0.8196, allocations: 349.9 kB / 0.659 GB, free: 12.67 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.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 (672): * Single equations (assignments): 668 * 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%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003501/0.8231, allocations: 1.838 MB / 0.6608 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008843/0.824, allocations: 308 kB / 0.6611 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002744/0.8268, allocations: 1.467 MB / 0.6625 GB, free: 9.039 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.991e-05/0.8268, allocations: 16 kB / 0.6625 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/0.8268, allocations: 4 kB / 0.6625 GB, free: 9.02 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.625e-05/0.8268, allocations: 11.92 kB / 0.6625 GB, free: 9.008 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01026/0.8371, allocations: 4.995 MB / 0.6674 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.8371, allocations: 0 / 0.6674 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007782/0.8379, allocations: 163.8 kB / 0.6676 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006299/0.8386, allocations: 224.6 kB / 0.6678 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.596e-05/0.8387, allocations: 19.98 kB / 0.6678 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00283/0.8415, allocations: 2.574 MB / 0.6703 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.8415, allocations: 4.031 kB / 0.6703 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004467/0.846, allocations: 3.365 MB / 0.6736 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001193/0.8472, allocations: 384.8 kB / 0.674 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000322/0.8475, allocations: 16 kB / 0.674 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009993/0.8485, allocations: 54.44 kB / 0.674 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000179/0.8487, allocations: 64.47 kB / 0.6741 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.863e-05/0.8488, allocations: 33.2 kB / 0.6741 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004055/0.8529, allocations: 2.457 MB / 0.6765 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.41e-07/0.8529, allocations: 0 / 0.6765 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004713/0.8576, allocations: 0.8163 MB / 0.6773 GB, free: 9.637 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004161/0.858, allocations: 154.8 kB / 0.6775 GB, free: 9.48 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006161/0.8642, allocations: 3.828 MB / 0.6812 GB, free: 5.664 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.8643, allocations: 0 / 0.6812 GB, free: 5.664 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001382/0.8656, allocations: 0.9476 MB / 0.6821 GB, free: 4.707 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001904/0.8676, allocations: 356 kB / 0.6825 GB, free: 4.359 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01445/0.882, allocations: 8.541 MB / 0.6908 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003176/0.8853, allocations: 2.876 MB / 0.6936 GB, free: 8.879 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00448/0.8898, allocations: 1.715 MB / 0.6953 GB, free: 7.16 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007043/0.8905, allocations: 213 kB / 0.6955 GB, free: 6.953 MB / 0.5294 GB Notification: Performance of SimCode: time 1.092e-06/0.8905, allocations: 4 kB / 0.6955 GB, free: 6.949 MB / 0.5294 GB Notification: Performance of Templates: time 0.3139/1.204, allocations: 27.06 MB / 0.7219 GB, free: 186.2 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches