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.001763/0.001763, allocations: 111.4 kB / 17.98 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002234/0.002234, allocations: 205.8 kB / 18.92 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.207/2.207, allocations: 227.4 MB / 247.1 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4337/0.4337, allocations: 46.1 MB / 344.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002738/0.002738, allocations: 79.3 kB / 417.7 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1789/0.1817, allocations: 62.44 MB / 480.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0495/0.2312, allocations: 29.73 MB / 0.4979 GB, free: 7.777 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02534/0.2566, allocations: 6.894 MB / 0.5047 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008539/0.2652, allocations: 131.7 kB / 0.5048 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3481/0.6134, allocations: 1.583 MB / 0.5063 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006056/0.6196, allocations: 1.443 MB / 0.5077 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001979/0.6216, allocations: 0.5186 MB / 0.5082 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008302/0.6299, allocations: 3.781 MB / 0.5119 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005568/0.6355, allocations: 2.321 MB / 0.5142 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003562/0.6392, allocations: 1.1 MB / 0.5153 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004643/0.6438, allocations: 1.727 MB / 0.517 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001452/0.6453, allocations: 224.3 kB / 0.5172 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004211/0.6496, allocations: 1.114 MB / 0.5183 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003387/0.653, allocations: 1.437 MB / 0.5197 GB, free: 9.941 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004059/0.6571, allocations: 1.633 MB / 0.5213 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0105/0.6676, allocations: 4.225 MB / 0.5254 GB, free: 7.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.458e-05/0.6678, allocations: 0 / 0.5254 GB, free: 7.926 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.966e-06/0.6678, allocations: 7.188 kB / 0.5254 GB, free: 7.926 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003372/0.6681, allocations: 0 / 0.5254 GB, free: 7.926 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.0164/0.6846, allocations: 3.657 MB / 0.529 GB, free: 5.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.049e-05/0.6846, allocations: 10.31 kB / 0.529 GB, free: 5.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02662/0.7113, allocations: 2.322 MB / 0.5312 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009659/0.721, allocations: 2.155 MB / 0.5333 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003406/0.7214, allocations: 164.7 kB / 0.5335 GB, free: 2.996 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001752/0.7232, allocations: 213 kB / 0.5337 GB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02287/0.7461, allocations: 7.412 MB / 0.5409 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003003/0.7464, allocations: 37.16 kB / 0.541 GB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001418/0.7479, allocations: 117 kB / 0.5411 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0044/0.7523, allocations: 1.538 MB / 0.5426 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02093/0.7733, allocations: 6.301 MB / 0.5487 GB, free: 6.297 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0642/0.8376, allocations: 30.3 MB / 0.5783 GB, free: 7.441 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008643/0.8463, allocations: 2.23 MB / 0.5805 GB, free: 5.07 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003174/0.8495, allocations: 1.142 MB / 0.5816 GB, free: 3.922 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008082/0.8504, allocations: 318.2 kB / 0.5819 GB, free: 3.559 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.382e-05/0.8505, allocations: 43 kB / 0.582 GB, free: 3.508 MB / 430.1 MB Notification: Performance of pre-optimization done (n=108): time 8.185e-06/0.8505, allocations: 4 kB / 0.582 GB, free: 3.504 MB / 430.1 MB Notification: Performance of matching and sorting (n=132): time 0.06915/0.9197, allocations: 11.81 MB / 0.5935 GB, free: 7.602 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001534/0.9199, allocations: 196.5 kB / 0.5937 GB, free: 7.367 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01166/0.9316, allocations: 3.595 MB / 0.5972 GB, free: 3.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004782/0.9321, allocations: 55.92 kB / 0.5973 GB, free: 3.715 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003356/0.9355, allocations: 2.537 MB / 0.5997 GB, free: 1.184 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001238/0.9368, allocations: 0.5331 MB / 0.6003 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004784/0.9416, allocations: 1.083 MB / 0.6013 GB, free: 15.56 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.9418, allocations: 305.1 kB / 0.6016 GB, free: 15.26 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005384/0.9472, allocations: 1.74 MB / 0.6033 GB, free: 13.52 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009263/0.9565, allocations: 5.085 MB / 0.6083 GB, free: 6.805 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01521/0.9718, allocations: 7.363 MB / 0.6155 GB, free: 14.13 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001963/0.9721, allocations: 40 kB / 0.6155 GB, free: 14.09 MB / 478.1 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.02433/0.9964, allocations: 7.041 MB / 0.6224 GB, free: 7.035 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002544/0.9967, allocations: 60.03 kB / 0.6224 GB, free: 6.977 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003063/0.9971, allocations: 123.9 kB / 0.6226 GB, free: 6.855 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002544/0.9996, allocations: 0.6441 MB / 0.6232 GB, free: 6.211 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006871/1.007, allocations: 1.224 MB / 0.6244 GB, free: 4.984 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008033/1.015, allocations: 4.063 MB / 0.6284 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00796/1.023, allocations: 291.5 kB / 0.6286 GB, free: 0.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001873/1.025, allocations: 332.1 kB / 0.6289 GB, free: 180 kB / 478.1 MB 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.007084/1.032, allocations: 1.712 MB / 0.6306 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001364/1.033, allocations: 292.2 kB / 0.6309 GB, free: 14.17 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008101/1.041, allocations: 2.084 MB / 0.6329 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.92e-05/1.041, allocations: 24 kB / 0.633 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.852e-05/1.041, allocations: 0 / 0.633 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.927e-05/1.041, allocations: 7.984 kB / 0.633 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02382/1.065, allocations: 5.672 MB / 0.6385 GB, free: 6.305 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.787e-05/1.065, allocations: 0 / 0.6385 GB, free: 6.305 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001459/1.067, allocations: 195.7 kB / 0.6387 GB, free: 6.113 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002101/1.069, allocations: 492.2 kB / 0.6392 GB, free: 5.629 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002838/1.069, allocations: 24 kB / 0.6392 GB, free: 5.605 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006108/1.075, allocations: 3.429 MB / 0.6425 GB, free: 2.023 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/1.075, allocations: 3.938 kB / 0.6425 GB, free: 2.02 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01062/1.086, allocations: 4.165 MB / 0.6466 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001677/1.088, allocations: 357.1 kB / 0.6469 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00111/1.089, allocations: 20 kB / 0.647 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002373/1.091, allocations: 79.95 kB / 0.647 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003861/1.092, allocations: 68.56 kB / 0.6471 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001669/1.092, allocations: 35.52 kB / 0.6471 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006815/1.099, allocations: 2.252 MB / 0.6493 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.076e-06/1.099, allocations: 0 / 0.6493 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008875/1.108, allocations: 0.7928 MB / 0.6501 GB, free: 10.22 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 (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.0007781/1.109, allocations: 151.1 kB / 0.6503 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01342/1.122, allocations: 4.505 MB / 0.6547 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.464e-05/1.122, allocations: 0 / 0.6547 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002569/1.125, allocations: 1.136 MB / 0.6558 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003743/1.128, allocations: 353.8 kB / 0.6561 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02418/1.153, allocations: 8.9 MB / 0.6648 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007488/1.16, allocations: 2.623 MB / 0.6674 GB, free: 8.488 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00164/1.162, allocations: 247.4 kB / 0.6676 GB, free: 8.246 MB / 0.5137 GB Notification: Performance of SimCode: time 1.643e-06/1.162, allocations: 0 / 0.6676 GB, free: 8.246 MB / 0.5137 GB Notification: Performance of Templates: time 0.5105/1.672, allocations: 60.36 MB / 0.7265 GB, free: 192.7 MB / 0.545 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/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_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches