Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001391/0.001391, allocations: 179.2 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.615/1.615, allocations: 205.4 MB / 222.5 MB, free: 9.098 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008066/0.0008066, allocations: 99.88 kB / 270.9 MB, free: 8.285 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3317/0.3317, allocations: 43.57 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004053/0.0004054, allocations: 8 kB / 431.4 MB, free: 6.141 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1396, allocations: 58.85 MB / 490.2 MB, free: 11.21 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.3042/0.4439, allocations: 37.58 MB / 0.5154 GB, free: 23.89 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02397/0.4679, allocations: 8.483 MB / 0.5237 GB, free: 18.16 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009419/0.4774, allocations: 170.8 kB / 0.5239 GB, free: 18.13 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006869/0.4843, allocations: 1.927 MB / 0.5258 GB, free: 17.45 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0178/0.5021, allocations: 5.885 MB / 0.5315 GB, free: 15 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002905/0.505, allocations: 0.4992 MB / 0.532 GB, free: 14.81 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.02263/0.5277, allocations: 18.35 MB / 0.5499 GB, free: 10.17 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00556/0.5333, allocations: 3.029 MB / 0.5529 GB, free: 8.473 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002609/0.5359, allocations: 1.076 MB / 0.5539 GB, free: 7.938 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002049/0.538, allocations: 1.773 MB / 0.5557 GB, free: 7.059 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004194/0.5384, allocations: 126.1 kB / 0.5558 GB, free: 7.059 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00161/0.54, allocations: 0.9077 MB / 0.5567 GB, free: 6.676 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009665/0.541, allocations: 1.517 MB / 0.5582 GB, free: 5.176 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005018/0.5415, allocations: 0.7337 MB / 0.5589 GB, free: 4.434 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00324/0.5448, allocations: 4.867 MB / 0.5636 GB, free: 15.55 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.5448, allocations: 0 / 0.5636 GB, free: 15.55 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.5448, allocations: 4 kB / 0.5636 GB, free: 15.55 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.962e-05/0.5449, allocations: 0 / 0.5636 GB, free: 15.55 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.005989/0.5509, allocations: 3.505 MB / 0.5671 GB, free: 11.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.5509, allocations: 12.03 kB / 0.5671 GB, free: 11.97 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01468/0.5656, allocations: 2.499 MB / 0.5695 GB, free: 9.461 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005265/0.5709, allocations: 2.378 MB / 0.5718 GB, free: 7.031 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001416/0.5711, allocations: 200.9 kB / 0.572 GB, free: 6.832 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005562/0.5717, allocations: 255.9 kB / 0.5723 GB, free: 6.582 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01489/0.5866, allocations: 8.753 MB / 0.5808 GB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001041/0.5867, allocations: 47.58 kB / 0.5809 GB, free: 13.13 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003686/0.5871, allocations: 127.9 kB / 0.581 GB, free: 13 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002812/0.5899, allocations: 1.833 MB / 0.5828 GB, free: 11.17 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01269/0.6026, allocations: 7.441 MB / 0.59 GB, free: 3.727 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0399/0.6425, allocations: 34.31 MB / 0.6235 GB, free: 408 kB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005043/0.6476, allocations: 2.587 MB / 0.6261 GB, free: 13.67 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001657/0.6493, allocations: 1.185 MB / 0.6272 GB, free: 12.47 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003658/0.6497, allocations: 319.8 kB / 0.6275 GB, free: 12.1 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.162e-05/0.6498, allocations: 51.05 kB / 0.6276 GB, free: 12.04 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 3.937e-06/0.6498, allocations: 4 kB / 0.6276 GB, free: 12.04 MB / 458.7 MB Notification: Performance of matching and sorting (n=133): time 0.02569/0.6755, allocations: 9.785 MB / 0.6371 GB, free: 2.133 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/0.6757, allocations: 200.6 kB / 0.6373 GB, free: 1.895 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007299/0.683, allocations: 3.944 MB / 0.6412 GB, free: 13.96 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001396/0.6831, allocations: 41.7 kB / 0.6412 GB, free: 13.91 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002218/0.6854, allocations: 2.948 MB / 0.6441 GB, free: 10.93 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006022/0.686, allocations: 0.5442 MB / 0.6446 GB, free: 10.38 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003065/0.6863, allocations: 116 kB / 0.6447 GB, free: 10.27 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.00039/0.6867, allocations: 0.5501 MB / 0.6453 GB, free: 9.707 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002858/0.6896, allocations: 1.784 MB / 0.647 GB, free: 7.918 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005419/0.695, allocations: 5.605 MB / 0.6525 GB, free: 396 kB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004695/0.6997, allocations: 3.095 MB / 0.6555 GB, free: 13.29 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001251/0.6998, allocations: 40.19 kB / 0.6556 GB, free: 13.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01332/0.7132, allocations: 7.545 MB / 0.6629 GB, free: 5.695 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001217/0.7133, allocations: 67.95 kB / 0.663 GB, free: 5.629 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001999/0.7135, allocations: 136 kB / 0.6631 GB, free: 5.496 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001708/0.7152, allocations: 0.688 MB / 0.6638 GB, free: 4.805 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004011/0.7193, allocations: 1.357 MB / 0.6651 GB, free: 3.445 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004608/0.7239, allocations: 3.797 MB / 0.6688 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004346/0.7283, allocations: 319.5 kB / 0.6691 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006958/0.729, allocations: 372 kB / 0.6695 GB, free: 14.84 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (735): * Single equations (assignments): 731 * 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 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003641/0.7326, allocations: 1.943 MB / 0.6714 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007509/0.7334, allocations: 327.8 kB / 0.6717 GB, free: 12.56 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003985/0.7374, allocations: 2.061 MB / 0.6737 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.291e-05/0.7374, allocations: 19.95 kB / 0.6737 GB, free: 10.46 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/0.7375, allocations: 7.984 kB / 0.6737 GB, free: 10.45 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.7375, allocations: 3.984 kB / 0.6737 GB, free: 10.45 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01156/0.749, allocations: 5.802 MB / 0.6794 GB, free: 4.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/0.7491, allocations: 4 kB / 0.6794 GB, free: 4.566 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009089/0.75, allocations: 187.7 kB / 0.6796 GB, free: 4.383 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001345/0.7514, allocations: 488.4 kB / 0.6801 GB, free: 3.902 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001286/0.7515, allocations: 27.98 kB / 0.6801 GB, free: 3.875 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003941/0.7555, allocations: 3.221 MB / 0.6832 GB, free: 0.5234 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.7555, allocations: 0 / 0.6832 GB, free: 0.5234 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2897/1.045, allocations: 3.978 MB / 0.6871 GB, free: 146.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001652/1.047, allocations: 0.5441 MB / 0.6876 GB, free: 146.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004183/1.047, allocations: 20.53 kB / 0.6877 GB, free: 146.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/1.049, allocations: 68.33 kB / 0.6877 GB, free: 146.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002562/1.049, allocations: 75.55 kB / 0.6878 GB, free: 146.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/1.049, allocations: 37.12 kB / 0.6878 GB, free: 146.7 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005302/1.054, allocations: 2.455 MB / 0.6902 GB, free: 146.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.01e-07/1.054, allocations: 0 / 0.6902 GB, free: 146.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005809/1.06, allocations: 0.8814 MB / 0.6911 GB, free: 146.5 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (102): * Single equations (assignments): 98 * 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.0003917/1.061, allocations: 152.7 kB / 0.6912 GB, free: 146.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006629/1.067, allocations: 4.27 MB / 0.6954 GB, free: 145.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/1.067, allocations: 0 / 0.6954 GB, free: 145.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001339/1.069, allocations: 1.074 MB / 0.6965 GB, free: 145 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002401/1.071, allocations: 361.9 kB / 0.6968 GB, free: 144.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01374/1.085, allocations: 9.695 MB / 0.7063 GB, free: 140 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00261/1.087, allocations: 2.944 MB / 0.7091 GB, free: 138.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009347/1.088, allocations: 272.5 kB / 0.7094 GB, free: 138.8 MB / 0.4948 GB Notification: Performance of SimCode: time 1.453e-06/1.088, allocations: 3.844 kB / 0.7094 GB, free: 138.8 MB / 0.4948 GB Notification: Performance of Templates: time 0.09045/1.179, allocations: 66.94 MB / 0.7748 GB, free: 97.14 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches