Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.001429/0.001429, allocations: 183 kB / 16.63 MB, free: 5.129 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.337/1.337, allocations: 205.1 MB / 222.5 MB, free: 8.469 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.0009851/0.0009849, allocations: 106.3 kB / 269.9 MB, free: 8.418 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.3144/0.3144, allocations: 43.49 MB / 360.7 MB, free: 51.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 55.91 kB / 429.2 MB, free: 6.379 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1113, allocations: 57.77 MB / 487 MB, free: 12.54 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2283/0.3397, allocations: 41.49 MB / 0.5161 GB, free: 36.58 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.01699/0.3567, allocations: 8.967 MB / 0.5249 GB, free: 33.69 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009178/0.3659, allocations: 173.6 kB / 0.525 GB, free: 33.66 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003489/0.3694, allocations: 1.935 MB / 0.5269 GB, free: 33.07 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003455/0.373, allocations: 1.624 MB / 0.5285 GB, free: 32.54 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009636/0.3739, allocations: 0.5181 MB / 0.529 GB, free: 32.37 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.004152/0.3781, allocations: 5.407 MB / 0.5343 GB, free: 31.04 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002091/0.3802, allocations: 2.542 MB / 0.5368 GB, free: 30.16 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001098/0.3813, allocations: 1.132 MB / 0.5379 GB, free: 29.77 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001639/0.383, allocations: 1.955 MB / 0.5398 GB, free: 29.18 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003443/0.3833, allocations: 187.7 kB / 0.54 GB, free: 29.18 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001586/0.3849, allocations: 1.132 MB / 0.5411 GB, free: 28.91 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001127/0.3861, allocations: 1.64 MB / 0.5427 GB, free: 28.39 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001244/0.3873, allocations: 1.864 MB / 0.5445 GB, free: 27.1 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005924/0.3933, allocations: 6.106 MB / 0.5505 GB, free: 24.96 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.3933, allocations: 4 kB / 0.5505 GB, free: 24.95 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3933, allocations: 0 / 0.5505 GB, free: 24.95 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001654/0.3935, allocations: 0 / 0.5505 GB, free: 24.95 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.008436/0.4019, allocations: 4.207 MB / 0.5546 GB, free: 22.53 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.402, allocations: 13.69 kB / 0.5546 GB, free: 22.53 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01638/0.4184, allocations: 2.443 MB / 0.557 GB, free: 21.96 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006939/0.4254, allocations: 2.413 MB / 0.5593 GB, free: 20.41 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001668/0.4256, allocations: 190.3 kB / 0.5595 GB, free: 20.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008414/0.4264, allocations: 265 kB / 0.5598 GB, free: 20.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01413/0.4405, allocations: 8.756 MB / 0.5683 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001532/0.4407, allocations: 39.62 kB / 0.5684 GB, free: 14.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008697/0.4416, allocations: 125.8 kB / 0.5685 GB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002894/0.4445, allocations: 1.84 MB / 0.5703 GB, free: 13.94 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01236/0.4569, allocations: 7.464 MB / 0.5776 GB, free: 8.066 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04514/0.5021, allocations: 34.3 MB / 0.6111 GB, free: 4.762 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00516/0.5073, allocations: 2.59 MB / 0.6136 GB, free: 2.023 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001598/0.5089, allocations: 1.192 MB / 0.6147 GB, free: 0.8203 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003781/0.5093, allocations: 323.8 kB / 0.6151 GB, free: 460 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.5094, allocations: 55.06 kB / 0.6151 GB, free: 396 kB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 4.688e-06/0.5094, allocations: 0 / 0.6151 GB, free: 396 kB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.02351/0.5329, allocations: 9.808 MB / 0.6247 GB, free: 6.461 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.653e-05/0.5331, allocations: 192.6 kB / 0.6249 GB, free: 6.23 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005021/0.5381, allocations: 3.968 MB / 0.6287 GB, free: 2.277 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000161/0.5383, allocations: 45.7 kB / 0.6288 GB, free: 2.227 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001895/0.5402, allocations: 2.94 MB / 0.6317 GB, free: 15.24 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000548/0.5407, allocations: 0.5481 MB / 0.6322 GB, free: 14.69 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001362/0.5421, allocations: 1.202 MB / 0.6334 GB, free: 13.47 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.986e-05/0.5422, allocations: 305.1 kB / 0.6337 GB, free: 13.17 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002526/0.5448, allocations: 1.803 MB / 0.6354 GB, free: 11.36 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004746/0.5495, allocations: 5.64 MB / 0.6409 GB, free: 3.801 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008867/0.5584, allocations: 8.041 MB / 0.6488 GB, free: 9.844 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001124/0.5586, allocations: 36 kB / 0.6488 GB, free: 9.809 MB / 474.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.0131/0.5717, allocations: 7.599 MB / 0.6562 GB, free: 2.203 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.294e-05/0.5718, allocations: 61.56 kB / 0.6563 GB, free: 2.145 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001238/0.5719, allocations: 136 kB / 0.6564 GB, free: 2.012 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001531/0.5734, allocations: 0.6646 MB / 0.6571 GB, free: 1.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003741/0.5772, allocations: 1.357 MB / 0.6584 GB, free: 15.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004351/0.5816, allocations: 3.812 MB / 0.6621 GB, free: 12.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004014/0.5856, allocations: 319.5 kB / 0.6624 GB, free: 11.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007749/0.5864, allocations: 375.9 kB / 0.6628 GB, free: 11.36 MB / 490.7 MB 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003327/0.5897, allocations: 1.947 MB / 0.6647 GB, free: 9.402 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006916/0.5904, allocations: 319.8 kB / 0.665 GB, free: 9.086 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004179/0.5946, allocations: 2.065 MB / 0.667 GB, free: 6.992 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.739e-05/0.5947, allocations: 16 kB / 0.667 GB, free: 6.977 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.5947, allocations: 4 kB / 0.667 GB, free: 6.973 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/0.5947, allocations: 7.969 kB / 0.667 GB, free: 6.965 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01382/0.6085, allocations: 5.813 MB / 0.6727 GB, free: 1.074 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-05/0.6086, allocations: 4 kB / 0.6727 GB, free: 1.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009497/0.6096, allocations: 187.7 kB / 0.6729 GB, free: 0.8867 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001454/0.611, allocations: 488.4 kB / 0.6734 GB, free: 416 kB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000154/0.6112, allocations: 27.98 kB / 0.6734 GB, free: 388 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003748/0.615, allocations: 3.225 MB / 0.6765 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.615, allocations: 0 / 0.6765 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2274/0.8424, allocations: 18.53 MB / 0.6946 GB, free: 151 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/0.8434, allocations: 0.5375 MB / 0.6952 GB, free: 150.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003088/0.8437, allocations: 23.33 kB / 0.6952 GB, free: 150.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.8448, allocations: 67.34 kB / 0.6952 GB, free: 150.8 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/0.845, allocations: 70.48 kB / 0.6953 GB, free: 150.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.738e-05/0.8451, allocations: 38.17 kB / 0.6954 GB, free: 150.8 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003375/0.8485, allocations: 2.478 MB / 0.6978 GB, free: 150 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.01e-07/0.8485, allocations: 0 / 0.6978 GB, free: 150 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004694/0.8532, allocations: 1.131 MB / 0.6989 GB, free: 149.8 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000376/0.8536, allocations: 154.5 kB / 0.699 GB, free: 149.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006011/0.8596, allocations: 4.303 MB / 0.7032 GB, free: 148.4 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.8596, allocations: 2.531 kB / 0.7032 GB, free: 148.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001396/0.861, allocations: 1.072 MB / 0.7043 GB, free: 147.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002429/0.8635, allocations: 357.8 kB / 0.7046 GB, free: 147.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01249/0.876, allocations: 10.64 MB / 0.715 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002395/0.8784, allocations: 3.002 MB / 0.7179 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003904/0.8823, allocations: 1.818 MB / 0.7197 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005062/0.8828, allocations: 235.7 kB / 0.7199 GB, free: 140.7 MB / 0.4948 GB Notification: Performance of SimCode: time 1.082e-06/0.8828, allocations: 0 / 0.7199 GB, free: 140.7 MB / 0.4948 GB Notification: Performance of Templates: time 0.06033/0.9432, allocations: 33.48 MB / 0.7526 GB, free: 126.6 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches