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.001216/0.001216, allocations: 180.5 kB / 14.15 MB, free: 1.176 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.413/1.413, allocations: 221.3 MB / 236 MB, free: 2.984 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000968/0.000968, allocations: 91.8 kB / 287 MB, free: 244 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2233/0.2233, allocations: 44.16 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.162e-05/3.181e-05, allocations: 4.219 kB / 451.9 MB, free: 9.336 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.149, allocations: 61.91 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.524/0.6731, allocations: 106.3 MB / 0.6056 GB, free: 14.94 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002725/0.6734, allocations: 83.89 kB / 0.6057 GB, free: 14.86 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1938/0.8672, allocations: 72.09 MB / 0.6761 GB, free: 6.312 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.8673, allocations: 0 / 0.6761 GB, free: 6.312 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001777/0.8675, allocations: 64 kB / 0.6761 GB, free: 6.25 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.01133/0.8788, allocations: 3.176 MB / 0.6792 GB, free: 3.012 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.537e-05/0.8789, allocations: 8.031 kB / 0.6792 GB, free: 3.004 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001879/0.8808, allocations: 0.5937 MB / 0.6798 GB, free: 2.398 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01702/0.8978, allocations: 4.223 MB / 0.6839 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01226/0.9102, allocations: 4.009 MB / 0.6878 GB, free: 10.09 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002804/0.9105, allocations: 242.2 kB / 0.6881 GB, free: 9.852 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001699/0.9122, allocations: 319.8 kB / 0.6884 GB, free: 9.539 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01686/0.9291, allocations: 7.955 MB / 0.6961 GB, free: 0.6289 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001492/0.9293, allocations: 55.47 kB / 0.6962 GB, free: 0.5742 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005258/0.9298, allocations: 155.9 kB / 0.6964 GB, free: 432 kB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001137/0.931, allocations: 0.7858 MB / 0.6971 GB, free: 15.63 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01323/0.9442, allocations: 6.324 MB / 0.7033 GB, free: 9.297 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4321/1.376, allocations: 38.98 MB / 0.7414 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00518/1.382, allocations: 2.165 MB / 0.7435 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001635/1.383, allocations: 1.014 MB / 0.7445 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003944/1.384, allocations: 316.9 kB / 0.7448 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/1.384, allocations: 46.14 kB / 0.7448 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=108): time 4.138e-06/1.384, allocations: 5.062 kB / 0.7448 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=132): time 0.02874/1.413, allocations: 9.001 MB / 0.7536 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/1.413, allocations: 195.7 kB / 0.7538 GB, free: 100 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007048/1.42, allocations: 3.211 MB / 0.7569 GB, free: 99.71 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003372/1.42, allocations: 44.36 kB / 0.757 GB, free: 99.68 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001933/1.422, allocations: 2.625 MB / 0.7595 GB, free: 98.46 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007204/1.423, allocations: 0.5281 MB / 0.76 GB, free: 98.17 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002531/1.423, allocations: 101.4 kB / 0.7601 GB, free: 98.17 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002624/1.423, allocations: 0.5273 MB / 0.7607 GB, free: 97.85 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002187/1.426, allocations: 1.538 MB / 0.7622 GB, free: 97.84 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00352/1.429, allocations: 4.89 MB / 0.7669 GB, free: 93.47 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003619/1.433, allocations: 2.754 MB / 0.7696 GB, free: 93.45 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.516e-05/1.433, allocations: 33.53 kB / 0.7697 GB, free: 93.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=680) (initialization): time 0.01045/1.443, allocations: 6.365 MB / 0.7759 GB, free: 91.63 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.58e-05/1.443, allocations: 61.25 kB / 0.7759 GB, free: 91.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001298/1.444, allocations: 119 kB / 0.776 GB, free: 91.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000729/1.444, allocations: 344.9 kB / 0.7764 GB, free: 91.58 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003547/1.448, allocations: 1.201 MB / 0.7775 GB, free: 91.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002765/1.451, allocations: 2.692 MB / 0.7802 GB, free: 89.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005217/1.456, allocations: 286.2 kB / 0.7804 GB, free: 89.45 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001186/1.457, allocations: 322.8 kB / 0.7808 GB, free: 89.41 MB / 0.5105 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.001054/1.458, allocations: 0.5065 MB / 0.7813 GB, free: 88.99 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001102/1.459, allocations: 302.1 kB / 0.7815 GB, free: 88.82 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002946/1.462, allocations: 1.584 MB / 0.7831 GB, free: 88.18 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.723e-05/1.462, allocations: 16.81 kB / 0.7831 GB, free: 88.18 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.261e-05/1.462, allocations: 0 / 0.7831 GB, free: 88.18 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/1.462, allocations: 11.33 kB / 0.7831 GB, free: 88.18 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00939/1.472, allocations: 5.131 MB / 0.7881 GB, free: 86.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/1.472, allocations: 3.938 kB / 0.7881 GB, free: 86.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009938/1.473, allocations: 205.4 kB / 0.7883 GB, free: 86.11 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004584/1.473, allocations: 154.8 kB / 0.7885 GB, free: 86.07 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.377e-05/1.473, allocations: 17.72 kB / 0.7885 GB, free: 86.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/1.475, allocations: 2.155 MB / 0.7906 GB, free: 84.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/1.475, allocations: 3.062 kB / 0.7906 GB, free: 84.42 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004578/1.48, allocations: 3.606 MB / 0.7941 GB, free: 82.69 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001258/1.481, allocations: 371.5 kB / 0.7945 GB, free: 82.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003035/1.481, allocations: 20 kB / 0.7945 GB, free: 82.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001052/1.483, allocations: 65.72 kB / 0.7946 GB, free: 82.37 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/1.483, allocations: 66.09 kB / 0.7946 GB, free: 82.36 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/1.483, allocations: 36.67 kB / 0.7947 GB, free: 82.36 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004068/1.487, allocations: 2.231 MB / 0.7968 GB, free: 81.58 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.7e-07/1.487, allocations: 0 / 0.7968 GB, free: 81.58 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005925/1.493, allocations: 0.7762 MB / 0.7976 GB, free: 81.48 MB / 0.5105 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.005786/1.499, allocations: 4.53 MB / 0.802 GB, free: 78.95 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006675/1.505, allocations: 3.791 MB / 0.8057 GB, free: 77.56 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/1.505, allocations: 3.828 kB / 0.8057 GB, free: 77.56 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001499/1.507, allocations: 1.004 MB / 0.8067 GB, free: 77.13 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003091/1.51, allocations: 343.7 kB / 0.807 GB, free: 76.97 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0235/1.534, allocations: 6.803 MB / 0.8137 GB, free: 73.98 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005386/1.539, allocations: 2.755 MB / 0.8164 GB, free: 71.84 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005197/1.544, allocations: 1.683 MB / 0.818 GB, free: 70.79 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002658/1.547, allocations: 1.448 MB / 0.8194 GB, free: 69.45 MB / 0.5105 GB Notification: Performance of SimCode: time 2.545e-06/1.547, allocations: 0 / 0.8194 GB, free: 69.45 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1036/1.651, allocations: 61.34 MB / 0.8793 GB, free: 15.98 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001534/1.651, allocations: 160.1 kB / 0.8795 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.195/5.846, allocations: 0 / 0.8795 GB, free: 15.77 MB / 0.5105 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