Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001202/0.001202, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001205/0.001206, allocations: 197.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2239/0.2239, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 75.88 kB / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4322/0.4336, allocations: 62.43 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01243/0.4461, allocations: 8.929 MB / 0.5397 GB, free: 6.605 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008782/0.455, allocations: 3.546 MB / 0.5432 GB, free: 3.859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002226/0.4572, allocations: 47.22 kB / 0.5432 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003737/0.461, allocations: 1.664 MB / 0.5448 GB, free: 2.727 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005467/0.4665, allocations: 1.571 MB / 0.5464 GB, free: 1.641 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001723/0.4683, allocations: 0.5595 MB / 0.5469 GB, free: 1.273 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006629/0.4749, allocations: 3.571 MB / 0.5504 GB, free: 13.79 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003648/0.4786, allocations: 2.197 MB / 0.5525 GB, free: 11.54 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002679/0.4813, allocations: 1.098 MB / 0.5536 GB, free: 10.44 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002801/0.4842, allocations: 1.534 MB / 0.5551 GB, free: 8.898 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009854/0.4852, allocations: 220 kB / 0.5553 GB, free: 8.684 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002947/0.4881, allocations: 1.096 MB / 0.5564 GB, free: 7.586 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002033/0.4902, allocations: 1.418 MB / 0.5578 GB, free: 6.164 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002845/0.4931, allocations: 1.615 MB / 0.5594 GB, free: 4.539 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008399/0.5015, allocations: 5.39 MB / 0.5646 GB, free: 15.13 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.5015, allocations: 4 kB / 0.5646 GB, free: 15.13 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.5016, allocations: 0 / 0.5646 GB, free: 15.13 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002308/0.5018, allocations: 0 / 0.5646 GB, free: 15.13 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01095/0.5128, allocations: 3.657 MB / 0.5682 GB, free: 11.4 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.5128, allocations: 8.031 kB / 0.5682 GB, free: 11.39 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01571/0.5285, allocations: 2.336 MB / 0.5705 GB, free: 9.051 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005749/0.5343, allocations: 2.178 MB / 0.5726 GB, free: 6.82 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001841/0.5345, allocations: 164.5 kB / 0.5728 GB, free: 6.656 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001026/0.5356, allocations: 215.9 kB / 0.573 GB, free: 6.445 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01377/0.5494, allocations: 7.402 MB / 0.5802 GB, free: 14.42 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001206/0.5495, allocations: 35.66 kB / 0.5802 GB, free: 14.38 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000351/0.5499, allocations: 115.9 kB / 0.5804 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002815/0.5527, allocations: 1.539 MB / 0.5819 GB, free: 12.73 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01359/0.5663, allocations: 6.315 MB / 0.588 GB, free: 6.402 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03917/0.6056, allocations: 30.18 MB / 0.6175 GB, free: 7.293 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004435/0.6101, allocations: 2.227 MB / 0.6197 GB, free: 4.918 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001447/0.6115, allocations: 1.141 MB / 0.6208 GB, free: 3.766 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003818/0.6119, allocations: 315.6 kB / 0.6211 GB, free: 3.402 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.03e-05/0.612, allocations: 50.86 kB / 0.6211 GB, free: 3.344 MB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 3.617e-06/0.612, allocations: 0 / 0.6211 GB, free: 3.344 MB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.03423/0.6462, allocations: 11.81 MB / 0.6327 GB, free: 7.379 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/0.6464, allocations: 200.5 kB / 0.6329 GB, free: 7.141 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004992/0.6514, allocations: 3.599 MB / 0.6364 GB, free: 3.539 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002271/0.6516, allocations: 45.7 kB / 0.6364 GB, free: 3.488 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001845/0.6535, allocations: 2.534 MB / 0.6389 GB, free: 0.918 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005839/0.6541, allocations: 0.5403 MB / 0.6394 GB, free: 380 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001344/0.6554, allocations: 1.075 MB / 0.6405 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.6556, allocations: 309.1 kB / 0.6408 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00254/0.6581, allocations: 1.744 MB / 0.6425 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004946/0.6631, allocations: 5.08 MB / 0.6474 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009221/0.6723, allocations: 7.374 MB / 0.6546 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.406e-05/0.6724, allocations: 35.98 kB / 0.6547 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01385/0.6863, allocations: 7.044 MB / 0.6615 GB, free: 6.34 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001505/0.6865, allocations: 62.59 kB / 0.6616 GB, free: 6.281 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002067/0.6867, allocations: 120.9 kB / 0.6617 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001807/0.6885, allocations: 0.6409 MB / 0.6623 GB, free: 5.52 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004103/0.6927, allocations: 1.216 MB / 0.6635 GB, free: 4.301 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005363/0.698, allocations: 4.072 MB / 0.6675 GB, free: 88 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004792/0.7029, allocations: 299.5 kB / 0.6678 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001179/0.7041, allocations: 328.4 kB / 0.6681 GB, free: 15.47 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.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 (659): * Single equations (assignments): 655 * 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.004445/0.7086, allocations: 1.697 MB / 0.6698 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008675/0.7094, allocations: 296.2 kB / 0.67 GB, free: 13.47 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004803/0.7143, allocations: 2.088 MB / 0.6721 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.733e-05/0.7143, allocations: 23.92 kB / 0.6721 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.649e-05/0.7144, allocations: 4 kB / 0.6721 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.419e-05/0.7144, allocations: 7.969 kB / 0.6721 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01316/0.7276, allocations: 5.601 MB / 0.6776 GB, free: 5.645 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-05/0.7276, allocations: 0 / 0.6776 GB, free: 5.645 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/0.7287, allocations: 199.7 kB / 0.6778 GB, free: 5.449 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001388/0.7301, allocations: 480.2 kB / 0.6782 GB, free: 4.977 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00018/0.7303, allocations: 32.05 kB / 0.6783 GB, free: 4.945 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004276/0.7346, allocations: 3.437 MB / 0.6816 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.7346, allocations: 0 / 0.6816 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00656/0.7412, allocations: 4.176 MB / 0.6857 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009678/0.7422, allocations: 353.2 kB / 0.686 GB, free: 12.79 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006881/0.7429, allocations: 24 kB / 0.6861 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001508/0.7444, allocations: 75.83 kB / 0.6861 GB, free: 12.69 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002502/0.7447, allocations: 68.5 kB / 0.6862 GB, free: 12.62 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/0.7448, allocations: 36 kB / 0.6862 GB, free: 12.59 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004382/0.7492, allocations: 2.252 MB / 0.6884 GB, free: 10.35 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.31e-07/0.7492, allocations: 4 kB / 0.6884 GB, free: 10.34 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004885/0.7541, allocations: 0.789 MB / 0.6892 GB, free: 9.555 MB / 0.545 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.0005657/0.7547, allocations: 143 kB / 0.6893 GB, free: 9.406 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007594/0.7623, allocations: 4.152 MB / 0.6934 GB, free: 5.266 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/0.7623, allocations: 4.062 kB / 0.6934 GB, free: 5.262 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002061/0.7644, allocations: 1.134 MB / 0.6945 GB, free: 4.117 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003447/0.7679, allocations: 351.8 kB / 0.6948 GB, free: 3.77 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01705/0.785, allocations: 7.072 MB / 0.7017 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004839/0.7898, allocations: 2.631 MB / 0.7043 GB, free: 9.992 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004352/0.7942, allocations: 1.694 MB / 0.706 GB, free: 8.293 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006449/0.7949, allocations: 211.3 kB / 0.7062 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of SimCode: time 8.52e-07/0.7949, allocations: 0 / 0.7062 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of Templates: time 0.3811/1.176, allocations: 25.76 MB / 0.7313 GB, free: 178.6 MB / 0.5762 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches