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.001263/0.001263, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001304/0.001304, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1969/0.1969, allocations: 46.1 MB / 345 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 75.88 kB / 482 MB, free: 4.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2762, allocations: 62.43 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.008894/0.2852, allocations: 8.93 MB / 0.5404 GB, free: 6.602 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006156/0.2914, allocations: 3.545 MB / 0.5438 GB, free: 3.855 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001075/0.2925, allocations: 47.91 kB / 0.5439 GB, free: 3.848 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002982/0.2955, allocations: 1.664 MB / 0.5455 GB, free: 2.723 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003487/0.299, allocations: 1.582 MB / 0.547 GB, free: 1.629 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001194/0.3002, allocations: 0.5564 MB / 0.5476 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004182/0.3044, allocations: 3.568 MB / 0.5511 GB, free: 13.82 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002176/0.3066, allocations: 2.193 MB / 0.5532 GB, free: 11.57 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001385/0.308, allocations: 1.094 MB / 0.5543 GB, free: 10.48 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001703/0.3097, allocations: 1.534 MB / 0.5558 GB, free: 8.938 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003931/0.3102, allocations: 220 kB / 0.556 GB, free: 8.723 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001648/0.3118, allocations: 1.104 MB / 0.5571 GB, free: 7.617 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001123/0.3129, allocations: 1.418 MB / 0.5585 GB, free: 6.195 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001405/0.3144, allocations: 1.607 MB / 0.56 GB, free: 4.578 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004858/0.3192, allocations: 5.39 MB / 0.5653 GB, free: 15.17 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.3193, allocations: 4 kB / 0.5653 GB, free: 15.17 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3193, allocations: 0 / 0.5653 GB, free: 15.17 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.264e-05/0.3194, allocations: 0 / 0.5653 GB, free: 15.17 MB / 430.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.005896/0.3253, allocations: 3.661 MB / 0.5689 GB, free: 11.44 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3253, allocations: 8.031 kB / 0.5689 GB, free: 11.43 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01318/0.3385, allocations: 2.332 MB / 0.5712 GB, free: 9.09 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004509/0.343, allocations: 2.182 MB / 0.5733 GB, free: 6.855 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/0.3432, allocations: 164.5 kB / 0.5734 GB, free: 6.691 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005906/0.3438, allocations: 215.9 kB / 0.5736 GB, free: 6.48 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01012/0.3539, allocations: 7.402 MB / 0.5809 GB, free: 14.45 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.191e-05/0.354, allocations: 39.66 kB / 0.5809 GB, free: 14.41 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003133/0.3544, allocations: 107.9 kB / 0.581 GB, free: 14.31 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002258/0.3566, allocations: 1.543 MB / 0.5825 GB, free: 12.77 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01079/0.3674, allocations: 6.311 MB / 0.5887 GB, free: 6.441 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03111/0.3986, allocations: 30.18 MB / 0.6182 GB, free: 7.332 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004086/0.4027, allocations: 2.231 MB / 0.6203 GB, free: 4.953 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001372/0.4041, allocations: 1.137 MB / 0.6214 GB, free: 3.805 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003374/0.4045, allocations: 319.5 kB / 0.6217 GB, free: 3.438 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.34e-05/0.4045, allocations: 43 kB / 0.6218 GB, free: 3.387 MB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 3.617e-06/0.4045, allocations: 4 kB / 0.6218 GB, free: 3.383 MB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.03224/0.4368, allocations: 11.82 MB / 0.6333 GB, free: 7.41 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.718e-05/0.4369, allocations: 196.6 kB / 0.6335 GB, free: 7.176 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00435/0.4413, allocations: 3.599 MB / 0.637 GB, free: 3.574 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002176/0.4415, allocations: 41.7 kB / 0.6371 GB, free: 3.527 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001476/0.443, allocations: 2.542 MB / 0.6396 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004961/0.4435, allocations: 0.5364 MB / 0.6401 GB, free: 416 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001187/0.4447, allocations: 1.083 MB / 0.6411 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.141e-05/0.4448, allocations: 305.1 kB / 0.6414 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002303/0.4471, allocations: 1.74 MB / 0.6431 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004237/0.4513, allocations: 5.088 MB / 0.6481 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007535/0.4589, allocations: 7.367 MB / 0.6553 GB, free: 13.46 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.133e-05/0.459, allocations: 32 kB / 0.6553 GB, free: 13.43 MB / 0.5138 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01154/0.4706, allocations: 7.055 MB / 0.6622 GB, free: 6.367 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.621e-05/0.4707, allocations: 62.88 kB / 0.6623 GB, free: 6.309 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001314/0.4708, allocations: 116 kB / 0.6624 GB, free: 6.195 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001476/0.4723, allocations: 0.6408 MB / 0.663 GB, free: 5.551 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00349/0.4758, allocations: 1.212 MB / 0.6642 GB, free: 4.336 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004332/0.4802, allocations: 4.06 MB / 0.6682 GB, free: 136 kB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003473/0.4837, allocations: 307.4 kB / 0.6685 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006375/0.4843, allocations: 328 kB / 0.6688 GB, free: 15.51 MB / 0.5294 GB 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.002261/0.4866, allocations: 1.701 MB / 0.6704 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005131/0.4871, allocations: 300.1 kB / 0.6707 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003476/0.4906, allocations: 2.084 MB / 0.6727 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.943e-05/0.4907, allocations: 20 kB / 0.6728 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/0.4907, allocations: 7.984 kB / 0.6728 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/0.4907, allocations: 7.984 kB / 0.6728 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009095/0.4998, allocations: 5.597 MB / 0.6782 GB, free: 5.684 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/0.4998, allocations: 0 / 0.6782 GB, free: 5.684 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000914/0.5008, allocations: 199.7 kB / 0.6784 GB, free: 5.488 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001257/0.502, allocations: 484.3 kB / 0.6789 GB, free: 5.012 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001191/0.5022, allocations: 27.98 kB / 0.6789 GB, free: 4.984 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003568/0.5057, allocations: 3.441 MB / 0.6823 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.5058, allocations: 0 / 0.6823 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005566/0.5113, allocations: 4.168 MB / 0.6864 GB, free: 13.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008258/0.5122, allocations: 357.1 kB / 0.6867 GB, free: 12.83 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003846/0.5126, allocations: 23.98 kB / 0.6867 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.5137, allocations: 71.97 kB / 0.6868 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001875/0.5139, allocations: 76.44 kB / 0.6869 GB, free: 12.66 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.485e-05/0.514, allocations: 39.98 kB / 0.6869 GB, free: 12.62 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003253/0.5172, allocations: 2.252 MB / 0.6891 GB, free: 10.38 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.51e-07/0.5173, allocations: 0 / 0.6891 GB, free: 10.38 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004171/0.5214, allocations: 0.7812 MB / 0.6899 GB, free: 9.598 MB / 0.545 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.0004381/0.5219, allocations: 147 kB / 0.69 GB, free: 9.445 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006462/0.5284, allocations: 4.144 MB / 0.6941 GB, free: 5.309 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.104e-06/0.5284, allocations: 0 / 0.6941 GB, free: 5.309 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001633/0.5301, allocations: 1.132 MB / 0.6952 GB, free: 4.168 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002063/0.5322, allocations: 374.5 kB / 0.6955 GB, free: 3.805 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/0.5433, allocations: 7.39 MB / 0.7027 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002335/0.5457, allocations: 2.627 MB / 0.7053 GB, free: 9.707 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007927/0.5465, allocations: 247.3 kB / 0.7055 GB, free: 9.465 MB / 0.5606 GB Notification: Performance of SimCode: time 6.41e-07/0.5465, allocations: 7.938 kB / 0.7055 GB, free: 9.457 MB / 0.5606 GB Notification: Performance of Templates: time 0.2854/0.8319, allocations: 60.92 MB / 0.765 GB, free: 154.1 MB / 0.5763 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