Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.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.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 97.25 kB / 16.99 MB, free: 5.941 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.001973/0.001973, allocations: 180 kB / 17.87 MB, free: 5.609 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.472/1.472, allocations: 223.2 MB / 241.8 MB, free: 384 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.2034/0.2034, allocations: 44.23 MB / 337.1 MB, free: 2.91 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003089/0.0003089, allocations: 8 kB / 409.5 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1286, allocations: 61.93 MB / 471.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03534/0.164, allocations: 34.89 MB / 0.4945 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02156/0.1856, allocations: 8.706 MB / 0.503 GB, free: 2.047 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009064/0.1947, allocations: 171.6 kB / 0.5031 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006822/0.2016, allocations: 1.723 MB / 0.5048 GB, free: 152 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.3272/0.5288, allocations: 5.129 MB / 0.5098 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003345/0.5322, allocations: 491.2 kB / 0.5103 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0383/0.5705, allocations: 24.67 MB / 0.5344 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004554/0.5751, allocations: 2.939 MB / 0.5373 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001848/0.577, allocations: 0.8243 MB / 0.5381 GB, free: 5.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001856/0.5789, allocations: 1.127 MB / 0.5392 GB, free: 4.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006736/0.5796, allocations: 116 kB / 0.5393 GB, free: 4.797 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002038/0.5816, allocations: 0.8912 MB / 0.5402 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001538/0.5832, allocations: 1.31 MB / 0.5414 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001197/0.5844, allocations: 0.6853 MB / 0.5421 GB, free: 2.926 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005679/0.5901, allocations: 4.674 MB / 0.5467 GB, free: 14.88 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.5902, allocations: 4 kB / 0.5467 GB, free: 14.87 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5902, allocations: 0 / 0.5467 GB, free: 14.87 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002659/0.5904, allocations: 0 / 0.5467 GB, free: 14.87 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.01554/0.606, allocations: 3.478 MB / 0.5501 GB, free: 11.64 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.081e-05/0.6061, allocations: 12.56 kB / 0.5501 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.118/0.7241, allocations: 8.265 MB / 0.5581 GB, free: 3.758 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008169/0.7324, allocations: 2.334 MB / 0.5604 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002311/0.7326, allocations: 187.1 kB / 0.5606 GB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001353/0.734, allocations: 251.2 kB / 0.5608 GB, free: 1.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01674/0.7508, allocations: 8.108 MB / 0.5688 GB, free: 11.3 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002602/0.7511, allocations: 36.59 kB / 0.5688 GB, free: 11.28 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001225/0.7523, allocations: 120.4 kB / 0.5689 GB, free: 11.24 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003468/0.7558, allocations: 1.702 MB / 0.5706 GB, free: 9.824 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01646/0.7723, allocations: 6.813 MB / 0.5772 GB, free: 5.102 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0416/0.814, allocations: 32.24 MB / 0.6087 GB, free: 4.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004917/0.8189, allocations: 2.436 MB / 0.6111 GB, free: 2.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004538/0.8195, allocations: 322.7 kB / 0.6114 GB, free: 1.973 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.944e-05/0.8195, allocations: 45.56 kB / 0.6114 GB, free: 1.922 MB / 446.1 MB Notification: Performance of pre-optimization done (n=104): time 4.158e-06/0.8195, allocations: 4 kB / 0.6114 GB, free: 1.918 MB / 446.1 MB Notification: Performance of matching and sorting (n=118): time 0.02306/0.8426, allocations: 8.729 MB / 0.62 GB, free: 9.059 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.8427, allocations: 191.6 kB / 0.6201 GB, free: 8.832 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006042/0.8488, allocations: 3.925 MB / 0.624 GB, free: 4.918 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000313/0.8491, allocations: 41.7 kB / 0.624 GB, free: 4.871 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00234/0.8515, allocations: 2.801 MB / 0.6268 GB, free: 2.086 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007278/0.8522, allocations: 0.4892 MB / 0.6272 GB, free: 1.602 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000203/0.8525, allocations: 104 kB / 0.6273 GB, free: 1.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003511/0.8528, allocations: 0.5334 MB / 0.6279 GB, free: 0.9609 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002381/0.8552, allocations: 1.58 MB / 0.6294 GB, free: 15.38 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004683/0.8599, allocations: 5.168 MB / 0.6344 GB, free: 8.449 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005335/0.8653, allocations: 2.811 MB / 0.6372 GB, free: 5.68 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.784e-05/0.8654, allocations: 36 kB / 0.6372 GB, free: 5.645 MB / 478.1 MB Notification: Performance of matching and sorting (n=707) (initialization): time 0.01193/0.8773, allocations: 6.657 MB / 0.6437 GB, free: 14.98 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.516e-05/0.8775, allocations: 61.88 kB / 0.6438 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001662/0.8776, allocations: 128 kB / 0.6439 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009859/0.8786, allocations: 426.4 kB / 0.6443 GB, free: 14.38 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003895/0.8825, allocations: 1.248 MB / 0.6455 GB, free: 13.13 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004092/0.8866, allocations: 3.153 MB / 0.6486 GB, free: 9.855 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00501/0.8917, allocations: 291.4 kB / 0.6489 GB, free: 9.57 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007867/0.8925, allocations: 344 kB / 0.6492 GB, free: 9.234 MB / 494.1 MB 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.003675/0.8962, allocations: 1.842 MB / 0.651 GB, free: 7.379 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000695/0.8969, allocations: 315.8 kB / 0.6513 GB, free: 7.066 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002572/0.8995, allocations: 1.469 MB / 0.6528 GB, free: 5.59 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.077e-05/0.8995, allocations: 16 kB / 0.6528 GB, free: 5.574 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.8995, allocations: 0 / 0.6528 GB, free: 5.574 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.709e-05/0.8995, allocations: 11.97 kB / 0.6528 GB, free: 5.562 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009533/0.9091, allocations: 4.994 MB / 0.6577 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/0.9091, allocations: 4 kB / 0.6577 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007715/0.9099, allocations: 161.4 kB / 0.6578 GB, free: 376 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006839/0.9106, allocations: 224.6 kB / 0.658 GB, free: 148 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.627e-05/0.9107, allocations: 27.42 kB / 0.6581 GB, free: 124 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002864/0.9136, allocations: 2.571 MB / 0.6606 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.9136, allocations: 96 / 0.6606 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004527/0.9181, allocations: 3.362 MB / 0.6638 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001137/0.9193, allocations: 384.7 kB / 0.6642 GB, free: 9.613 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000321/0.9196, allocations: 20 kB / 0.6642 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009616/0.9206, allocations: 51.94 kB / 0.6643 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001841/0.9208, allocations: 71.88 kB / 0.6643 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/0.9209, allocations: 28 kB / 0.6644 GB, free: 9.449 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003938/0.9249, allocations: 2.453 MB / 0.6668 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.91e-07/0.9249, allocations: 0 / 0.6668 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004927/0.9298, allocations: 0.8241 MB / 0.6676 GB, free: 6.188 MB / 0.4981 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.0004561/0.9303, allocations: 168.4 kB / 0.6677 GB, free: 6.023 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006831/0.9371, allocations: 3.826 MB / 0.6715 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/0.9372, allocations: 0 / 0.6715 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001449/0.9386, allocations: 0.9464 MB / 0.6724 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002121/0.9408, allocations: 360.6 kB / 0.6727 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01417/0.955, allocations: 8.542 MB / 0.6811 GB, free: 8.328 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003115/0.9581, allocations: 2.876 MB / 0.6839 GB, free: 5.434 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004196/0.9623, allocations: 1.719 MB / 0.6856 GB, free: 3.711 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005868/0.963, allocations: 215.4 kB / 0.6858 GB, free: 3.5 MB / 0.5137 GB Notification: Performance of SimCode: time 1.773e-06/0.963, allocations: 0 / 0.6858 GB, free: 3.5 MB / 0.5137 GB Notification: Performance of Templates: time 0.3087/1.272, allocations: 27.16 MB / 0.7123 GB, free: 180.8 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches