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/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.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001007/0.001007, allocations: 196.9 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.227/1.227, 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.0008666/0.0008667, allocations: 90.16 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1771/0.1771, allocations: 45.14 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.491e-05/3.494e-05, allocations: 0 / 460.5 MB, free: 69.92 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09225/0.0923, allocations: 63.24 MB / 0.5115 GB, free: 6.695 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3549/0.4473, allocations: 107.2 MB / 0.6161 GB, free: 2.918 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002074/0.4475, allocations: 79.39 kB / 0.6162 GB, free: 2.879 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1769/0.6245, allocations: 72.87 MB / 0.6873 GB, free: 2.047 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.6245, allocations: 0 / 0.6873 GB, free: 2.047 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001547/0.6247, allocations: 60 kB / 0.6874 GB, free: 1.988 MB / 474.7 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.008109/0.6328, allocations: 3.2 MB / 0.6905 GB, free: 14.73 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.6328, allocations: 11.97 kB / 0.6905 GB, free: 14.71 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001547/0.6344, allocations: 0.5976 MB / 0.6911 GB, free: 14.11 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01509/0.6495, allocations: 4.227 MB / 0.6953 GB, free: 9.867 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00752/0.657, allocations: 3.498 MB / 0.6987 GB, free: 6.305 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001739/0.6572, allocations: 234.2 kB / 0.6989 GB, free: 6.074 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007742/0.658, allocations: 331.7 kB / 0.6992 GB, free: 5.75 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0121/0.6701, allocations: 7.956 MB / 0.707 GB, free: 12.84 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001295/0.6702, allocations: 51.53 kB / 0.707 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004876/0.6707, allocations: 167.8 kB / 0.7072 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009246/0.6717, allocations: 0.7741 MB / 0.7079 GB, free: 11.85 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009747/0.6814, allocations: 6.328 MB / 0.7141 GB, free: 5.508 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2765/0.9579, allocations: 38.98 MB / 0.7522 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003855/0.9618, allocations: 2.147 MB / 0.7543 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001113/0.963, allocations: 1.017 MB / 0.7553 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002832/0.9632, allocations: 319 kB / 0.7556 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.9633, allocations: 52.83 kB / 0.7556 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=108): time 4.669e-06/0.9633, allocations: 1.625 kB / 0.7556 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=132): time 0.02295/0.9863, allocations: 9.001 MB / 0.7644 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.726e-05/0.9864, allocations: 195.7 kB / 0.7646 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004697/0.9911, allocations: 3.21 MB / 0.7677 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000118/0.9912, allocations: 46.16 kB / 0.7678 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001466/0.9927, allocations: 2.619 MB / 0.7703 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004034/0.9931, allocations: 0.5294 MB / 0.7709 GB, free: 108.6 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.9933, allocations: 106.6 kB / 0.771 GB, free: 108.6 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002571/0.9935, allocations: 0.5264 MB / 0.7715 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002242/0.9958, allocations: 1.538 MB / 0.773 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002956/0.9987, allocations: 4.891 MB / 0.7778 GB, free: 103.9 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002992/1.002, allocations: 2.757 MB / 0.7804 GB, free: 103.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.511e-05/1.002, allocations: 32.97 kB / 0.7805 GB, free: 103.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=680) (initialization): time 0.008953/1.011, allocations: 6.364 MB / 0.7867 GB, free: 103.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.671e-05/1.011, allocations: 60.56 kB / 0.7868 GB, free: 103.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.631e-05/1.011, allocations: 120.2 kB / 0.7869 GB, free: 103.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006444/1.012, allocations: 344.8 kB / 0.7872 GB, free: 103.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00287/1.014, allocations: 1.205 MB / 0.7884 GB, free: 103.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002297/1.017, allocations: 2.681 MB / 0.791 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00328/1.02, allocations: 281.6 kB / 0.7913 GB, free: 102 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003507/1.02, allocations: 325.2 kB / 0.7916 GB, free: 102 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 29 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[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],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (645): * Single equations (assignments): 641 * 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.0005184/1.021, allocations: 0.5184 MB / 0.7921 GB, free: 101.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004227/1.021, allocations: 299.3 kB / 0.7924 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002348/1.024, allocations: 1.579 MB / 0.7939 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-05/1.024, allocations: 19.23 kB / 0.7939 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/1.024, allocations: 3.344 kB / 0.7939 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/1.024, allocations: 6.219 kB / 0.7939 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007335/1.031, allocations: 5.128 MB / 0.7989 GB, free: 100.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/1.031, allocations: 0 / 0.7989 GB, free: 100.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008797/1.032, allocations: 205.3 kB / 0.7991 GB, free: 100.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004013/1.033, allocations: 154.6 kB / 0.7993 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.191e-05/1.033, allocations: 21.72 kB / 0.7993 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001698/1.034, allocations: 2.148 MB / 0.8014 GB, free: 98.58 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/1.034, allocations: 6.031 kB / 0.8014 GB, free: 98.58 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003676/1.038, allocations: 3.6 MB / 0.8049 GB, free: 96.86 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007443/1.039, allocations: 379 kB / 0.8053 GB, free: 96.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002632/1.039, allocations: 22.55 kB / 0.8053 GB, free: 96.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009619/1.04, allocations: 55.83 kB / 0.8054 GB, free: 96.55 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/1.04, allocations: 72.59 kB / 0.8054 GB, free: 96.53 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-05/1.04, allocations: 43.22 kB / 0.8055 GB, free: 96.52 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002715/1.043, allocations: 2.233 MB / 0.8076 GB, free: 95.75 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.2e-07/1.043, allocations: 0 / 0.8076 GB, free: 95.75 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003383/1.046, allocations: 0.7843 MB / 0.8084 GB, free: 95.64 MB / 0.5261 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 () * 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.003906/1.05, allocations: 4.523 MB / 0.8128 GB, free: 93.12 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004846/1.055, allocations: 3.779 MB / 0.8165 GB, free: 91.78 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/1.055, allocations: 6.688 kB / 0.8165 GB, free: 91.77 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001014/1.056, allocations: 1.015 MB / 0.8175 GB, free: 91.34 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001611/1.058, allocations: 341 kB / 0.8178 GB, free: 91.18 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01161/1.069, allocations: 6.798 MB / 0.8245 GB, free: 88.74 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002079/1.072, allocations: 2.752 MB / 0.8272 GB, free: 87.59 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003737/1.075, allocations: 1.683 MB / 0.8288 GB, free: 87.19 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001504/1.077, allocations: 1.455 MB / 0.8302 GB, free: 85.84 MB / 0.5261 GB Notification: Performance of SimCode: time 7.42e-07/1.077, allocations: 0 / 0.8302 GB, free: 85.84 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07459/1.151, allocations: 61.33 MB / 0.8901 GB, free: 33.72 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001357/1.152, allocations: 167.8 kB / 0.8903 GB, free: 33.49 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.406/4.558, allocations: 0 / 0.8903 GB, free: 33.49 MB / 0.5261 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat