Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",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.001586/0.001586, allocations: 177.9 kB / 17.06 MB, free: 5.094 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.488/1.488, allocations: 223.2 MB / 241 MB, free: 11.89 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.001174/0.001174, allocations: 96.16 kB / 292.1 MB, free: 10.91 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.3679/0.3679, allocations: 44.23 MB / 387.5 MB, free: 38.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000473/0.0004732, allocations: 8 kB / 460 MB, free: 1.406 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4346/0.4351, allocations: 61.9 MB / 0.5096 GB, free: 37.97 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.146/0.5811, allocations: 105.8 MB / 0.613 GB, free: 5.27 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002134/0.5814, allocations: 91.92 kB / 0.613 GB, free: 5.188 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5372/1.119, allocations: 75.8 MB / 0.6871 GB, free: 96.27 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.195e-06/1.119, allocations: 0 / 0.6871 GB, free: 96.27 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001422/1.119, allocations: 65.16 kB / 0.6871 GB, free: 96.27 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.01211/1.131, allocations: 3.597 MB / 0.6906 GB, free: 94.74 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/1.131, allocations: 8.469 kB / 0.6906 GB, free: 94.74 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002764/1.134, allocations: 0.6416 MB / 0.6913 GB, free: 94.67 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01672/1.151, allocations: 4.272 MB / 0.6954 GB, free: 94.43 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01309/1.164, allocations: 4.143 MB / 0.6995 GB, free: 93.91 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003581/1.164, allocations: 264.8 kB / 0.6997 GB, free: 93.91 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002016/1.166, allocations: 356.5 kB / 0.7001 GB, free: 93.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01937/1.185, allocations: 8.566 MB / 0.7085 GB, free: 91.33 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003095/1.186, allocations: 56.81 kB / 0.7085 GB, free: 91.33 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00119/1.187, allocations: 177.4 kB / 0.7087 GB, free: 91.33 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001414/1.188, allocations: 0.8222 MB / 0.7095 GB, free: 91.32 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01683/1.205, allocations: 6.865 MB / 0.7162 GB, free: 90.41 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0456/1.251, allocations: 40.96 MB / 0.7562 GB, free: 57.86 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004766/1.256, allocations: 2.416 MB / 0.7585 GB, free: 56.66 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003426/1.256, allocations: 333.3 kB / 0.7589 GB, free: 56.36 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/1.256, allocations: 46.03 kB / 0.7589 GB, free: 56.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=104): time 6.422e-06/1.256, allocations: 0 / 0.7589 GB, free: 56.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=118): time 0.02083/1.277, allocations: 8.317 MB / 0.767 GB, free: 52.31 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/1.277, allocations: 190.3 kB / 0.7672 GB, free: 52.09 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005111/1.282, allocations: 3.37 MB / 0.7705 GB, free: 50.87 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002142/1.283, allocations: 44.89 kB / 0.7705 GB, free: 50.82 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001655/1.284, allocations: 2.825 MB / 0.7733 GB, free: 48.63 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000503/1.285, allocations: 496.1 kB / 0.7738 GB, free: 48.29 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001852/1.285, allocations: 113.4 kB / 0.7739 GB, free: 48.21 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002549/1.285, allocations: 0.5363 MB / 0.7744 GB, free: 47.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001908/1.287, allocations: 1.546 MB / 0.7759 GB, free: 47.32 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003871/1.291, allocations: 5.143 MB / 0.7809 GB, free: 41.79 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00341/1.294, allocations: 2.786 MB / 0.7837 GB, free: 40.64 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.83e-05/1.295, allocations: 37.88 kB / 0.7837 GB, free: 40.64 MB / 490.7 MB Notification: Performance of matching and sorting (n=709) (initialization): time 0.01053/1.305, allocations: 6.553 MB / 0.7901 GB, free: 38.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.034e-05/1.305, allocations: 66.66 kB / 0.7902 GB, free: 38.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001831/1.305, allocations: 127.4 kB / 0.7903 GB, free: 38.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007526/1.306, allocations: 356.2 kB / 0.7906 GB, free: 38.05 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003622/1.31, allocations: 1.247 MB / 0.7918 GB, free: 37.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002819/1.313, allocations: 2.774 MB / 0.7945 GB, free: 35.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005688/1.318, allocations: 289.3 kB / 0.7948 GB, free: 35.87 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001251/1.32, allocations: 353.4 kB / 0.7952 GB, free: 35.83 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[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],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (674): * Single equations (assignments): 670 * 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.00381/1.323, allocations: 1.833 MB / 0.797 GB, free: 34.29 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006704/1.324, allocations: 308 kB / 0.7972 GB, free: 33.98 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002308/1.326, allocations: 1.367 MB / 0.7986 GB, free: 32.84 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.296e-05/1.327, allocations: 12 kB / 0.7986 GB, free: 32.83 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/1.327, allocations: 4 kB / 0.7986 GB, free: 32.82 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/1.327, allocations: 7.938 kB / 0.7986 GB, free: 32.82 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008958/1.336, allocations: 4.788 MB / 0.8033 GB, free: 28.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/1.336, allocations: 7.953 kB / 0.8033 GB, free: 28.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007771/1.336, allocations: 163.4 kB / 0.8034 GB, free: 28.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004872/1.337, allocations: 154.2 kB / 0.8036 GB, free: 28.64 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.081e-05/1.337, allocations: 22.11 kB / 0.8036 GB, free: 28.62 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001897/1.339, allocations: 2.197 MB / 0.8058 GB, free: 26.49 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.339, allocations: 3.719 kB / 0.8058 GB, free: 26.49 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003748/1.343, allocations: 3.222 MB / 0.8089 GB, free: 23.58 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/1.344, allocations: 366 kB / 0.8093 GB, free: 23.21 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003063/1.344, allocations: 19.94 kB / 0.8093 GB, free: 23.19 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009762/1.345, allocations: 52.5 kB / 0.8093 GB, free: 23.16 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001559/1.345, allocations: 58.81 kB / 0.8094 GB, free: 23.12 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.47e-05/1.345, allocations: 34.86 kB / 0.8094 GB, free: 23.09 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003724/1.349, allocations: 2.346 MB / 0.8117 GB, free: 21.17 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.349, allocations: 0 / 0.8117 GB, free: 21.17 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005042/1.354, allocations: 0.8 MB / 0.8125 GB, free: 20.38 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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.0043/1.358, allocations: 4.077 MB / 0.8165 GB, free: 16.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006143/1.365, allocations: 3.756 MB / 0.8201 GB, free: 13.29 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/1.365, allocations: 0 / 0.8201 GB, free: 13.29 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001107/1.366, allocations: 0.9006 MB / 0.821 GB, free: 12.48 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002227/1.368, allocations: 356.5 kB / 0.8214 GB, free: 12.17 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4042/1.772, allocations: 116.1 MB / 0.9347 GB, free: 81.46 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002888/1.775, allocations: 2.878 MB / 0.9375 GB, free: 80.7 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004043/1.779, allocations: 1.718 MB / 0.9392 GB, free: 80.67 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001914/1.781, allocations: 1.511 MB / 0.9407 GB, free: 80.66 MB / 0.5261 GB Notification: Performance of SimCode: time 1.232e-06/1.781, allocations: 2.688 kB / 0.9407 GB, free: 80.66 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.109/1.89, allocations: 62.63 MB / 1.002 GB, free: 67.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/1.89, allocations: 193.9 kB / 1.002 GB, free: 66.86 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.095/5.986, allocations: 4 kB / 1.002 GB, free: 66.86 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat