Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001705/0.001705, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.013/2.013, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0012/0.0012, allocations: 99.77 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5263/0.5263, allocations: 43.55 MB / 362.7 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004996/0.0004996, allocations: 15.98 kB / 431.5 MB, free: 6.109 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1327, allocations: 58.83 MB / 490.3 MB, free: 11.19 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5121/0.6449, allocations: 105.2 MB / 0.5815 GB, free: 13.41 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003181/0.6453, allocations: 79.97 kB / 0.5816 GB, free: 13.33 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3229/0.9681, allocations: 73.24 MB / 0.6531 GB, free: 3.637 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.756e-06/0.9682, allocations: 0 / 0.6531 GB, free: 3.637 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002296/0.9685, allocations: 68 kB / 0.6532 GB, free: 3.57 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01433/0.9828, allocations: 3.509 MB / 0.6566 GB, free: 15.99 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.9829, allocations: 8.031 kB / 0.6566 GB, free: 15.98 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002756/0.9856, allocations: 0.6183 MB / 0.6572 GB, free: 15.36 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0322/1.018, allocations: 4.25 MB / 0.6614 GB, free: 11.09 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01712/1.035, allocations: 4.244 MB / 0.6655 GB, free: 6.785 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003832/1.035, allocations: 250.4 kB / 0.6657 GB, free: 6.539 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001938/1.037, allocations: 323.9 kB / 0.6661 GB, free: 6.223 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3715/1.409, allocations: 8.303 MB / 0.6742 GB, free: 93.95 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003155/1.409, allocations: 53.09 kB / 0.6742 GB, free: 93.95 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001447/1.411, allocations: 165.1 kB / 0.6744 GB, free: 93.95 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002189/1.413, allocations: 0.8177 MB / 0.6752 GB, free: 93.95 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02004/1.433, allocations: 6.705 MB / 0.6817 GB, free: 93.93 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05185/1.485, allocations: 39.87 MB / 0.7207 GB, free: 67.59 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007698/1.493, allocations: 2.28 MB / 0.7229 GB, free: 66.91 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005096/1.493, allocations: 322 kB / 0.7232 GB, free: 66.63 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.783e-05/1.493, allocations: 49.95 kB / 0.7232 GB, free: 66.59 MB / 490.7 MB Notification: Performance of pre-optimization done (n=117): time 4.769e-06/1.493, allocations: 0 / 0.7232 GB, free: 66.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=141): time 0.05738/1.551, allocations: 11.4 MB / 0.7344 GB, free: 62.83 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.268e-05/1.551, allocations: 192.4 kB / 0.7346 GB, free: 62.61 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009587/1.561, allocations: 3.32 MB / 0.7378 GB, free: 61.48 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003475/1.561, allocations: 42.05 kB / 0.7378 GB, free: 61.44 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00287/1.564, allocations: 2.646 MB / 0.7404 GB, free: 59.49 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001083/1.565, allocations: 0.5543 MB / 0.741 GB, free: 59.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007609/1.566, allocations: 108.5 kB / 0.7411 GB, free: 59.02 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004918/1.566, allocations: 0.535 MB / 0.7416 GB, free: 58.61 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005099/1.571, allocations: 1.648 MB / 0.7432 GB, free: 58.08 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007817/1.579, allocations: 5.072 MB / 0.7482 GB, free: 52.84 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007393/1.587, allocations: 2.855 MB / 0.7509 GB, free: 51.66 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002076/1.587, allocations: 34.75 kB / 0.751 GB, free: 51.66 MB / 490.7 MB Notification: Performance of matching and sorting (n=702) (initialization): time 0.01844/1.605, allocations: 6.553 MB / 0.7574 GB, free: 49.13 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001103/1.606, allocations: 64.28 kB / 0.7574 GB, free: 49.12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000206/1.606, allocations: 126 kB / 0.7576 GB, free: 49.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001169/1.607, allocations: 344.2 kB / 0.7579 GB, free: 49.08 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007558/1.615, allocations: 1.249 MB / 0.7591 GB, free: 48.92 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004406/1.619, allocations: 2.744 MB / 0.7618 GB, free: 47.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006448/1.625, allocations: 297.8 kB / 0.7621 GB, free: 46.91 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001336/1.627, allocations: 333.4 kB / 0.7624 GB, free: 46.87 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * Number of states: 0 () * Number of discrete variables: 27 (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 (667): * Single equations (assignments): 663 * 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.005148/1.632, allocations: 1.782 MB / 0.7641 GB, free: 46 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001015/1.633, allocations: 311.4 kB / 0.7644 GB, free: 45.83 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005344/1.638, allocations: 1.737 MB / 0.7661 GB, free: 45.12 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.724e-05/1.639, allocations: 14.72 kB / 0.7661 GB, free: 45.12 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/1.639, allocations: 3.781 kB / 0.7661 GB, free: 45.12 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.547e-05/1.639, allocations: 7.594 kB / 0.7661 GB, free: 45.12 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01599/1.655, allocations: 5.42 MB / 0.7714 GB, free: 42.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.81e-05/1.655, allocations: 7.656 kB / 0.7714 GB, free: 42.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002165/1.657, allocations: 219.5 kB / 0.7717 GB, free: 42.94 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008328/1.658, allocations: 157.6 kB / 0.7718 GB, free: 42.89 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002634/1.658, allocations: 26.45 kB / 0.7718 GB, free: 42.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003289/1.661, allocations: 2.199 MB / 0.774 GB, free: 41.21 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/1.661, allocations: 3.906 kB / 0.774 GB, free: 41.21 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008544/1.67, allocations: 3.832 MB / 0.7777 GB, free: 39.39 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001993/1.672, allocations: 0.5294 MB / 0.7782 GB, free: 39.05 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001015/1.673, allocations: 19.47 kB / 0.7783 GB, free: 39.03 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002505/1.676, allocations: 65.72 kB / 0.7783 GB, free: 39.02 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003899/1.676, allocations: 82.89 kB / 0.7784 GB, free: 38.99 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/1.676, allocations: 41.25 kB / 0.7784 GB, free: 38.98 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006009/1.682, allocations: 2.314 MB / 0.7807 GB, free: 38.21 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.682, allocations: 0 / 0.7807 GB, free: 38.21 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007224/1.689, allocations: 0.8081 MB / 0.7815 GB, free: 38.1 MB / 490.7 MB 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 (112): * Single equations (assignments): 108 * 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.00929/1.699, allocations: 4.753 MB / 0.7861 GB, free: 35.47 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009689/1.709, allocations: 3.989 MB / 0.79 GB, free: 34.05 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/1.709, allocations: 0 / 0.79 GB, free: 34.05 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002517/1.711, allocations: 1.094 MB / 0.7911 GB, free: 33.59 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003169/1.714, allocations: 349.3 kB / 0.7914 GB, free: 33.42 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4482/2.163, allocations: 112.1 MB / 0.9009 GB, free: 85.44 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006006/2.169, allocations: 2.829 MB / 0.9037 GB, free: 84.67 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003841/2.173, allocations: 1.55 MB / 0.9052 GB, free: 84.66 MB / 0.5105 GB Notification: Performance of SimCode: time 1.342e-06/2.173, allocations: 0 / 0.9052 GB, free: 84.66 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.186/6.359, allocations: 82.32 MB / 0.9856 GB, free: 59.17 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat