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.001049/0.001049, allocations: 98.02 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001037/0.001037, allocations: 208.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2388/0.2388, allocations: 45.92 MB / 344 MB, free: 12.36 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000283/0.000283, allocations: 8 kB / 417.9 MB, free: 20.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.142, allocations: 63.46 MB / 481.4 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0264/0.1685, allocations: 28.69 MB / 0.4981 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01968/0.1882, allocations: 7.521 MB / 0.5055 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006167/0.1944, allocations: 139.6 kB / 0.5056 GB, free: 1 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2809/0.4754, allocations: 1.389 MB / 0.5069 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01662/0.492, allocations: 4.252 MB / 0.5111 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002331/0.4944, allocations: 471.5 kB / 0.5115 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03968/0.5341, allocations: 24.64 MB / 0.5356 GB, free: 7.633 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004464/0.5386, allocations: 2.604 MB / 0.5382 GB, free: 5.754 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001863/0.5405, allocations: 0.7971 MB / 0.5389 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001581/0.5421, allocations: 1.067 MB / 0.54 GB, free: 4.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003348/0.5425, allocations: 104 kB / 0.5401 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001527/0.544, allocations: 0.881 MB / 0.5409 GB, free: 3.676 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001028/0.545, allocations: 1.215 MB / 0.5421 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007433/0.5458, allocations: 0.6454 MB / 0.5428 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004045/0.5499, allocations: 4.336 MB / 0.547 GB, free: 14.83 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.5499, allocations: 0 / 0.547 GB, free: 14.83 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.429e-06/0.5499, allocations: 4 kB / 0.547 GB, free: 14.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001638/0.5501, allocations: 0 / 0.547 GB, free: 14.82 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.009431/0.5595, allocations: 3.299 MB / 0.5502 GB, free: 11.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.5596, allocations: 12.02 kB / 0.5502 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08461/0.6442, allocations: 8.214 MB / 0.5582 GB, free: 3.922 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006777/0.651, allocations: 2.245 MB / 0.5604 GB, free: 2.254 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/0.6511, allocations: 165.5 kB / 0.5606 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000462/0.6516, allocations: 225 kB / 0.5608 GB, free: 2.016 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01137/0.663, allocations: 7.546 MB / 0.5682 GB, free: 11.95 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.053e-05/0.6631, allocations: 38.84 kB / 0.5682 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002939/0.6634, allocations: 111.6 kB / 0.5683 GB, free: 11.89 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002713/0.6661, allocations: 1.602 MB / 0.5699 GB, free: 10.56 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01275/0.6789, allocations: 6.375 MB / 0.5761 GB, free: 5.188 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03974/0.7187, allocations: 30.42 MB / 0.6058 GB, free: 6.176 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004414/0.7232, allocations: 2.174 MB / 0.6079 GB, free: 3.852 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003907/0.7236, allocations: 325 kB / 0.6082 GB, free: 3.484 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.61e-05/0.7237, allocations: 54.94 kB / 0.6083 GB, free: 3.422 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 3.877e-06/0.7237, allocations: 0 / 0.6083 GB, free: 3.422 MB / 446.1 MB Notification: Performance of matching and sorting (n=132): time 0.03367/0.7573, allocations: 11.22 MB / 0.6193 GB, free: 8.043 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/0.7575, allocations: 196.6 kB / 0.6195 GB, free: 7.809 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006138/0.7637, allocations: 3.772 MB / 0.6231 GB, free: 4.043 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003253/0.764, allocations: 41.7 kB / 0.6232 GB, free: 3.996 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002107/0.7661, allocations: 2.609 MB / 0.6257 GB, free: 1.402 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007192/0.7669, allocations: 0.5238 MB / 0.6262 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/0.7671, allocations: 108 kB / 0.6263 GB, free: 0.7773 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003287/0.7674, allocations: 0.5211 MB / 0.6268 GB, free: 256 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002607/0.77, allocations: 1.619 MB / 0.6284 GB, free: 14.62 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005315/0.7754, allocations: 4.945 MB / 0.6333 GB, free: 7.992 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004391/0.7798, allocations: 2.777 MB / 0.636 GB, free: 5.223 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.368e-05/0.7799, allocations: 36 kB / 0.636 GB, free: 5.188 MB / 478.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01278/0.7927, allocations: 6.546 MB / 0.6424 GB, free: 14.63 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.4e-05/0.7928, allocations: 59.12 kB / 0.6425 GB, free: 14.58 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001345/0.7929, allocations: 120 kB / 0.6426 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/0.794, allocations: 417.5 kB / 0.643 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004016/0.798, allocations: 1.189 MB / 0.6441 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003753/0.8018, allocations: 3.135 MB / 0.6472 GB, free: 9.598 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004304/0.8061, allocations: 285.3 kB / 0.6475 GB, free: 9.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007967/0.807, allocations: 331.9 kB / 0.6478 GB, free: 8.996 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.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 (643): * Single equations (assignments): 639 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003046/0.81, allocations: 1.733 MB / 0.6495 GB, free: 7.254 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006229/0.8106, allocations: 304.1 kB / 0.6498 GB, free: 6.953 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002878/0.8135, allocations: 1.714 MB / 0.6514 GB, free: 5.227 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.351e-05/0.8136, allocations: 16 kB / 0.6514 GB, free: 5.211 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.8136, allocations: 4 kB / 0.6514 GB, free: 5.207 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.8136, allocations: 7.938 kB / 0.6515 GB, free: 5.199 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009708/0.8233, allocations: 5.376 MB / 0.6567 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-05/0.8234, allocations: 0 / 0.6567 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009921/0.8244, allocations: 195.7 kB / 0.6569 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007011/0.8251, allocations: 228.7 kB / 0.6571 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/0.8252, allocations: 23.98 kB / 0.6571 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002983/0.8282, allocations: 2.561 MB / 0.6596 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.221e-06/0.8282, allocations: 10.16 kB / 0.6596 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005491/0.8337, allocations: 3.815 MB / 0.6634 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/0.8352, allocations: 376.9 kB / 0.6637 GB, free: 8.355 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003254/0.8356, allocations: 27.95 kB / 0.6638 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.8367, allocations: 63.98 kB / 0.6638 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/0.8368, allocations: 72.5 kB / 0.6639 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.48e-05/0.8369, allocations: 43.19 kB / 0.6639 GB, free: 8.152 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003963/0.8409, allocations: 2.375 MB / 0.6662 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8409, allocations: 0 / 0.6662 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004887/0.8458, allocations: 0.7968 MB / 0.667 GB, free: 4.992 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004465/0.8463, allocations: 160.4 kB / 0.6672 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006748/0.853, allocations: 3.92 MB / 0.671 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.8531, allocations: 0 / 0.671 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001532/0.8546, allocations: 1.056 MB / 0.672 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001957/0.8566, allocations: 357 kB / 0.6724 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/0.8695, allocations: 8.301 MB / 0.6805 GB, free: 7.176 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002751/0.8722, allocations: 2.746 MB / 0.6832 GB, free: 4.406 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004381/0.8766, allocations: 1.683 MB / 0.6848 GB, free: 2.719 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006485/0.8773, allocations: 215.3 kB / 0.685 GB, free: 2.508 MB / 0.5137 GB Notification: Performance of SimCode: time 1.042e-06/0.8773, allocations: 0 / 0.685 GB, free: 2.508 MB / 0.5137 GB Notification: Performance of Templates: time 0.05586/0.9332, allocations: 27.22 MB / 0.7116 GB, free: 7.469 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches