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.002875/0.002874, allocations: 179.4 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.035/2.035, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 93.22 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3074/0.3074, allocations: 43.48 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.514e-05/2.56e-05, allocations: 224 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4072/0.4073, allocations: 58.86 MB / 477.2 MB, free: 5.137 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1947/0.6021, allocations: 104.4 MB / 0.568 GB, free: 10.75 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002931/0.6024, allocations: 79.95 kB / 0.568 GB, free: 10.68 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.3329/0.9353, allocations: 71.94 MB / 0.6383 GB, free: 2.195 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.9354, allocations: 0 / 0.6383 GB, free: 2.195 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0002449/0.9356, allocations: 68 kB / 0.6384 GB, free: 2.129 MB / 475.1 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.345/1.281, allocations: 3.257 MB / 0.6415 GB, free: 109.2 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/1.281, allocations: 10.22 kB / 0.6415 GB, free: 109.2 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0332/1.314, allocations: 4.251 MB / 0.6457 GB, free: 108.9 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01753/1.332, allocations: 4.223 MB / 0.6498 GB, free: 108.6 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002463/1.332, allocations: 105.1 kB / 0.6499 GB, free: 108.6 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001777/1.334, allocations: 187.8 kB / 0.6501 GB, free: 108.6 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01291/1.347, allocations: 4.674 MB / 0.6547 GB, free: 108.6 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02159/1.368, allocations: 7.587 MB / 0.6621 GB, free: 106.1 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003275/1.369, allocations: 57.09 kB / 0.6621 GB, free: 106.1 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00166/1.37, allocations: 29 kB / 0.6622 GB, free: 106.1 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002188/1.372, allocations: 0.8229 MB / 0.663 GB, free: 106.1 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04979/1.422, allocations: 38.21 MB / 0.7003 GB, free: 77.84 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00389/1.426, allocations: 2.336 MB / 0.7026 GB, free: 76.32 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002074/1.428, allocations: 1.057 MB / 0.7036 GB, free: 75.86 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005373/1.429, allocations: 328.1 kB / 0.7039 GB, free: 75.57 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/1.429, allocations: 45.3 kB / 0.7039 GB, free: 75.52 MB / 475.1 MB Notification: Performance of pre-optimization done (n=120): time 6.072e-06/1.429, allocations: 0 / 0.7039 GB, free: 75.52 MB / 475.1 MB Notification: Performance of matching and sorting (n=150): time 0.03655/1.466, allocations: 10.51 MB / 0.7142 GB, free: 70.96 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.773e-05/1.466, allocations: 196.9 kB / 0.7144 GB, free: 70.73 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005808/1.471, allocations: 2.81 MB / 0.7171 GB, free: 69.62 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003293/1.472, allocations: 29.08 kB / 0.7172 GB, free: 69.59 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002167/1.474, allocations: 2.735 MB / 0.7198 GB, free: 67.39 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008344/1.475, allocations: 0.5773 MB / 0.7204 GB, free: 66.97 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005204/1.475, allocations: 0 / 0.7204 GB, free: 66.97 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.000346/1.476, allocations: 0.5491 MB / 0.7209 GB, free: 66.56 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003483/1.479, allocations: 1.558 MB / 0.7225 GB, free: 66.01 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005938/1.485, allocations: 5.128 MB / 0.7275 GB, free: 60.47 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006096/1.491, allocations: 2.826 MB / 0.7302 GB, free: 59.39 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001335/1.492, allocations: 37.78 kB / 0.7303 GB, free: 59.39 MB / 475.1 MB Notification: Performance of matching and sorting (n=738) (initialization): time 0.01574/1.507, allocations: 5.957 MB / 0.7361 GB, free: 57.29 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.712e-05/1.507, allocations: 60 kB / 0.7361 GB, free: 57.23 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001522/1.508, allocations: 128 kB / 0.7363 GB, free: 57.11 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/1.509, allocations: 351.1 kB / 0.7366 GB, free: 56.8 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007457/1.516, allocations: 1.313 MB / 0.7379 GB, free: 55.65 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003733/1.52, allocations: 2.597 MB / 0.7404 GB, free: 53.17 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005607/1.526, allocations: 194 kB / 0.7406 GB, free: 53 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001002/1.527, allocations: 351.2 kB / 0.7409 GB, free: 52.66 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 584 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (703): * Single equations (assignments): 699 * 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.0009086/1.528, allocations: 412.5 kB / 0.7413 GB, free: 52.26 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004637/1.532, allocations: 2.054 MB / 0.7433 GB, free: 50.44 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006149/1.533, allocations: 287.7 kB / 0.7436 GB, free: 50.16 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004189/1.537, allocations: 1.66 MB / 0.7452 GB, free: 48.77 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.22e-05/1.537, allocations: 21.48 kB / 0.7452 GB, free: 48.75 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/1.537, allocations: 0 / 0.7452 GB, free: 48.75 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-05/1.537, allocations: 14.84 kB / 0.7453 GB, free: 48.74 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01272/1.55, allocations: 5.147 MB / 0.7503 GB, free: 44.43 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.798e-05/1.55, allocations: 7.188 kB / 0.7503 GB, free: 44.42 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002202/1.552, allocations: 227 kB / 0.7505 GB, free: 44.24 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007909/1.553, allocations: 157.5 kB / 0.7507 GB, free: 44.12 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002007/1.553, allocations: 7.562 kB / 0.7507 GB, free: 44.12 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002835/1.556, allocations: 2.047 MB / 0.7527 GB, free: 42.13 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/1.556, allocations: 2.438 kB / 0.7527 GB, free: 42.13 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006715/1.563, allocations: 3.764 MB / 0.7563 GB, free: 38.7 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001628/1.565, allocations: 0.5034 MB / 0.7568 GB, free: 38.2 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004594/1.565, allocations: 4 kB / 0.7568 GB, free: 38.2 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001883/1.567, allocations: 46.45 kB / 0.7569 GB, free: 38.18 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002339/1.567, allocations: 74.25 kB / 0.757 GB, free: 38.12 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001526/1.567, allocations: 48.89 kB / 0.757 GB, free: 38.08 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.00356/1.571, allocations: 1.867 MB / 0.7588 GB, free: 36.46 MB / 475.1 MB Notification: Performance of sort global known variables: time 6.01e-07/1.571, allocations: 0 / 0.7588 GB, free: 36.46 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.006009/1.577, allocations: 0.6936 MB / 0.7595 GB, free: 35.78 MB / 475.1 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * 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.00726/1.584, allocations: 4.669 MB / 0.7641 GB, free: 31.45 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.008676/1.593, allocations: 3.783 MB / 0.7678 GB, free: 28.01 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/1.593, allocations: 0 / 0.7678 GB, free: 28.01 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002003/1.595, allocations: 1.065 MB / 0.7688 GB, free: 27.03 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002314/1.597, allocations: 276.5 kB / 0.7691 GB, free: 26.79 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02103/1.619, allocations: 7.307 MB / 0.7762 GB, free: 20.46 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00608/1.625, allocations: 2.849 MB / 0.779 GB, free: 18.1 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003728/1.628, allocations: 1.554 MB / 0.7805 GB, free: 16.54 MB / 475.1 MB Notification: Performance of SimCode: time 1.432e-06/1.628, allocations: 4 kB / 0.7805 GB, free: 16.54 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.296/5.924, allocations: 80.18 MB / 0.8588 GB, free: 124.5 MB / 0.4952 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