Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001028/0.001028, allocations: 96.66 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.001209/0.001209, allocations: 201.2 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.362/1.362, allocations: 227.7 MB / 247.5 MB, free: 11.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2114/0.2114, allocations: 46.18 MB / 345.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002781/0.0002782, allocations: 8 kB / 420.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.124, allocations: 63.57 MB / 483.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.0338/0.1578, allocations: 32.37 MB / 0.504 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.249/0.4069, allocations: 7.488 MB / 0.5113 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006631/0.4136, allocations: 136 kB / 0.5114 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001312/0.4149, allocations: 346.7 kB / 0.5118 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004277/0.4192, allocations: 1.482 MB / 0.5132 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001438/0.4206, allocations: 0.5217 MB / 0.5137 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007673/0.4283, allocations: 5.221 MB / 0.5188 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005133/0.4335, allocations: 3.277 MB / 0.522 GB, free: 9.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001779/0.4353, allocations: 0.8747 MB / 0.5229 GB, free: 9.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002365/0.4377, allocations: 1.582 MB / 0.5244 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004033/0.4381, allocations: 107.6 kB / 0.5245 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002038/0.4401, allocations: 1.05 MB / 0.5256 GB, free: 9.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001363/0.4415, allocations: 1.382 MB / 0.5269 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001295/0.4428, allocations: 1.576 MB / 0.5284 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004062/0.4469, allocations: 4.321 MB / 0.5327 GB, free: 4.758 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.4469, allocations: 3.984 kB / 0.5327 GB, free: 4.754 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.4469, allocations: 0 / 0.5327 GB, free: 4.754 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.00011/0.447, allocations: 4 kB / 0.5327 GB, free: 4.75 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.006249/0.4533, allocations: 3.148 MB / 0.5357 GB, free: 2.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.4533, allocations: 9.406 kB / 0.5358 GB, free: 2.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01582/0.4692, allocations: 2.415 MB / 0.5381 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004946/0.4741, allocations: 2.217 MB / 0.5403 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001322/0.4743, allocations: 177.1 kB / 0.5405 GB, free: 28 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006082/0.4749, allocations: 236.5 kB / 0.5407 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01232/0.4873, allocations: 7.806 MB / 0.5483 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.325e-05/0.4874, allocations: 39.64 kB / 0.5483 GB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003265/0.4877, allocations: 114.2 kB / 0.5484 GB, free: 8.652 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002645/0.4904, allocations: 1.585 MB / 0.55 GB, free: 7.078 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01243/0.5028, allocations: 6.603 MB / 0.5564 GB, free: 472 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03908/0.5419, allocations: 31.78 MB / 0.5875 GB, free: 15.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005226/0.5472, allocations: 2.486 MB / 0.5899 GB, free: 13.22 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001782/0.549, allocations: 1.132 MB / 0.591 GB, free: 12.08 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004929/0.5496, allocations: 315.2 kB / 0.5913 GB, free: 11.72 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001188/0.5497, allocations: 50.5 kB / 0.5914 GB, free: 11.66 MB / 446.1 MB Notification: Performance of pre-optimization done (n=104): time 5.571e-06/0.5497, allocations: 0 / 0.5914 GB, free: 11.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=118): time 0.02608/0.5758, allocations: 9.117 MB / 0.6003 GB, free: 2.438 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.576, allocations: 192.7 kB / 0.6005 GB, free: 2.203 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006889/0.5829, allocations: 3.748 MB / 0.6041 GB, free: 14.46 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002353/0.5831, allocations: 49.58 kB / 0.6042 GB, free: 14.41 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002238/0.5854, allocations: 2.691 MB / 0.6068 GB, free: 11.72 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006636/0.5861, allocations: 0.4933 MB / 0.6073 GB, free: 11.23 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008801/0.587, allocations: 478.1 kB / 0.6077 GB, free: 10.76 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.5871, allocations: 305.1 kB / 0.608 GB, free: 10.46 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00316/0.5903, allocations: 1.701 MB / 0.6097 GB, free: 8.754 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005823/0.5961, allocations: 5.255 MB / 0.6148 GB, free: 1.699 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009087/0.6052, allocations: 7.51 MB / 0.6221 GB, free: 8.418 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001116/0.6053, allocations: 36 kB / 0.6222 GB, free: 8.383 MB / 478.1 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.0134/0.6188, allocations: 7.121 MB / 0.6291 GB, free: 1.25 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001223/0.6189, allocations: 63.94 kB / 0.6292 GB, free: 1.188 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002058/0.6191, allocations: 128 kB / 0.6293 GB, free: 1.062 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001714/0.6208, allocations: 0.6571 MB / 0.63 GB, free: 412 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003802/0.6247, allocations: 1.248 MB / 0.6312 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004965/0.6296, allocations: 3.792 MB / 0.6349 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00393/0.6336, allocations: 303.3 kB / 0.6352 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007186/0.6343, allocations: 347.3 kB / 0.6355 GB, free: 10.6 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (682): * Single equations (assignments): 678 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003391/0.6377, allocations: 1.771 MB / 0.6372 GB, free: 8.812 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006422/0.6384, allocations: 304 kB / 0.6375 GB, free: 8.512 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003781/0.6422, allocations: 1.848 MB / 0.6393 GB, free: 6.648 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.794e-05/0.6422, allocations: 12 kB / 0.6393 GB, free: 6.637 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.6422, allocations: 4 kB / 0.6393 GB, free: 6.633 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.305e-05/0.6423, allocations: 3.984 kB / 0.6393 GB, free: 6.629 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01091/0.6532, allocations: 5.231 MB / 0.6444 GB, free: 1.352 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.224e-05/0.6532, allocations: 0 / 0.6444 GB, free: 1.352 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008163/0.654, allocations: 159.8 kB / 0.6446 GB, free: 1.195 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001418/0.6555, allocations: 492.2 kB / 0.6451 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001183/0.6556, allocations: 20 kB / 0.6451 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004/0.6596, allocations: 3.209 MB / 0.6482 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.6597, allocations: 4.031 kB / 0.6482 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006227/0.6659, allocations: 3.732 MB / 0.6519 GB, free: 9.582 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001353/0.6673, allocations: 373.1 kB / 0.6522 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009744/0.6683, allocations: 18.11 kB / 0.6522 GB, free: 9.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001556/0.6698, allocations: 55.92 kB / 0.6523 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.67, allocations: 60.47 kB / 0.6524 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.849e-05/0.6702, allocations: 39.94 kB / 0.6524 GB, free: 9.027 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005113/0.6753, allocations: 2.33 MB / 0.6547 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.6753, allocations: 0 / 0.6547 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004996/0.6803, allocations: 0.7914 MB / 0.6554 GB, free: 5.922 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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.00047/0.6808, allocations: 154.8 kB / 0.6556 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007086/0.6879, allocations: 4.02 MB / 0.6595 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.6879, allocations: 0 / 0.6595 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001568/0.6895, allocations: 0.9977 MB / 0.6605 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003377/0.6929, allocations: 347.5 kB / 0.6608 GB, free: 420 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01571/0.7086, allocations: 9.097 MB / 0.6697 GB, free: 7.266 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003747/0.7124, allocations: 2.705 MB / 0.6723 GB, free: 4.535 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008524/0.7133, allocations: 251.4 kB / 0.6726 GB, free: 4.289 MB / 0.5137 GB Notification: Performance of SimCode: time 1.162e-06/0.7133, allocations: 0 / 0.6726 GB, free: 4.289 MB / 0.5137 GB Notification: Performance of Templates: time 0.3168/1.03, allocations: 60.77 MB / 0.7319 GB, free: 186.3 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches