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.0008613/0.0008612, allocations: 93.58 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001155, allocations: 203.1 kB / 18.93 MB, free: 4.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.7 MB / 247.5 MB, free: 11.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2108/0.2108, allocations: 46.18 MB / 345.9 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000288/0.000288, allocations: 8 kB / 420.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1224, allocations: 63.56 MB / 483.7 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.02706/0.1495, allocations: 28.83 MB / 0.5005 GB, free: 7.246 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01542/0.165, allocations: 6.945 MB / 0.5073 GB, free: 284 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005037/0.1701, allocations: 123.7 kB / 0.5074 GB, free: 160 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2389/0.4089, allocations: 323.6 kB / 0.5078 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004797/0.4138, allocations: 1.45 MB / 0.5092 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001616/0.4154, allocations: 0.5075 MB / 0.5097 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007742/0.4232, allocations: 5.036 MB / 0.5146 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005714/0.4289, allocations: 2.938 MB / 0.5175 GB, free: 9.973 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002348/0.4313, allocations: 0.8451 MB / 0.5183 GB, free: 9.973 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003014/0.4344, allocations: 1.513 MB / 0.5198 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007651/0.4352, allocations: 103.3 kB / 0.5199 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00257/0.4377, allocations: 1.043 MB / 0.5209 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002179/0.4399, allocations: 1.308 MB / 0.5221 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003185/0.4431, allocations: 1.504 MB / 0.5236 GB, free: 9.086 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005407/0.4486, allocations: 4.073 MB / 0.5276 GB, free: 7.137 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.4486, allocations: 0 / 0.5276 GB, free: 7.137 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.4486, allocations: 0 / 0.5276 GB, free: 7.137 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002373/0.4489, allocations: 4 kB / 0.5276 GB, free: 7.133 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.009192/0.4581, allocations: 3.02 MB / 0.5305 GB, free: 5.188 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.4581, allocations: 10.47 kB / 0.5306 GB, free: 5.188 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01707/0.4752, allocations: 2.402 MB / 0.5329 GB, free: 4.141 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005516/0.4808, allocations: 2.139 MB / 0.535 GB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000156/0.4809, allocations: 163.4 kB / 0.5351 GB, free: 3.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001098/0.4821, allocations: 215 kB / 0.5354 GB, free: 3.223 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0144/0.4965, allocations: 7.429 MB / 0.5426 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001823/0.4967, allocations: 35.75 kB / 0.5426 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009664/0.4977, allocations: 108.8 kB / 0.5427 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002918/0.5006, allocations: 1.541 MB / 0.5443 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0134/0.514, allocations: 6.331 MB / 0.5504 GB, free: 6.434 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03825/0.5523, allocations: 30.33 MB / 0.58 GB, free: 7.555 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004685/0.5571, allocations: 2.233 MB / 0.5822 GB, free: 5.176 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001602/0.5587, allocations: 1.135 MB / 0.5833 GB, free: 4.031 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003755/0.5591, allocations: 315.1 kB / 0.5836 GB, free: 3.672 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.618e-05/0.5591, allocations: 45.53 kB / 0.5837 GB, free: 3.621 MB / 430.1 MB Notification: Performance of pre-optimization done (n=108): time 3.968e-06/0.5592, allocations: 4 kB / 0.5837 GB, free: 3.617 MB / 430.1 MB Notification: Performance of matching and sorting (n=132): time 0.03616/0.5953, allocations: 11.84 MB / 0.5952 GB, free: 7.68 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.5955, allocations: 199.7 kB / 0.5954 GB, free: 7.445 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005321/0.6008, allocations: 3.599 MB / 0.5989 GB, free: 3.844 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002803/0.6011, allocations: 41.7 kB / 0.599 GB, free: 3.797 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002052/0.6032, allocations: 2.545 MB / 0.6015 GB, free: 1.258 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006669/0.6039, allocations: 0.5285 MB / 0.602 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006165/0.6045, allocations: 461.6 kB / 0.6024 GB, free: 284 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.6046, allocations: 305.2 kB / 0.6027 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002634/0.6073, allocations: 1.748 MB / 0.6044 GB, free: 14.22 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005262/0.6125, allocations: 5.084 MB / 0.6094 GB, free: 7.512 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00895/0.6215, allocations: 7.364 MB / 0.6166 GB, free: 14.73 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.943e-05/0.6216, allocations: 36 kB / 0.6166 GB, free: 14.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01343/0.6351, allocations: 7.05 MB / 0.6235 GB, free: 7.637 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.863e-05/0.6352, allocations: 59.94 kB / 0.6236 GB, free: 7.578 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001642/0.6354, allocations: 120 kB / 0.6237 GB, free: 7.461 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001703/0.6371, allocations: 0.6415 MB / 0.6243 GB, free: 6.816 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004255/0.6414, allocations: 1.224 MB / 0.6255 GB, free: 5.59 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004733/0.6461, allocations: 3.782 MB / 0.6292 GB, free: 1.68 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003869/0.65, allocations: 295.3 kB / 0.6295 GB, free: 1.391 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007123/0.6507, allocations: 328 kB / 0.6298 GB, free: 1.07 MB / 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.003024/0.6538, allocations: 1.709 MB / 0.6315 GB, free: 15.36 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005734/0.6543, allocations: 292.2 kB / 0.6317 GB, free: 15.07 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004041/0.6584, allocations: 2.088 MB / 0.6338 GB, free: 12.96 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.973e-05/0.6584, allocations: 22.25 kB / 0.6338 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.6585, allocations: 0 / 0.6338 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.6585, allocations: 7.984 kB / 0.6338 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01041/0.6689, allocations: 5.671 MB / 0.6393 GB, free: 7.199 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.6689, allocations: 0 / 0.6393 GB, free: 7.199 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009673/0.6699, allocations: 195.7 kB / 0.6395 GB, free: 7.008 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001354/0.6713, allocations: 492.2 kB / 0.64 GB, free: 6.523 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.738e-05/0.6714, allocations: 20 kB / 0.64 GB, free: 6.504 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003918/0.6753, allocations: 3.232 MB / 0.6432 GB, free: 3.137 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.6753, allocations: 0 / 0.6432 GB, free: 3.137 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006413/0.6817, allocations: 4.163 MB / 0.6472 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/0.6828, allocations: 365.2 kB / 0.6476 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003123/0.6832, allocations: 20 kB / 0.6476 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.6843, allocations: 71.89 kB / 0.6477 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/0.6845, allocations: 76.44 kB / 0.6477 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.793e-05/0.6847, allocations: 39.12 kB / 0.6478 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003727/0.6884, allocations: 2.252 MB / 0.65 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.6884, allocations: 0 / 0.65 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004829/0.6932, allocations: 0.789 MB / 0.6508 GB, free: 11.34 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.0004949/0.6938, allocations: 146.3 kB / 0.6509 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006908/0.7007, allocations: 4.128 MB / 0.6549 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.7007, allocations: 0 / 0.6549 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001609/0.7023, allocations: 1.13 MB / 0.656 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002785/0.7051, allocations: 336.1 kB / 0.6563 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01396/0.7191, allocations: 8.982 MB / 0.6651 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002744/0.7219, allocations: 2.631 MB / 0.6677 GB, free: 9.91 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009355/0.7228, allocations: 239.4 kB / 0.6679 GB, free: 9.68 MB / 0.5137 GB Notification: Performance of SimCode: time 8.02e-07/0.7229, allocations: 4 kB / 0.6679 GB, free: 9.676 MB / 0.5137 GB Notification: Performance of Templates: time 0.3223/1.045, allocations: 59.72 MB / 0.7262 GB, free: 190.4 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