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: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000815/0.0008149, allocations: 91.14 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000913/0.000913, allocations: 196.7 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.156/1.156, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1629/0.1629, allocations: 46.19 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002053/0.0002054, allocations: 8 kB / 419.6 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08364/0.08386, allocations: 63.56 MB / 483.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.02273/0.1066, allocations: 28.84 MB / 0.5 GB, free: 7.121 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01115/0.1178, allocations: 6.933 MB / 0.5068 GB, free: 168 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003054/0.1209, allocations: 123.7 kB / 0.5069 GB, free: 44 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1692/0.2901, allocations: 315.8 kB / 0.5072 GB, free: 9.945 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003023/0.2932, allocations: 1.455 MB / 0.5086 GB, free: 9.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009068/0.2941, allocations: 0.5118 MB / 0.5091 GB, free: 9.891 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004744/0.2989, allocations: 5.04 MB / 0.514 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003555/0.3024, allocations: 2.932 MB / 0.5169 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001049/0.3035, allocations: 0.849 MB / 0.5177 GB, free: 9.488 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00153/0.305, allocations: 1.507 MB / 0.5192 GB, free: 9.398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002056/0.3052, allocations: 102.5 kB / 0.5193 GB, free: 9.398 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001397/0.3066, allocations: 1.046 MB / 0.5203 GB, free: 9.391 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009227/0.3076, allocations: 1.302 MB / 0.5216 GB, free: 9.238 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009405/0.3085, allocations: 1.554 MB / 0.5231 GB, free: 8.602 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003296/0.3118, allocations: 5.193 MB / 0.5282 GB, free: 5.914 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.3118, allocations: 0 / 0.5282 GB, free: 5.914 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.3118, allocations: 0 / 0.5282 GB, free: 5.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.059e-05/0.3119, allocations: 0 / 0.5282 GB, free: 5.914 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.005211/0.3171, allocations: 3.131 MB / 0.5312 GB, free: 3.918 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.3171, allocations: 10.47 kB / 0.5313 GB, free: 3.918 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004685/0.3176, allocations: 0.541 MB / 0.5318 GB, free: 3.746 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08153/0.3992, allocations: 7.12 MB / 0.5387 GB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004373/0.4036, allocations: 2.363 MB / 0.541 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.132e-05/0.4037, allocations: 161.2 kB / 0.5412 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003659/0.404, allocations: 221.1 kB / 0.5414 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009066/0.4131, allocations: 7.348 MB / 0.5486 GB, free: 7.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.054e-05/0.4132, allocations: 42.83 kB / 0.5486 GB, free: 7.316 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002632/0.4135, allocations: 110.4 kB / 0.5487 GB, free: 7.238 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00227/0.4157, allocations: 1.541 MB / 0.5502 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008605/0.4243, allocations: 6.194 MB / 0.5563 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02549/0.4498, allocations: 30 MB / 0.5856 GB, free: 1.125 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003777/0.4536, allocations: 2.176 MB / 0.5877 GB, free: 14.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/0.4548, allocations: 1.074 MB / 0.5888 GB, free: 13.73 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003014/0.4551, allocations: 327.1 kB / 0.5891 GB, free: 13.36 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.4552, allocations: 42.84 kB / 0.5891 GB, free: 13.31 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 2.775e-06/0.4552, allocations: 6.906 kB / 0.5891 GB, free: 13.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=132): time 0.02881/0.484, allocations: 10.9 MB / 0.5998 GB, free: 2.32 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.917e-05/0.4841, allocations: 195.6 kB / 0.5999 GB, free: 2.09 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004036/0.4882, allocations: 3.613 MB / 0.6035 GB, free: 14.48 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.869e-05/0.4882, allocations: 41.7 kB / 0.6035 GB, free: 14.43 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00145/0.4897, allocations: 2.56 MB / 0.606 GB, free: 11.87 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003707/0.4901, allocations: 0.5324 MB / 0.6065 GB, free: 11.34 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004575/0.4905, allocations: 441.3 kB / 0.607 GB, free: 10.91 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.657e-05/0.4906, allocations: 309.1 kB / 0.6073 GB, free: 10.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002056/0.4927, allocations: 1.626 MB / 0.6088 GB, free: 8.969 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003837/0.4965, allocations: 4.972 MB / 0.6137 GB, free: 2.371 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006308/0.5028, allocations: 7.169 MB / 0.6207 GB, free: 9.785 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.773e-05/0.5029, allocations: 36 kB / 0.6207 GB, free: 9.75 MB / 478.1 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.008286/0.5112, allocations: 6.558 MB / 0.6271 GB, free: 3.188 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.808e-05/0.5113, allocations: 56 kB / 0.6272 GB, free: 3.133 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.951e-05/0.5114, allocations: 120 kB / 0.6273 GB, free: 3.016 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007583/0.5121, allocations: 397.1 kB / 0.6277 GB, free: 2.625 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002836/0.515, allocations: 1.189 MB / 0.6288 GB, free: 1.434 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002945/0.5179, allocations: 3.078 MB / 0.6318 GB, free: 14.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00258/0.5205, allocations: 287.3 kB / 0.6321 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003146/0.5208, allocations: 320 kB / 0.6324 GB, free: 13.63 MB / 494.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 (640): * Single equations (assignments): 636 * 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.002021/0.5229, allocations: 1.7 MB / 0.6341 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003325/0.5232, allocations: 304.1 kB / 0.6344 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002592/0.5258, allocations: 1.722 MB / 0.6361 GB, free: 9.887 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.829e-05/0.5258, allocations: 16 kB / 0.6361 GB, free: 9.871 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.5258, allocations: 4 kB / 0.6361 GB, free: 9.867 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.5259, allocations: 3.984 kB / 0.6361 GB, free: 9.863 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006948/0.5328, allocations: 5.313 MB / 0.6413 GB, free: 4.484 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.5328, allocations: 0 / 0.6413 GB, free: 4.484 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008135/0.5336, allocations: 191.7 kB / 0.6415 GB, free: 4.297 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005595/0.5342, allocations: 228.6 kB / 0.6417 GB, free: 4.07 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-05/0.5343, allocations: 27.92 kB / 0.6417 GB, free: 4.043 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002309/0.5366, allocations: 2.505 MB / 0.6441 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5366, allocations: 3.938 kB / 0.6441 GB, free: 1.398 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004254/0.5409, allocations: 3.709 MB / 0.6478 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00045/0.5413, allocations: 360.9 kB / 0.6481 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002427/0.5416, allocations: 30.33 kB / 0.6481 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009366/0.5425, allocations: 63.91 kB / 0.6482 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/0.5427, allocations: 76.44 kB / 0.6483 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.716e-05/0.5428, allocations: 36 kB / 0.6483 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002535/0.5453, allocations: 2.261 MB / 0.6505 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5453, allocations: 288 / 0.6505 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00294/0.5483, allocations: 0.7569 MB / 0.6513 GB, free: 10.08 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.00465/0.5529, allocations: 4.343 MB / 0.6555 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004786/0.5577, allocations: 3.909 MB / 0.6593 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.5577, allocations: 4 kB / 0.6593 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001212/0.559, allocations: 1.06 MB / 0.6604 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/0.561, allocations: 351.1 kB / 0.6607 GB, free: 392 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04468/0.6056, allocations: 42.04 MB / 0.7017 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002566/0.6083, allocations: 2.635 MB / 0.7043 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003576/0.6119, allocations: 1.671 MB / 0.7059 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001486/0.6133, allocations: 1.401 MB / 0.7073 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of SimCode: time 5.21e-07/0.6134, allocations: 0 / 0.7073 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2305/0.8439, allocations: 55.53 MB / 0.7615 GB, free: 186.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001316/0.844, allocations: 215.1 kB / 0.7617 GB, free: 186.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.675/3.519, allocations: 0 / 0.7617 GB, free: 186.3 MB / 0.5606 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance.fmu > 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