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/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 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 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 104.2 kB / 15.98 MB, free: 6.359 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.001712/0.001712, allocations: 192.9 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.58/1.58, allocations: 205.1 MB / 222.8 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3842/0.3842, allocations: 43.5 MB / 313.6 MB, free: 8.508 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 63.91 kB / 382.2 MB, free: 8.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1433, allocations: 57.78 MB / 440 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.3198/0.4632, allocations: 33.9 MB / 473.9 MB, free: 30.72 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01774/0.481, allocations: 7.619 MB / 481.5 MB, free: 26.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007403/0.4884, allocations: 145.1 kB / 481.7 MB, free: 26.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003318/0.4918, allocations: 1.607 MB / 483.3 MB, free: 25.6 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004874/0.4967, allocations: 1.524 MB / 484.8 MB, free: 24.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001293/0.498, allocations: 0.5287 MB / 485.3 MB, free: 24.74 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005015/0.5031, allocations: 3.645 MB / 489 MB, free: 23.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002619/0.5057, allocations: 2.401 MB / 491.4 MB, free: 22.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001689/0.5074, allocations: 1.172 MB / 492.5 MB, free: 21.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002461/0.5099, allocations: 1.836 MB / 494.4 MB, free: 21.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006256/0.5105, allocations: 236.6 kB / 494.6 MB, free: 21.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002149/0.5127, allocations: 1.129 MB / 495.7 MB, free: 21.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002202/0.5149, allocations: 1.545 MB / 497.3 MB, free: 20.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002505/0.5174, allocations: 1.754 MB / 499 MB, free: 19.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008946/0.5264, allocations: 5.608 MB / 0.4928 GB, free: 17.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.5264, allocations: 0 / 0.4928 GB, free: 17.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5265, allocations: 0 / 0.4928 GB, free: 17.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002389/0.5267, allocations: 1.312 kB / 0.4928 GB, free: 17.31 MB / 382.1 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.01186/0.5386, allocations: 3.859 MB / 0.4966 GB, free: 15.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.5386, allocations: 12.39 kB / 0.4966 GB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01551/0.5541, allocations: 2.372 MB / 0.4989 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006605/0.5608, allocations: 2.296 MB / 0.5011 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001526/0.561, allocations: 173.7 kB / 0.5013 GB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007159/0.5617, allocations: 232.7 kB / 0.5015 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01439/0.5761, allocations: 7.892 MB / 0.5092 GB, free: 8.223 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001068/0.5762, allocations: 38.03 kB / 0.5093 GB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003472/0.5766, allocations: 115.3 kB / 0.5094 GB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00239/0.579, allocations: 1.669 MB / 0.511 GB, free: 7.461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0103/0.5893, allocations: 6.755 MB / 0.5176 GB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04474/0.6341, allocations: 31.54 MB / 0.5484 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005011/0.6391, allocations: 2.342 MB / 0.5507 GB, free: 14.17 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001654/0.6408, allocations: 1.185 MB / 0.5519 GB, free: 12.98 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003923/0.6412, allocations: 327.5 kB / 0.5522 GB, free: 12.6 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.78e-05/0.6413, allocations: 55.09 kB / 0.5522 GB, free: 12.54 MB / 430.1 MB Notification: Performance of pre-optimization done (n=117): time 3.536e-06/0.6413, allocations: 3.938 kB / 0.5522 GB, free: 12.54 MB / 430.1 MB Notification: Performance of matching and sorting (n=141): time 0.03764/0.679, allocations: 12.28 MB / 0.5642 GB, free: 112 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.6791, allocations: 204.4 kB / 0.5644 GB, free: 15.87 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005457/0.6846, allocations: 3.738 MB / 0.5681 GB, free: 12.13 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003153/0.685, allocations: 45.69 kB / 0.5681 GB, free: 12.08 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001913/0.6869, allocations: 2.662 MB / 0.5707 GB, free: 9.383 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007709/0.6877, allocations: 0.5556 MB / 0.5713 GB, free: 8.82 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001545/0.6892, allocations: 1.118 MB / 0.5723 GB, free: 7.691 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.6894, allocations: 305.1 kB / 0.5726 GB, free: 7.391 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00278/0.6921, allocations: 1.807 MB / 0.5744 GB, free: 5.578 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005284/0.6974, allocations: 5.252 MB / 0.5795 GB, free: 14.59 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01147/0.7089, allocations: 7.623 MB / 0.587 GB, free: 5.262 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001208/0.7091, allocations: 32 kB / 0.587 GB, free: 5.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01724/0.7264, allocations: 7.29 MB / 0.5941 GB, free: 13.93 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000181/0.7266, allocations: 60 kB / 0.5942 GB, free: 13.87 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002248/0.7268, allocations: 120 kB / 0.5943 GB, free: 13.75 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001909/0.7287, allocations: 0.654 MB / 0.5949 GB, free: 13.09 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004769/0.7335, allocations: 1.267 MB / 0.5962 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005363/0.7389, allocations: 4.076 MB / 0.6002 GB, free: 7.617 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00538/0.7443, allocations: 299.5 kB / 0.6004 GB, free: 7.324 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001341/0.7457, allocations: 340 kB / 0.6008 GB, free: 6.992 MB / 478.1 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.00512/0.7508, allocations: 1.782 MB / 0.6025 GB, free: 5.199 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001048/0.7519, allocations: 311.9 kB / 0.6028 GB, free: 4.891 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00536/0.7573, allocations: 2.223 MB / 0.605 GB, free: 2.652 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-05/0.7573, allocations: 19.98 kB / 0.605 GB, free: 2.633 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.747e-05/0.7574, allocations: 11.88 kB / 0.605 GB, free: 2.621 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-05/0.7574, allocations: 3.984 kB / 0.605 GB, free: 2.617 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01601/0.7734, allocations: 5.983 MB / 0.6108 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.042e-05/0.7735, allocations: 4 kB / 0.6109 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/0.7747, allocations: 211.7 kB / 0.6111 GB, free: 12.33 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001379/0.7761, allocations: 488.3 kB / 0.6115 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001673/0.7763, allocations: 24 kB / 0.6115 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004585/0.7809, allocations: 3.433 MB / 0.6149 GB, free: 8.25 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/0.7809, allocations: 4 kB / 0.6149 GB, free: 8.246 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007075/0.788, allocations: 4.343 MB / 0.6191 GB, free: 3.871 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001733/0.7898, allocations: 0.548 MB / 0.6197 GB, free: 3.301 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004411/0.7902, allocations: 24 kB / 0.6197 GB, free: 3.277 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.7914, allocations: 79.89 kB / 0.6198 GB, free: 3.199 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002242/0.7917, allocations: 80.5 kB / 0.6199 GB, free: 3.121 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.7918, allocations: 39.98 kB / 0.6199 GB, free: 3.082 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004096/0.7959, allocations: 2.341 MB / 0.6222 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7959, allocations: 0 / 0.6222 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005029/0.8009, allocations: 0.836 MB / 0.623 GB, free: 15.91 MB / 0.4981 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.0004363/0.8014, allocations: 162.9 kB / 0.6231 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008997/0.8104, allocations: 4.734 MB / 0.6278 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/0.8104, allocations: 0 / 0.6278 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001811/0.8122, allocations: 1.193 MB / 0.6289 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003058/0.8153, allocations: 360.9 kB / 0.6293 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0163/0.8316, allocations: 9.091 MB / 0.6382 GB, free: 360 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2639/1.096, allocations: 2.755 MB / 0.6408 GB, free: 158.4 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004485/1.1, allocations: 1.73 MB / 0.6425 GB, free: 158.4 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006768/1.101, allocations: 217 kB / 0.6427 GB, free: 158.4 MB / 0.4981 GB Notification: Performance of SimCode: time 1.242e-06/1.101, allocations: 2.078 kB / 0.6427 GB, free: 158.4 MB / 0.4981 GB Notification: Performance of Templates: time 0.07293/1.174, allocations: 30.46 MB / 0.6725 GB, free: 151.7 MB / 0.4981 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/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