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: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000987/0.000987, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008304/0.0008304, allocations: 86.48 kB / 292.1 MB, free: 5.918 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1731/0.1731, allocations: 45.14 MB / 389.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.736e-05/2.74e-05, allocations: 0 / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08562/0.08567, allocations: 63.25 MB / 0.5115 GB, free: 6.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3539/0.4396, allocations: 106.6 MB / 0.6156 GB, free: 3.422 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001773/0.4398, allocations: 74.47 kB / 0.6157 GB, free: 3.387 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1831/0.6229, allocations: 76.63 MB / 0.6905 GB, free: 14.8 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.6229, allocations: 3.938 kB / 0.6905 GB, free: 14.8 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001658/0.6231, allocations: 64 kB / 0.6906 GB, free: 14.73 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.008734/0.6318, allocations: 3.378 MB / 0.6939 GB, free: 11.3 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.6319, allocations: 15.97 kB / 0.6939 GB, free: 11.28 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001774/0.6337, allocations: 0.6469 MB / 0.6945 GB, free: 10.62 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01602/0.6497, allocations: 4.285 MB / 0.6987 GB, free: 6.328 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009555/0.6593, allocations: 3.604 MB / 0.7022 GB, free: 2.66 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002577/0.6596, allocations: 254.8 kB / 0.7024 GB, free: 2.41 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001406/0.661, allocations: 347.8 kB / 0.7028 GB, free: 2.07 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01535/0.6764, allocations: 8.494 MB / 0.7111 GB, free: 8.602 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001686/0.6766, allocations: 59.45 kB / 0.7111 GB, free: 8.543 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008273/0.6774, allocations: 179.8 kB / 0.7113 GB, free: 8.367 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001036/0.6784, allocations: 0.8255 MB / 0.7121 GB, free: 7.539 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01129/0.6897, allocations: 6.728 MB / 0.7187 GB, free: 0.7969 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2884/0.9782, allocations: 40.95 MB / 0.7587 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004076/0.9823, allocations: 2.391 MB / 0.761 GB, free: 109.5 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001103/0.9834, allocations: 1.003 MB / 0.762 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002646/0.9837, allocations: 328.2 kB / 0.7623 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.21e-05/0.9837, allocations: 48.98 kB / 0.7623 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=104): time 2.955e-06/0.9837, allocations: 0.9688 kB / 0.7623 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=118): time 0.01525/0.999, allocations: 6.977 MB / 0.7692 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/0.9991, allocations: 191.8 kB / 0.7693 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004407/1.003, allocations: 3.346 MB / 0.7726 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 9.549e-05/1.004, allocations: 44.92 kB / 0.7727 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001423/1.005, allocations: 2.821 MB / 0.7754 GB, free: 105 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000375/1.005, allocations: 497.8 kB / 0.7759 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/1.006, allocations: 111.2 kB / 0.776 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002394/1.006, allocations: 0.532 MB / 0.7765 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00201/1.008, allocations: 1.505 MB / 0.778 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002614/1.01, allocations: 5.115 MB / 0.783 GB, free: 99.66 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002656/1.013, allocations: 2.779 MB / 0.7857 GB, free: 99.64 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.284e-05/1.013, allocations: 34.5 kB / 0.7857 GB, free: 99.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=709) (initialization): time 0.007492/1.021, allocations: 6.491 MB / 0.7921 GB, free: 99.28 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 5.979e-05/1.021, allocations: 61.12 kB / 0.7921 GB, free: 99.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.794e-05/1.021, allocations: 132 kB / 0.7922 GB, free: 99.28 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005838/1.021, allocations: 358.8 kB / 0.7926 GB, free: 99.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002827/1.024, allocations: 1.246 MB / 0.7938 GB, free: 99.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002237/1.027, allocations: 2.713 MB / 0.7964 GB, free: 97.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003539/1.03, allocations: 286.6 kB / 0.7967 GB, free: 97.73 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005821/1.031, allocations: 344.8 kB / 0.7971 GB, free: 97.73 MB / 0.5261 GB 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 () * 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.0007313/1.031, allocations: 0.5425 MB / 0.7976 GB, free: 97.41 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004549/1.032, allocations: 309.8 kB / 0.7979 GB, free: 97.25 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/1.034, allocations: 1.337 MB / 0.7992 GB, free: 97.14 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.857e-05/1.034, allocations: 18.2 kB / 0.7992 GB, free: 97.14 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/1.034, allocations: 0 / 0.7992 GB, free: 97.14 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.988e-06/1.034, allocations: 7.562 kB / 0.7992 GB, free: 97.14 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006999/1.041, allocations: 4.775 MB / 0.8039 GB, free: 96.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/1.041, allocations: 2.906 kB / 0.8039 GB, free: 96.37 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007122/1.042, allocations: 168.5 kB / 0.804 GB, free: 96.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003961/1.042, allocations: 158.5 kB / 0.8042 GB, free: 96.32 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.007e-05/1.042, allocations: 19.28 kB / 0.8042 GB, free: 96.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001664/1.044, allocations: 2.145 MB / 0.8063 GB, free: 94.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/1.044, allocations: 6.984 kB / 0.8063 GB, free: 94.67 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003172/1.047, allocations: 3.174 MB / 0.8094 GB, free: 93.16 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007253/1.048, allocations: 375.3 kB / 0.8098 GB, free: 92.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002609/1.048, allocations: 19.03 kB / 0.8098 GB, free: 92.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008734/1.049, allocations: 50.8 kB / 0.8098 GB, free: 92.85 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/1.049, allocations: 58.06 kB / 0.8099 GB, free: 92.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.777e-05/1.049, allocations: 38.89 kB / 0.8099 GB, free: 92.83 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002608/1.052, allocations: 2.314 MB / 0.8122 GB, free: 92.03 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/1.052, allocations: 2.469 kB / 0.8122 GB, free: 92.03 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003387/1.055, allocations: 0.798 MB / 0.813 GB, free: 91.93 MB / 0.5261 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 () * 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.003281/1.058, allocations: 4.032 MB / 0.8169 GB, free: 89.68 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004742/1.063, allocations: 3.703 MB / 0.8205 GB, free: 88.37 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/1.063, allocations: 0 / 0.8205 GB, free: 88.37 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000894/1.064, allocations: 0.8896 MB / 0.8214 GB, free: 87.99 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001623/1.066, allocations: 357.8 kB / 0.8217 GB, free: 87.83 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0116/1.077, allocations: 6.956 MB / 0.8285 GB, free: 85.31 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002265/1.08, allocations: 2.877 MB / 0.8313 GB, free: 84.14 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003903/1.084, allocations: 1.724 MB / 0.833 GB, free: 84 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001779/1.085, allocations: 1.511 MB / 0.8345 GB, free: 82.79 MB / 0.5261 GB Notification: Performance of SimCode: time 1.233e-06/1.085, allocations: 0 / 0.8345 GB, free: 82.79 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07688/1.162, allocations: 62.64 MB / 0.8957 GB, free: 31.05 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001272/1.162, allocations: 161 kB / 0.8958 GB, free: 30.83 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.426/4.589, allocations: 0 / 0.8958 GB, free: 30.83 MB / 0.5261 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat