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.001459/0.001459, allocations: 109.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001624/0.001624, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 246.9 MB, free: 10.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2176/0.2176, allocations: 46.11 MB / 344.3 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 77.81 kB / 417.5 MB, free: 20.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1158, allocations: 62.45 MB / 479.9 MB, free: 5.695 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.02819/0.144, allocations: 29.74 MB / 0.4977 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01553/0.1595, allocations: 6.987 MB / 0.5045 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005442/0.165, allocations: 127.6 kB / 0.5047 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2608/0.4258, allocations: 1.636 MB / 0.5063 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005327/0.4313, allocations: 1.44 MB / 0.5077 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00166/0.433, allocations: 0.5071 MB / 0.5082 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008306/0.4413, allocations: 5.044 MB / 0.5131 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003368/0.4447, allocations: 2.17 MB / 0.5152 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001971/0.4467, allocations: 0.9604 MB / 0.5161 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002442/0.4491, allocations: 1.658 MB / 0.5178 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004671/0.4496, allocations: 151.9 kB / 0.5179 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002291/0.4519, allocations: 1.091 MB / 0.519 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001573/0.4535, allocations: 1.37 MB / 0.5203 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001659/0.4552, allocations: 1.572 MB / 0.5219 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00465/0.4598, allocations: 4.17 MB / 0.5259 GB, free: 7.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.4598, allocations: 2 kB / 0.5259 GB, free: 7.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.4599, allocations: 0 / 0.5259 GB, free: 7.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001061/0.46, allocations: 0 / 0.5259 GB, free: 7.82 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.0075/0.4675, allocations: 3.657 MB / 0.5295 GB, free: 5.305 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.4675, allocations: 10.5 kB / 0.5295 GB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01352/0.4811, allocations: 2.327 MB / 0.5318 GB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005043/0.4861, allocations: 2.148 MB / 0.5339 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.4863, allocations: 170.5 kB / 0.534 GB, free: 2.887 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004775/0.4868, allocations: 216.7 kB / 0.5342 GB, free: 2.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01063/0.4974, allocations: 7.409 MB / 0.5415 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.352e-05/0.4975, allocations: 35.75 kB / 0.5415 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002893/0.4978, allocations: 105.8 kB / 0.5416 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002481/0.5003, allocations: 1.547 MB / 0.5431 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.011/0.5113, allocations: 6.313 MB / 0.5493 GB, free: 5.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0389/0.5502, allocations: 30.3 MB / 0.5789 GB, free: 6.883 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005523/0.5558, allocations: 2.232 MB / 0.5811 GB, free: 4.512 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002017/0.5579, allocations: 1.135 MB / 0.5822 GB, free: 3.367 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005374/0.5584, allocations: 321.1 kB / 0.5825 GB, free: 3.008 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.932e-05/0.5585, allocations: 46.98 kB / 0.5825 GB, free: 2.953 MB / 430.1 MB Notification: Performance of pre-optimization done (n=108): time 6.212e-06/0.5585, allocations: 0 / 0.5825 GB, free: 2.953 MB / 430.1 MB Notification: Performance of matching and sorting (n=132): time 0.03835/0.5969, allocations: 11.81 MB / 0.5941 GB, free: 7.047 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.5971, allocations: 196.6 kB / 0.5942 GB, free: 6.812 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006715/0.6038, allocations: 3.603 MB / 0.5978 GB, free: 3.207 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002326/0.604, allocations: 44.52 kB / 0.5978 GB, free: 3.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002043/0.6061, allocations: 2.538 MB / 0.6003 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006825/0.6068, allocations: 0.538 MB / 0.6008 GB, free: 96 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002103/0.6089, allocations: 1.079 MB / 0.6019 GB, free: 15.01 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.609, allocations: 305.1 kB / 0.6021 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00287/0.6119, allocations: 1.746 MB / 0.6039 GB, free: 12.96 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005212/0.6171, allocations: 5.083 MB / 0.6088 GB, free: 6.25 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008697/0.6258, allocations: 7.362 MB / 0.616 GB, free: 13.55 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001126/0.626, allocations: 32 kB / 0.616 GB, free: 13.52 MB / 478.1 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01307/0.6391, allocations: 7.052 MB / 0.6229 GB, free: 6.457 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001459/0.6393, allocations: 58.5 kB / 0.623 GB, free: 6.402 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000207/0.6395, allocations: 119.9 kB / 0.6231 GB, free: 6.285 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001739/0.6412, allocations: 0.6472 MB / 0.6237 GB, free: 5.637 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003971/0.6452, allocations: 1.213 MB / 0.6249 GB, free: 4.422 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004841/0.6501, allocations: 3.776 MB / 0.6286 GB, free: 0.5117 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004264/0.6544, allocations: 299.4 kB / 0.6289 GB, free: 224 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009933/0.6554, allocations: 332 kB / 0.6292 GB, free: 15.89 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 (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.003841/0.6592, allocations: 1.712 MB / 0.6309 GB, free: 14.18 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008373/0.6601, allocations: 300.1 kB / 0.6312 GB, free: 13.88 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004399/0.6645, allocations: 2.088 MB / 0.6332 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.871e-05/0.6646, allocations: 16 kB / 0.6332 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.296e-05/0.6646, allocations: 4 kB / 0.6332 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.527e-05/0.6646, allocations: 3.984 kB / 0.6332 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/0.6766, allocations: 5.675 MB / 0.6388 GB, free: 6.016 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-05/0.6766, allocations: 4 kB / 0.6388 GB, free: 6.012 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.6777, allocations: 187.8 kB / 0.6389 GB, free: 5.828 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001419/0.6791, allocations: 496.2 kB / 0.6394 GB, free: 5.34 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001422/0.6793, allocations: 20 kB / 0.6394 GB, free: 5.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003905/0.6832, allocations: 3.213 MB / 0.6426 GB, free: 1.969 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.6832, allocations: 4.031 kB / 0.6426 GB, free: 1.965 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006727/0.69, allocations: 4.167 MB / 0.6466 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001042/0.691, allocations: 353.1 kB / 0.647 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007424/0.6918, allocations: 24 kB / 0.647 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001564/0.6934, allocations: 75.83 kB / 0.6471 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002308/0.6936, allocations: 68.5 kB / 0.6471 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/0.6937, allocations: 36 kB / 0.6472 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004574/0.6983, allocations: 2.256 MB / 0.6494 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.21e-07/0.6983, allocations: 0 / 0.6494 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004915/0.7033, allocations: 0.7959 MB / 0.6502 GB, free: 10.16 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.000511/0.7038, allocations: 139.1 kB / 0.6503 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007025/0.7108, allocations: 4.124 MB / 0.6543 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.7108, allocations: 4 kB / 0.6543 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00165/0.7125, allocations: 1.134 MB / 0.6554 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002751/0.7153, allocations: 332.1 kB / 0.6557 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01565/0.7309, allocations: 8.906 MB / 0.6644 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003534/0.7345, allocations: 2.623 MB / 0.667 GB, free: 8.828 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009388/0.7355, allocations: 247.4 kB / 0.6672 GB, free: 8.586 MB / 0.5137 GB Notification: Performance of SimCode: time 9.22e-07/0.7355, allocations: 0 / 0.6672 GB, free: 8.586 MB / 0.5137 GB Notification: Performance of Templates: time 0.312/1.047, allocations: 60.35 MB / 0.7262 GB, free: 191.6 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