Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 108.1 kB / 18.45 MB, free: 4.602 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.001132/0.001132, allocations: 184.2 kB / 19.38 MB, free: 3.684 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.266/1.266, allocations: 222.9 MB / 243.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2146/0.2146, allocations: 44.19 MB / 337.4 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 67.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3212, allocations: 60.82 MB / 0.5196 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01089/0.3321, allocations: 9.036 MB / 0.5284 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007744/0.3399, allocations: 3.546 MB / 0.5318 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001888/0.3418, allocations: 47.84 kB / 0.5319 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003965/0.3458, allocations: 1.676 MB / 0.5335 GB, free: 9.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005244/0.3511, allocations: 1.595 MB / 0.5351 GB, free: 8.461 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001627/0.3528, allocations: 0.56 MB / 0.5356 GB, free: 8.094 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005849/0.3587, allocations: 3.585 MB / 0.5391 GB, free: 6.129 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003643/0.3623, allocations: 2.204 MB / 0.5413 GB, free: 4.805 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002915/0.3653, allocations: 1.12 MB / 0.5424 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0031/0.3684, allocations: 1.565 MB / 0.5439 GB, free: 3.062 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001/0.3694, allocations: 224 kB / 0.5441 GB, free: 2.844 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00296/0.3724, allocations: 1.119 MB / 0.5452 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00225/0.3747, allocations: 1.457 MB / 0.5466 GB, free: 268 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003189/0.3779, allocations: 1.666 MB / 0.5483 GB, free: 14.59 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007913/0.3859, allocations: 5.534 MB / 0.5537 GB, free: 9.035 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.3859, allocations: 0 / 0.5537 GB, free: 9.035 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3859, allocations: 0 / 0.5537 GB, free: 9.035 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000209/0.3861, allocations: 4 kB / 0.5537 GB, free: 9.031 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.009162/0.3953, allocations: 3.735 MB / 0.5573 GB, free: 5.227 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.3954, allocations: 8.031 kB / 0.5573 GB, free: 5.219 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01631/0.4117, allocations: 2.36 MB / 0.5596 GB, free: 2.852 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005482/0.4172, allocations: 2.229 MB / 0.5618 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001716/0.4174, allocations: 164.5 kB / 0.562 GB, free: 416 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009048/0.4183, allocations: 227.9 kB / 0.5622 GB, free: 188 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01399/0.4323, allocations: 7.583 MB / 0.5696 GB, free: 7.977 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001219/0.4325, allocations: 43.58 kB / 0.5696 GB, free: 7.934 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006387/0.4332, allocations: 115.9 kB / 0.5697 GB, free: 7.82 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00284/0.436, allocations: 1.597 MB / 0.5713 GB, free: 6.223 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01197/0.448, allocations: 6.464 MB / 0.5776 GB, free: 15.75 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03594/0.484, allocations: 30.54 MB / 0.6074 GB, free: 272 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004724/0.4887, allocations: 2.233 MB / 0.6096 GB, free: 13.88 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001519/0.4903, allocations: 1.141 MB / 0.6107 GB, free: 12.73 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000396/0.4907, allocations: 319.5 kB / 0.611 GB, free: 12.36 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.405e-05/0.4908, allocations: 50.94 kB / 0.6111 GB, free: 12.3 MB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 4.228e-06/0.4908, allocations: 0 / 0.6111 GB, free: 12.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.03715/0.5279, allocations: 11.88 MB / 0.6227 GB, free: 276 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.5281, allocations: 192.5 kB / 0.6229 GB, free: 40 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005763/0.5339, allocations: 3.66 MB / 0.6264 GB, free: 12.38 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002021/0.5341, allocations: 45.7 kB / 0.6265 GB, free: 12.33 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002062/0.5362, allocations: 2.592 MB / 0.629 GB, free: 9.699 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006472/0.5368, allocations: 0.5248 MB / 0.6295 GB, free: 9.168 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001628/0.5385, allocations: 1.091 MB / 0.6306 GB, free: 8.066 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.681e-05/0.5386, allocations: 305.1 kB / 0.6309 GB, free: 7.766 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002545/0.5411, allocations: 1.74 MB / 0.6326 GB, free: 6.02 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004717/0.5459, allocations: 5.103 MB / 0.6376 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009149/0.555, allocations: 7.408 MB / 0.6448 GB, free: 6.148 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001049/0.5552, allocations: 32 kB / 0.6448 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01222/0.5674, allocations: 7.077 MB / 0.6517 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.376e-05/0.5675, allocations: 57.88 kB / 0.6518 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001555/0.5677, allocations: 116 kB / 0.6519 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001623/0.5693, allocations: 0.6525 MB / 0.6525 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003728/0.5731, allocations: 1.22 MB / 0.6537 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004738/0.5778, allocations: 4.055 MB / 0.6577 GB, free: 8.785 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003765/0.5816, allocations: 299.5 kB / 0.658 GB, free: 8.492 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007816/0.5824, allocations: 332 kB / 0.6583 GB, free: 8.168 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,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 (662): * Single equations (assignments): 658 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003034/0.5855, allocations: 1.728 MB / 0.66 GB, free: 6.426 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006643/0.5862, allocations: 304 kB / 0.6603 GB, free: 6.125 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004109/0.5903, allocations: 2.092 MB / 0.6623 GB, free: 4.02 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.603e-05/0.5903, allocations: 27.86 kB / 0.6624 GB, free: 3.992 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.506e-05/0.5904, allocations: 4 kB / 0.6624 GB, free: 3.988 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/0.5904, allocations: 3.984 kB / 0.6624 GB, free: 3.984 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01085/0.6012, allocations: 5.673 MB / 0.6679 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.317e-05/0.6013, allocations: 4 kB / 0.6679 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001/0.6023, allocations: 195.7 kB / 0.6681 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001357/0.6037, allocations: 484.3 kB / 0.6686 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001201/0.6038, allocations: 24 kB / 0.6686 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003907/0.6077, allocations: 3.429 MB / 0.6719 GB, free: 9.953 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.6077, allocations: 8.062 kB / 0.6719 GB, free: 9.945 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006039/0.6138, allocations: 4.178 MB / 0.676 GB, free: 5.734 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008767/0.6147, allocations: 365 kB / 0.6764 GB, free: 5.355 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006059/0.6153, allocations: 27.94 kB / 0.6764 GB, free: 5.328 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001415/0.6167, allocations: 75.88 kB / 0.6765 GB, free: 5.254 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001959/0.617, allocations: 76.5 kB / 0.6765 GB, free: 5.18 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.309e-05/0.6171, allocations: 36 kB / 0.6766 GB, free: 5.145 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003711/0.6208, allocations: 2.288 MB / 0.6788 GB, free: 2.867 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.41e-07/0.6208, allocations: 0 / 0.6788 GB, free: 2.867 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004084/0.6249, allocations: 0.8047 MB / 0.6796 GB, free: 2.062 MB / 0.5294 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 (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.0004263/0.6253, allocations: 159 kB / 0.6797 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006411/0.6317, allocations: 4.145 MB / 0.6838 GB, free: 13.76 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.6318, allocations: 0 / 0.6838 GB, free: 13.76 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001566/0.6333, allocations: 1.134 MB / 0.6849 GB, free: 12.62 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002575/0.6359, allocations: 364.5 kB / 0.6852 GB, free: 12.26 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01309/0.649, allocations: 7.537 MB / 0.6926 GB, free: 4.684 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003363/0.6524, allocations: 2.672 MB / 0.6952 GB, free: 1.988 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009352/0.6534, allocations: 243.4 kB / 0.6954 GB, free: 1.75 MB / 0.545 GB Notification: Performance of SimCode: time 7.71e-07/0.6534, allocations: 0 / 0.6954 GB, free: 1.75 MB / 0.545 GB Notification: Performance of Templates: time 0.3191/0.9725, allocations: 62.05 MB / 0.756 GB, free: 165.3 MB / 0.5762 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches