Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 183.8 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 223.2 MB / 241 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001063, allocations: 99.62 kB / 292.1 MB, free: 10.72 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3798/0.3798, allocations: 44.22 MB / 387.5 MB, free: 38.53 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003442/0.0003441, allocations: 8 kB / 460 MB, free: 1.477 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4217/0.4221, allocations: 61.9 MB / 0.5096 GB, free: 37.65 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1522/0.5743, allocations: 106.3 MB / 0.6135 GB, free: 4.754 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000334/0.5747, allocations: 87.92 kB / 0.6136 GB, free: 4.672 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5227/1.097, allocations: 72.04 MB / 0.6839 GB, free: 96.38 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.437e-06/1.097, allocations: 0 / 0.6839 GB, free: 96.38 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002225/1.098, allocations: 65.22 kB / 0.684 GB, free: 96.37 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.01282/1.111, allocations: 3.404 MB / 0.6873 GB, free: 94.94 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.698e-05/1.111, allocations: 10.28 kB / 0.6873 GB, free: 94.94 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002893/1.114, allocations: 0.5942 MB / 0.6879 GB, free: 94.88 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01714/1.131, allocations: 4.219 MB / 0.692 GB, free: 94.65 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01276/1.144, allocations: 4.039 MB / 0.696 GB, free: 94.15 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003607/1.144, allocations: 239.1 kB / 0.6962 GB, free: 94.14 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001894/1.146, allocations: 322.8 kB / 0.6965 GB, free: 94.13 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01902/1.165, allocations: 8.01 MB / 0.7043 GB, free: 91.64 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004138/1.165, allocations: 60.66 kB / 0.7044 GB, free: 91.63 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001903/1.167, allocations: 162.5 kB / 0.7045 GB, free: 91.63 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001505/1.169, allocations: 0.7856 MB / 0.7053 GB, free: 91.63 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01622/1.185, allocations: 6.438 MB / 0.7116 GB, free: 91.52 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04892/1.234, allocations: 38.99 MB / 0.7497 GB, free: 60.64 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00455/1.239, allocations: 2.174 MB / 0.7518 GB, free: 59.52 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004232/1.239, allocations: 319.6 kB / 0.7521 GB, free: 59.23 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.738e-05/1.239, allocations: 50.3 kB / 0.7521 GB, free: 59.18 MB / 490.7 MB Notification: Performance of pre-optimization done (n=108): time 5.821e-06/1.239, allocations: 0 / 0.7521 GB, free: 59.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=132): time 0.03373/1.273, allocations: 10.92 MB / 0.7628 GB, free: 54.58 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.171e-05/1.273, allocations: 191.9 kB / 0.763 GB, free: 54.36 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006914/1.28, allocations: 3.247 MB / 0.7662 GB, free: 53.18 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003054/1.28, allocations: 41.36 kB / 0.7662 GB, free: 53.14 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002164/1.283, allocations: 2.615 MB / 0.7688 GB, free: 51.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007917/1.283, allocations: 0.5319 MB / 0.7693 GB, free: 50.73 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000534/1.284, allocations: 104.9 kB / 0.7694 GB, free: 50.64 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005093/1.284, allocations: 0.5288 MB / 0.7699 GB, free: 50.24 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002719/1.287, allocations: 1.577 MB / 0.7714 GB, free: 49.74 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004727/1.292, allocations: 4.929 MB / 0.7762 GB, free: 44.55 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004283/1.296, allocations: 2.756 MB / 0.7789 GB, free: 43.41 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001746/1.296, allocations: 38.66 kB / 0.779 GB, free: 43.41 MB / 490.7 MB Notification: Performance of matching and sorting (n=680) (initialization): time 0.0126/1.309, allocations: 6.441 MB / 0.7853 GB, free: 40.91 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002056/1.309, allocations: 55.53 kB / 0.7853 GB, free: 40.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002607/1.31, allocations: 125.7 kB / 0.7854 GB, free: 40.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000853/1.31, allocations: 344 kB / 0.7858 GB, free: 40.86 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004144/1.315, allocations: 1.203 MB / 0.7869 GB, free: 40.71 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002711/1.317, allocations: 2.73 MB / 0.7896 GB, free: 38.81 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004582/1.322, allocations: 283 kB / 0.7899 GB, free: 38.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00105/1.323, allocations: 328.3 kB / 0.7902 GB, free: 38.66 MB / 490.7 MB 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 () * Number of clocked 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.004128/1.327, allocations: 1.735 MB / 0.7919 GB, free: 37.82 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008107/1.328, allocations: 305.6 kB / 0.7922 GB, free: 37.65 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00306/1.331, allocations: 1.612 MB / 0.7937 GB, free: 36.99 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-05/1.331, allocations: 14.19 kB / 0.7938 GB, free: 36.99 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.389e-05/1.331, allocations: 2.906 kB / 0.7938 GB, free: 36.99 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/1.331, allocations: 3.562 kB / 0.7938 GB, free: 36.99 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01053/1.342, allocations: 5.152 MB / 0.7988 GB, free: 32.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/1.342, allocations: 3.875 kB / 0.7988 GB, free: 32.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/1.343, allocations: 198.6 kB / 0.799 GB, free: 32.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004776/1.343, allocations: 159.8 kB / 0.7991 GB, free: 32.61 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/1.343, allocations: 20 kB / 0.7992 GB, free: 32.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001987/1.345, allocations: 2.192 MB / 0.8013 GB, free: 30.45 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/1.345, allocations: 4.031 kB / 0.8013 GB, free: 30.45 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004431/1.35, allocations: 3.659 MB / 0.8049 GB, free: 27.13 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001263/1.351, allocations: 362.5 kB / 0.8052 GB, free: 26.77 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007001/1.352, allocations: 24.06 kB / 0.8053 GB, free: 26.74 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001339/1.353, allocations: 57.53 kB / 0.8053 GB, free: 26.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/1.353, allocations: 73.58 kB / 0.8054 GB, free: 26.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.342e-05/1.353, allocations: 31.52 kB / 0.8054 GB, free: 26.63 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003655/1.357, allocations: 2.266 MB / 0.8076 GB, free: 24.77 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.9e-07/1.357, allocations: 0 / 0.8076 GB, free: 24.77 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005114/1.362, allocations: 0.7808 MB / 0.8084 GB, free: 24 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 (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.005205/1.368, allocations: 4.569 MB / 0.8128 GB, free: 19.77 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006996/1.375, allocations: 3.851 MB / 0.8166 GB, free: 16.38 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/1.375, allocations: 0 / 0.8166 GB, free: 16.38 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001537/1.376, allocations: 1.027 MB / 0.8176 GB, free: 15.46 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002852/1.379, allocations: 345 kB / 0.8179 GB, free: 15.16 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3869/1.766, allocations: 108.8 MB / 0.9242 GB, free: 92.17 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002718/1.769, allocations: 2.744 MB / 0.9269 GB, free: 91.41 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004259/1.773, allocations: 1.687 MB / 0.9285 GB, free: 91.38 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002012/1.775, allocations: 1.452 MB / 0.9299 GB, free: 91.37 MB / 0.5261 GB Notification: Performance of SimCode: time 1.242e-06/1.775, allocations: 0 / 0.9299 GB, free: 91.37 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1301/1.905, allocations: 61.36 MB / 0.9899 GB, free: 79.77 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001657/1.905, allocations: 188.9 kB / 0.99 GB, free: 79.53 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.157/6.062, allocations: 3.938 kB / 0.99 GB, free: 79.52 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat