Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009589/0.000959, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 225.6 MB / 234.8 MB, free: 3.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008681/0.000868, allocations: 101.2 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2128/0.2128, allocations: 45.16 MB / 383.8 MB, free: 248 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.726e-05/1.725e-05, allocations: 4 kB / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.132, allocations: 63.24 MB / 0.5045 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4693/0.6014, allocations: 106 MB / 0.6079 GB, free: 12.56 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000242/0.6017, allocations: 78.27 kB / 0.608 GB, free: 12.52 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1949/0.7966, allocations: 75.22 MB / 0.6815 GB, free: 9.672 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.7967, allocations: 0 / 0.6815 GB, free: 9.672 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001405/0.7969, allocations: 60 kB / 0.6815 GB, free: 9.613 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.009909/0.8068, allocations: 3.381 MB / 0.6848 GB, free: 6.172 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.8068, allocations: 8.031 kB / 0.6848 GB, free: 6.164 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0172/0.824, allocations: 4.277 MB / 0.689 GB, free: 1.875 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009999/0.8341, allocations: 3.604 MB / 0.6925 GB, free: 14.21 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/0.8343, allocations: 112 kB / 0.6926 GB, free: 14.1 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009399/0.8352, allocations: 207.8 kB / 0.6928 GB, free: 13.89 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007622/0.8429, allocations: 4.804 MB / 0.6975 GB, free: 9.086 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01277/0.8557, allocations: 7.829 MB / 0.7052 GB, free: 292 kB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001421/0.8559, allocations: 63.45 kB / 0.7052 GB, free: 228 kB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004129/0.8563, allocations: 31.95 kB / 0.7053 GB, free: 196 kB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001139/0.8574, allocations: 0.8255 MB / 0.7061 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03931/0.8967, allocations: 39.38 MB / 0.7445 GB, free: 6.715 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00253/0.8993, allocations: 2.33 MB / 0.7468 GB, free: 4.18 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001121/0.9005, allocations: 0.9982 MB / 0.7478 GB, free: 3.172 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003332/0.9008, allocations: 331.6 kB / 0.7481 GB, free: 2.789 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/0.9009, allocations: 54.88 kB / 0.7481 GB, free: 2.727 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=107): time 4.017e-06/0.9009, allocations: 0 / 0.7481 GB, free: 2.727 MB / 0.5261 GB Notification: Performance of matching and sorting (n=122): time 0.3294/1.23, allocations: 8.981 MB / 0.7569 GB, free: 143.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.015e-05/1.23, allocations: 193.9 kB / 0.7571 GB, free: 143.6 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005977/1.236, allocations: 2.906 MB / 0.7599 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002868/1.237, allocations: 25.7 kB / 0.76 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002557/1.239, allocations: 2.872 MB / 0.7628 GB, free: 141.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009246/1.24, allocations: 0.4944 MB / 0.7632 GB, free: 141.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000332/1.241, allocations: 1.75 kB / 0.7632 GB, free: 141.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004316/1.241, allocations: 0.5436 MB / 0.7638 GB, free: 141.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002567/1.244, allocations: 1.454 MB / 0.7652 GB, free: 141.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004418/1.248, allocations: 5.185 MB / 0.7703 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004714/1.253, allocations: 2.751 MB / 0.7729 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001612/1.253, allocations: 38.03 kB / 0.773 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=740) (initialization): time 0.01388/1.267, allocations: 5.888 MB / 0.7787 GB, free: 135.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000145/1.267, allocations: 66.03 kB / 0.7788 GB, free: 135.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002108/1.267, allocations: 132.7 kB / 0.7789 GB, free: 135.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008024/1.268, allocations: 363.3 kB / 0.7793 GB, free: 135.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004269/1.272, allocations: 1.297 MB / 0.7805 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002823/1.275, allocations: 2.634 MB / 0.7831 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005/1.28, allocations: 184.5 kB / 0.7833 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001168/1.281, allocations: 369.7 kB / 0.7836 GB, free: 134.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 615 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (705): * Single equations (assignments): 701 * 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.001001/1.282, allocations: 437.1 kB / 0.7841 GB, free: 133.8 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002728/1.285, allocations: 1.717 MB / 0.7857 GB, free: 133.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004803/1.286, allocations: 288.7 kB / 0.786 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002137/1.288, allocations: 1.289 MB / 0.7873 GB, free: 133.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.478e-05/1.288, allocations: 14.94 kB / 0.7873 GB, free: 133.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/1.288, allocations: 3.062 kB / 0.7873 GB, free: 133.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/1.288, allocations: 11.33 kB / 0.7873 GB, free: 133.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007618/1.295, allocations: 4.176 MB / 0.7914 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.09e-05/1.296, allocations: 7.406 kB / 0.7914 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000828/1.296, allocations: 170.6 kB / 0.7915 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000425/1.297, allocations: 157 kB / 0.7917 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.82e-05/1.297, allocations: 3.625 kB / 0.7917 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001764/1.299, allocations: 2.057 MB / 0.7937 GB, free: 131.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/1.299, allocations: 0 / 0.7937 GB, free: 131.6 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003451/1.302, allocations: 3.132 MB / 0.7968 GB, free: 130.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009098/1.303, allocations: 333.6 kB / 0.7971 GB, free: 129.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000302/1.303, allocations: 0 / 0.7971 GB, free: 129.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008706/1.304, allocations: 35.91 kB / 0.7971 GB, free: 129.9 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/1.304, allocations: 67.44 kB / 0.7972 GB, free: 129.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.71e-05/1.305, allocations: 31.53 kB / 0.7972 GB, free: 129.9 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00291/1.307, allocations: 1.919 MB / 0.7991 GB, free: 129.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.402e-06/1.307, allocations: 0 / 0.7991 GB, free: 129.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005064/1.313, allocations: 0.684 MB / 0.7998 GB, free: 129.2 MB / 0.5261 GB 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 88 * 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.003787/1.316, allocations: 3.983 MB / 0.8036 GB, free: 127 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005597/1.322, allocations: 3.521 MB / 0.8071 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/1.322, allocations: 0 / 0.8071 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009778/1.323, allocations: 0.8696 MB / 0.8079 GB, free: 125.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001874/1.325, allocations: 303.9 kB / 0.8082 GB, free: 125.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01583/1.341, allocations: 6.807 MB / 0.8149 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003113/1.344, allocations: 2.874 MB / 0.8177 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004417/1.348, allocations: 1.779 MB / 0.8194 GB, free: 121.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0019/1.35, allocations: 1.517 MB / 0.8209 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of SimCode: time 9.72e-07/1.35, allocations: 0 / 0.8209 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09503/1.445, allocations: 57.96 MB / 0.8775 GB, free: 75.86 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/1.446, allocations: 130.1 kB / 0.8776 GB, free: 75.67 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.881/5.327, allocations: 7.938 kB / 0.8776 GB, free: 75.66 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat