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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001071/0.001071, allocations: 201.2 kB / 18.11 MB, free: 3.742 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 226.5 MB / 245.4 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008395/0.0008391, allocations: 101.7 kB / 297.5 MB, free: 6.922 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3461/0.3461, allocations: 44.83 MB / 394.3 MB, free: 35.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003827/0.0003827, allocations: 12 kB / 467.9 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3736/0.374, allocations: 62.95 MB / 0.5184 GB, free: 37.45 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1473/0.5214, allocations: 106.7 MB / 0.6226 GB, free: 14.63 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002827/0.5217, allocations: 87.95 kB / 0.6227 GB, free: 14.55 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4951/1.017, allocations: 75.02 MB / 0.6959 GB, free: 100.8 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.017, allocations: 0 / 0.6959 GB, free: 100.8 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002024/1.017, allocations: 66.78 kB / 0.696 GB, free: 100.8 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.01248/1.03, allocations: 3.519 MB / 0.6994 GB, free: 99.14 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/1.03, allocations: 9.656 kB / 0.6994 GB, free: 99.14 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01548/1.045, allocations: 3.456 MB / 0.7028 GB, free: 98.9 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008916/1.054, allocations: 2.969 MB / 0.7057 GB, free: 98.35 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005308/1.055, allocations: 259.6 kB / 0.706 GB, free: 98.34 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00212/1.057, allocations: 353.3 kB / 0.7063 GB, free: 98.34 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02101/1.078, allocations: 8.556 MB / 0.7146 GB, free: 95.72 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004314/1.078, allocations: 54.16 kB / 0.7147 GB, free: 95.71 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001838/1.08, allocations: 180.5 kB / 0.7149 GB, free: 95.71 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001811/1.082, allocations: 0.8271 MB / 0.7157 GB, free: 95.68 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01608/1.098, allocations: 6.824 MB / 0.7223 GB, free: 93.71 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04331/1.141, allocations: 40.95 MB / 0.7623 GB, free: 61.12 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0046/1.146, allocations: 2.415 MB / 0.7647 GB, free: 59.93 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001286/1.147, allocations: 1.015 MB / 0.7657 GB, free: 59.49 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000296/1.148, allocations: 325.5 kB / 0.766 GB, free: 59.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/1.148, allocations: 46.47 kB / 0.766 GB, free: 59.15 MB / 490.7 MB Notification: Performance of pre-optimization done (n=104): time 4.007e-06/1.148, allocations: 0 / 0.766 GB, free: 59.15 MB / 490.7 MB Notification: Performance of matching and sorting (n=118): time 0.01924/1.167, allocations: 8.064 MB / 0.7739 GB, free: 55.43 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.412e-05/1.167, allocations: 190.6 kB / 0.7741 GB, free: 55.21 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004794/1.172, allocations: 3.785 MB / 0.7778 GB, free: 53.84 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001902/1.172, allocations: 45.45 kB / 0.7778 GB, free: 53.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001482/1.174, allocations: 2.816 MB / 0.7806 GB, free: 51.61 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005325/1.174, allocations: 0.4924 MB / 0.7811 GB, free: 51.27 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001739/1.174, allocations: 109.6 kB / 0.7812 GB, free: 51.18 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002697/1.175, allocations: 0.5336 MB / 0.7817 GB, free: 50.78 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002137/1.177, allocations: 1.548 MB / 0.7832 GB, free: 50.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003699/1.181, allocations: 5.171 MB / 0.7882 GB, free: 44.75 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006604/1.187, allocations: 7.325 MB / 0.7954 GB, free: 37.36 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00012/1.187, allocations: 36 kB / 0.7954 GB, free: 37.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=709) (initialization): time 0.01082/1.198, allocations: 6.559 MB / 0.8018 GB, free: 31.49 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.927e-05/1.198, allocations: 63.38 kB / 0.8019 GB, free: 31.43 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001232/1.198, allocations: 128 kB / 0.802 GB, free: 31.31 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006476/1.199, allocations: 344.9 kB / 0.8024 GB, free: 31.01 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003711/1.203, allocations: 1.249 MB / 0.8036 GB, free: 29.91 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002558/1.205, allocations: 2.725 MB / 0.8062 GB, free: 27.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004141/1.21, allocations: 281.4 kB / 0.8065 GB, free: 27.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009489/1.211, allocations: 351.6 kB / 0.8068 GB, free: 26.7 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,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 (674): * Single equations (assignments): 670 * 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.003702/1.214, allocations: 1.842 MB / 0.8086 GB, free: 25.08 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006517/1.215, allocations: 315.9 kB / 0.8089 GB, free: 24.77 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002618/1.218, allocations: 1.352 MB / 0.8103 GB, free: 23.64 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.768e-05/1.218, allocations: 19.94 kB / 0.8103 GB, free: 23.62 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/1.218, allocations: 4 kB / 0.8103 GB, free: 23.61 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/1.218, allocations: 3.844 kB / 0.8103 GB, free: 23.61 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009157/1.227, allocations: 4.811 MB / 0.815 GB, free: 19.67 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.097e-05/1.227, allocations: 0 / 0.815 GB, free: 19.67 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007995/1.228, allocations: 166.2 kB / 0.8151 GB, free: 19.53 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004511/1.228, allocations: 154.4 kB / 0.8153 GB, free: 19.42 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.493e-05/1.228, allocations: 19 kB / 0.8153 GB, free: 19.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001869/1.23, allocations: 2.151 MB / 0.8174 GB, free: 17.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/1.23, allocations: 8.094 kB / 0.8174 GB, free: 17.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003586/1.234, allocations: 3.114 MB / 0.8205 GB, free: 14.42 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009213/1.235, allocations: 372.8 kB / 0.8208 GB, free: 14.03 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002827/1.235, allocations: 12.28 kB / 0.8208 GB, free: 14.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000894/1.236, allocations: 47.94 kB / 0.8209 GB, free: 13.97 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/1.236, allocations: 68.48 kB / 0.8209 GB, free: 13.91 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.928e-05/1.236, allocations: 37.58 kB / 0.821 GB, free: 13.87 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003097/1.239, allocations: 2.344 MB / 0.8233 GB, free: 11.54 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.239, allocations: 0 / 0.8233 GB, free: 11.54 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004135/1.243, allocations: 0.8046 MB / 0.824 GB, free: 10.74 MB / 490.7 MB 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 (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.0003429/1.244, allocations: 163 kB / 0.8242 GB, free: 10.57 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005052/1.249, allocations: 3.751 MB / 0.8279 GB, free: 6.832 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/1.249, allocations: 0 / 0.8279 GB, free: 6.832 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009716/1.25, allocations: 0.8977 MB / 0.8287 GB, free: 5.926 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002771/1.253, allocations: 370.3 kB / 0.8291 GB, free: 5.566 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01434/1.267, allocations: 8.518 MB / 0.8374 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003409/1.27, allocations: 2.808 MB / 0.8402 GB, free: 10.2 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004761/1.275, allocations: 1.715 MB / 0.8418 GB, free: 8.488 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006112/1.276, allocations: 211.4 kB / 0.842 GB, free: 8.285 MB / 0.4948 GB Notification: Performance of SimCode: time 5.15e-06/1.276, allocations: 4 kB / 0.842 GB, free: 8.281 MB / 0.4948 GB Notification: Performance of Templates: time 0.05856/1.334, allocations: 26.13 MB / 0.8676 GB, free: 14.53 MB / 0.5261 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","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches