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.001077/0.001077, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001101/0.001101, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2054/0.2054, allocations: 46.11 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 71.88 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.099/0.1004, allocations: 62.45 MB / 481.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.00927/0.1097, allocations: 8.918 MB / 490.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006005/0.1157, allocations: 3.555 MB / 493.9 MB, free: 8.008 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000667/0.1164, allocations: 47.88 kB / 494 MB, free: 7.961 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002745/0.1191, allocations: 1.654 MB / 495.6 MB, free: 6.301 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002727/0.1219, allocations: 1.549 MB / 497.2 MB, free: 4.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000995/0.1229, allocations: 0.5496 MB / 497.7 MB, free: 4.199 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004003/0.1269, allocations: 3.572 MB / 0.4895 GB, free: 0.6172 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002193/0.1291, allocations: 2.185 MB / 0.4917 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001245/0.1304, allocations: 1.102 MB / 0.4928 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001618/0.132, allocations: 1.526 MB / 0.4942 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003615/0.1324, allocations: 220 kB / 0.4945 GB, free: 11.53 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001675/0.1341, allocations: 1.096 MB / 0.4955 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001181/0.1353, allocations: 1.418 MB / 0.4969 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001286/0.1366, allocations: 1.603 MB / 0.4985 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005599/0.1422, allocations: 5.388 MB / 0.5037 GB, free: 1.988 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.1422, allocations: 0 / 0.5037 GB, free: 1.988 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1422, allocations: 0 / 0.5037 GB, free: 1.988 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001219/0.1424, allocations: 0 / 0.5037 GB, free: 1.988 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.2085/0.3508, allocations: 3.667 MB / 0.5073 GB, free: 39.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.3509, allocations: 11.09 kB / 0.5073 GB, free: 39.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01478/0.3657, allocations: 2.328 MB / 0.5096 GB, free: 39.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005607/0.3713, allocations: 2.182 MB / 0.5117 GB, free: 38.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/0.3715, allocations: 158.5 kB / 0.5119 GB, free: 38.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004861/0.372, allocations: 227.1 kB / 0.5121 GB, free: 38.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01052/0.3825, allocations: 7.406 MB / 0.5193 GB, free: 34.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-05/0.3826, allocations: 36.23 kB / 0.5194 GB, free: 34.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002725/0.3829, allocations: 106.2 kB / 0.5195 GB, free: 34.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002203/0.3851, allocations: 1.544 MB / 0.521 GB, free: 34.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01021/0.3953, allocations: 6.308 MB / 0.5271 GB, free: 31.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02929/0.4247, allocations: 30.17 MB / 0.5566 GB, free: 328 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004881/0.4296, allocations: 2.248 MB / 0.5588 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001583/0.4312, allocations: 1.141 MB / 0.5599 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004329/0.4317, allocations: 319.5 kB / 0.5602 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.717e-05/0.4318, allocations: 47 kB / 0.5603 GB, free: 12.35 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 3.968e-06/0.4318, allocations: 0 / 0.5603 GB, free: 12.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=132): time 0.03537/0.4671, allocations: 11.8 MB / 0.5718 GB, free: 404 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/0.4673, allocations: 192.6 kB / 0.572 GB, free: 168 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005293/0.4726, allocations: 3.607 MB / 0.5755 GB, free: 12.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001702/0.4728, allocations: 45.7 kB / 0.5755 GB, free: 12.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001807/0.4746, allocations: 2.542 MB / 0.578 GB, free: 9.926 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005799/0.4752, allocations: 0.5248 MB / 0.5785 GB, free: 9.395 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001364/0.4765, allocations: 1.079 MB / 0.5796 GB, free: 8.305 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.4767, allocations: 301.1 kB / 0.5799 GB, free: 8.008 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002467/0.4791, allocations: 1.74 MB / 0.5816 GB, free: 6.262 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004524/0.4837, allocations: 5.084 MB / 0.5865 GB, free: 15.49 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008235/0.4919, allocations: 7.378 MB / 0.5937 GB, free: 6.457 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.836e-05/0.4921, allocations: 40 kB / 0.5938 GB, free: 6.418 MB / 430.1 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01294/0.505, allocations: 7.051 MB / 0.6007 GB, free: 15.36 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001107/0.5052, allocations: 59.98 kB / 0.6007 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001608/0.5053, allocations: 117 kB / 0.6008 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001576/0.5069, allocations: 0.6373 MB / 0.6015 GB, free: 14.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003698/0.5106, allocations: 1.22 MB / 0.6026 GB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005331/0.516, allocations: 4.064 MB / 0.6066 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003639/0.5196, allocations: 295.3 kB / 0.6069 GB, free: 8.828 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007787/0.5204, allocations: 328 kB / 0.6072 GB, free: 8.508 MB / 446.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.002853/0.5233, allocations: 1.705 MB / 0.6089 GB, free: 6.793 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006225/0.5239, allocations: 292.2 kB / 0.6092 GB, free: 6.504 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004001/0.528, allocations: 2.092 MB / 0.6112 GB, free: 4.398 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.847e-05/0.528, allocations: 19.98 kB / 0.6112 GB, free: 4.379 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.528, allocations: 0 / 0.6112 GB, free: 4.379 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.471e-05/0.528, allocations: 11.97 kB / 0.6112 GB, free: 4.367 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01095/0.539, allocations: 5.635 MB / 0.6167 GB, free: 14.65 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/0.539, allocations: 4 kB / 0.6167 GB, free: 14.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009765/0.54, allocations: 207.5 kB / 0.6169 GB, free: 14.44 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001294/0.5413, allocations: 488.6 kB / 0.6174 GB, free: 13.96 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001139/0.5415, allocations: 23.98 kB / 0.6174 GB, free: 13.94 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00381/0.5453, allocations: 3.425 MB / 0.6208 GB, free: 10.37 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.5453, allocations: 4.031 kB / 0.6208 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005944/0.5512, allocations: 4.17 MB / 0.6248 GB, free: 6.164 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/0.5523, allocations: 353.1 kB / 0.6252 GB, free: 5.797 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006302/0.5529, allocations: 31.92 kB / 0.6252 GB, free: 5.766 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/0.5544, allocations: 67.91 kB / 0.6253 GB, free: 5.699 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002142/0.5546, allocations: 68.56 kB / 0.6253 GB, free: 5.629 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.5547, allocations: 47.97 kB / 0.6254 GB, free: 5.582 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004359/0.5591, allocations: 2.248 MB / 0.6276 GB, free: 3.344 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5591, allocations: 0 / 0.6276 GB, free: 3.344 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004611/0.5637, allocations: 0.7839 MB / 0.6283 GB, free: 2.562 MB / 462.1 MB 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.0004153/0.5641, allocations: 153.6 kB / 0.6285 GB, free: 2.406 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006373/0.5705, allocations: 4.142 MB / 0.6325 GB, free: 14.28 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.5706, allocations: 0 / 0.6325 GB, free: 14.28 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001665/0.5722, allocations: 1.13 MB / 0.6336 GB, free: 13.14 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002209/0.5745, allocations: 359.1 kB / 0.634 GB, free: 12.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01167/0.5861, allocations: 7.063 MB / 0.6409 GB, free: 5.691 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003113/0.5893, allocations: 2.642 MB / 0.6435 GB, free: 3.02 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003732/0.593, allocations: 1.674 MB / 0.6451 GB, free: 1.344 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000727/0.5938, allocations: 207.4 kB / 0.6453 GB, free: 1.141 MB / 478.1 MB Notification: Performance of SimCode: time 8.11e-07/0.5938, allocations: 0 / 0.6453 GB, free: 1.141 MB / 478.1 MB Notification: Performance of Templates: time 0.04905/0.6428, allocations: 24.58 MB / 0.6693 GB, free: 8.637 MB / 0.4981 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 -s gbode -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