Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 187 kB / 16.63 MB, free: 5.137 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.37/1.37, allocations: 205.1 MB / 222.5 MB, free: 8.465 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.001036/0.001036, allocations: 90.3 kB / 269.9 MB, free: 8.434 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.3364/0.3364, allocations: 43.5 MB / 360.7 MB, free: 51.23 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001006/0.001006, allocations: 55.91 kB / 429.2 MB, free: 6.391 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1171, allocations: 57.77 MB / 487 MB, free: 12.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.2479/0.365, allocations: 33.89 MB / 0.5087 GB, free: 36.75 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.01733/0.3823, allocations: 7.723 MB / 0.5162 GB, free: 35.65 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008888/0.3913, allocations: 144.2 kB / 0.5164 GB, free: 35.62 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003307/0.3946, allocations: 1.666 MB / 0.518 GB, free: 35.11 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004138/0.3988, allocations: 1.525 MB / 0.5195 GB, free: 34.62 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.4, allocations: 0.5064 MB / 0.52 GB, free: 34.46 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.004323/0.4043, allocations: 5.018 MB / 0.5249 GB, free: 33.23 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001793/0.4061, allocations: 2.233 MB / 0.5271 GB, free: 32.46 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009425/0.4071, allocations: 1.027 MB / 0.5281 GB, free: 32.1 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001382/0.4085, allocations: 1.753 MB / 0.5298 GB, free: 31.64 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002598/0.4087, allocations: 160.4 kB / 0.5299 GB, free: 31.64 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001475/0.4102, allocations: 1.112 MB / 0.531 GB, free: 31.41 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008466/0.4111, allocations: 1.456 MB / 0.5324 GB, free: 30.96 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009992/0.4121, allocations: 1.676 MB / 0.5341 GB, free: 29.81 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004213/0.4163, allocations: 5.509 MB / 0.5395 GB, free: 28.03 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.4163, allocations: 3.672 kB / 0.5395 GB, free: 28.03 MB / 394.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.4163, allocations: 0 / 0.5395 GB, free: 28.03 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.069e-05/0.4164, allocations: 0 / 0.5395 GB, free: 28.03 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.006339/0.4228, allocations: 3.853 MB / 0.5432 GB, free: 25.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.4228, allocations: 13.44 kB / 0.5432 GB, free: 25.88 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01605/0.4389, allocations: 2.377 MB / 0.5456 GB, free: 25.56 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005949/0.4449, allocations: 2.289 MB / 0.5478 GB, free: 24.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001629/0.4451, allocations: 177 kB / 0.548 GB, free: 24.37 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006245/0.4457, allocations: 231 kB / 0.5482 GB, free: 24.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01052/0.4562, allocations: 7.892 MB / 0.5559 GB, free: 20.18 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.234e-05/0.4563, allocations: 38.94 kB / 0.5559 GB, free: 20.15 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002839/0.4566, allocations: 111.2 kB / 0.556 GB, free: 20.11 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002439/0.4591, allocations: 1.667 MB / 0.5577 GB, free: 19.46 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01023/0.4693, allocations: 6.755 MB / 0.5643 GB, free: 16.35 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03426/0.5036, allocations: 31.55 MB / 0.5951 GB, free: 1.594 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004975/0.5086, allocations: 2.351 MB / 0.5974 GB, free: 15.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001619/0.5103, allocations: 1.18 MB / 0.5985 GB, free: 13.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003813/0.5107, allocations: 329 kB / 0.5988 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.782e-05/0.5107, allocations: 43.06 kB / 0.5989 GB, free: 13.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 3.987e-06/0.5107, allocations: 0 / 0.5989 GB, free: 13.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.03391/0.5447, allocations: 12.28 MB / 0.6109 GB, free: 1.062 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001472/0.5449, allocations: 196.5 kB / 0.6111 GB, free: 0.8281 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005648/0.5505, allocations: 3.742 MB / 0.6147 GB, free: 13.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000251/0.5508, allocations: 45.7 kB / 0.6147 GB, free: 13.04 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001651/0.5525, allocations: 2.67 MB / 0.6174 GB, free: 10.38 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006489/0.5531, allocations: 0.5566 MB / 0.6179 GB, free: 9.824 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001574/0.5547, allocations: 1.124 MB / 0.619 GB, free: 8.691 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.5548, allocations: 305.1 kB / 0.6193 GB, free: 8.391 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00273/0.5576, allocations: 1.803 MB / 0.621 GB, free: 6.582 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004903/0.5625, allocations: 5.245 MB / 0.6262 GB, free: 15.61 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008101/0.5706, allocations: 7.625 MB / 0.6336 GB, free: 6.266 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.595e-05/0.5707, allocations: 39.94 kB / 0.6337 GB, free: 6.227 MB / 458.7 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01142/0.5822, allocations: 7.284 MB / 0.6408 GB, free: 14.94 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.645e-05/0.5823, allocations: 56 kB / 0.6408 GB, free: 14.88 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001024/0.5824, allocations: 120 kB / 0.6409 GB, free: 14.77 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001488/0.5839, allocations: 0.6545 MB / 0.6416 GB, free: 14.11 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003361/0.5873, allocations: 1.267 MB / 0.6428 GB, free: 12.84 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004214/0.5915, allocations: 3.782 MB / 0.6465 GB, free: 8.93 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003579/0.5951, allocations: 303.4 kB / 0.6468 GB, free: 8.633 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004519/0.5955, allocations: 340 kB / 0.6471 GB, free: 8.301 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (684): * Single equations (assignments): 680 * 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.002516/0.5981, allocations: 1.782 MB / 0.6489 GB, free: 6.508 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005317/0.5986, allocations: 308 kB / 0.6492 GB, free: 6.203 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004071/0.6027, allocations: 2.227 MB / 0.6513 GB, free: 3.957 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.789e-05/0.6027, allocations: 17.95 kB / 0.6513 GB, free: 3.941 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.6027, allocations: 0 / 0.6513 GB, free: 3.941 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.6028, allocations: 15.97 kB / 0.6514 GB, free: 3.926 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01052/0.6133, allocations: 5.976 MB / 0.6572 GB, free: 13.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/0.6133, allocations: 64 / 0.6572 GB, free: 13.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.6144, allocations: 223.7 kB / 0.6574 GB, free: 13.66 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001277/0.6157, allocations: 480.2 kB / 0.6579 GB, free: 13.19 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/0.6158, allocations: 27.98 kB / 0.6579 GB, free: 13.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003536/0.6193, allocations: 3.217 MB / 0.661 GB, free: 9.812 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.6194, allocations: 0 / 0.661 GB, free: 9.812 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03086/0.6502, allocations: 18.98 MB / 0.6796 GB, free: 6.523 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/0.6513, allocations: 0.5478 MB / 0.6801 GB, free: 5.953 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002707/0.6516, allocations: 28.12 kB / 0.6801 GB, free: 5.926 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.6527, allocations: 71.89 kB / 0.6802 GB, free: 5.855 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/0.653, allocations: 76.55 kB / 0.6803 GB, free: 5.781 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.462e-05/0.6531, allocations: 42.97 kB / 0.6803 GB, free: 5.742 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003095/0.6562, allocations: 2.337 MB / 0.6826 GB, free: 3.418 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6562, allocations: 0 / 0.6826 GB, free: 3.418 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003963/0.6601, allocations: 1.082 MB / 0.6837 GB, free: 2.336 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (112): * Single equations (assignments): 108 * 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.0003423/0.6605, allocations: 161.2 kB / 0.6838 GB, free: 2.172 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006478/0.667, allocations: 4.289 MB / 0.688 GB, free: 13.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/0.667, allocations: 4.062 kB / 0.688 GB, free: 13.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001603/0.6686, allocations: 1.189 MB / 0.6892 GB, free: 12.69 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001942/0.6706, allocations: 347 kB / 0.6895 GB, free: 12.35 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0122/0.6828, allocations: 10.14 MB / 0.6994 GB, free: 2.148 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2065/0.8893, allocations: 2.79 MB / 0.7021 GB, free: 168.9 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005128/0.8945, allocations: 1.735 MB / 0.7038 GB, free: 168.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006537/0.8951, allocations: 217.3 kB / 0.704 GB, free: 168.8 MB / 0.5105 GB Notification: Performance of SimCode: time 6.41e-07/0.8951, allocations: 3.938 kB / 0.704 GB, free: 168.8 MB / 0.5105 GB Notification: Performance of Templates: time 0.06345/0.9586, allocations: 33.09 MB / 0.7363 GB, free: 161.5 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches