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.001498/0.001498, allocations: 198.3 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.2 MB / 245 MB, free: 7.586 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008957/0.0008954, allocations: 96.95 kB / 297.2 MB, free: 6.203 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4228/0.4228, allocations: 45.23 MB / 394.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.000267, allocations: 8.219 kB / 468.5 MB, free: 7.648 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4106/0.4109, allocations: 63.24 MB / 0.5193 GB, free: 43.66 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1777/0.5886, allocations: 106.7 MB / 0.6235 GB, free: 14.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.589, allocations: 91.92 kB / 0.6235 GB, free: 14.82 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1977/0.7867, allocations: 76.6 MB / 0.6983 GB, free: 1.789 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.364e-06/0.7867, allocations: 0 / 0.6983 GB, free: 1.789 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001652/0.7869, allocations: 64 kB / 0.6984 GB, free: 1.727 MB / 0.4948 GB 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.3346/1.122, allocations: 3.61 MB / 0.7019 GB, free: 97.56 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.515e-05/1.122, allocations: 9.75 kB / 0.7019 GB, free: 97.56 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003364/1.125, allocations: 0.6443 MB / 0.7026 GB, free: 97.5 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01743/1.142, allocations: 4.276 MB / 0.7068 GB, free: 97.26 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01172/1.154, allocations: 3.631 MB / 0.7103 GB, free: 96.95 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003564/1.155, allocations: 263.7 kB / 0.7105 GB, free: 96.95 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001894/1.157, allocations: 339.9 kB / 0.7109 GB, free: 96.95 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01434/1.171, allocations: 8.576 MB / 0.7192 GB, free: 94.38 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001538/1.171, allocations: 54.69 kB / 0.7193 GB, free: 94.37 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004613/1.172, allocations: 169.4 kB / 0.7195 GB, free: 94.37 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001008/1.173, allocations: 0.8314 MB / 0.7203 GB, free: 94.37 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01254/1.185, allocations: 6.856 MB / 0.727 GB, free: 94.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05578/1.241, allocations: 40.95 MB / 0.767 GB, free: 63.72 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005195/1.246, allocations: 2.423 MB / 0.7693 GB, free: 62.53 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003899/1.247, allocations: 326.7 kB / 0.7696 GB, free: 62.24 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.366e-05/1.247, allocations: 42.92 kB / 0.7697 GB, free: 62.19 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=104): time 6.613e-06/1.247, allocations: 1.281 kB / 0.7697 GB, free: 62.19 MB / 0.4948 GB Notification: Performance of matching and sorting (n=118): time 0.02121/1.268, allocations: 8.315 MB / 0.7778 GB, free: 58.23 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/1.268, allocations: 204.1 kB / 0.778 GB, free: 58 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004596/1.273, allocations: 3.376 MB / 0.7813 GB, free: 56.77 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001928/1.273, allocations: 41.52 kB / 0.7813 GB, free: 56.73 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001501/1.274, allocations: 2.828 MB / 0.7841 GB, free: 54.55 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004426/1.275, allocations: 494 kB / 0.7846 GB, free: 54.21 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001728/1.275, allocations: 108 kB / 0.7847 GB, free: 54.13 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.00026/1.275, allocations: 0.5336 MB / 0.7852 GB, free: 53.73 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002028/1.277, allocations: 1.544 MB / 0.7867 GB, free: 53.25 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003691/1.281, allocations: 5.149 MB / 0.7917 GB, free: 47.75 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003554/1.285, allocations: 2.788 MB / 0.7944 GB, free: 46.61 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-05/1.285, allocations: 34.72 kB / 0.7945 GB, free: 46.61 MB / 0.4948 GB Notification: Performance of matching and sorting (n=709) (initialization): time 0.01302/1.298, allocations: 6.563 MB / 0.8009 GB, free: 44.06 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001081/1.298, allocations: 60.03 kB / 0.8009 GB, free: 44.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002294/1.298, allocations: 132.5 kB / 0.8011 GB, free: 44.05 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007921/1.299, allocations: 364.4 kB / 0.8014 GB, free: 44.01 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004332/1.303, allocations: 1.242 MB / 0.8026 GB, free: 43.85 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002885/1.306, allocations: 2.764 MB / 0.8053 GB, free: 41.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004505/1.311, allocations: 292.4 kB / 0.8056 GB, free: 41.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007822/1.312, allocations: 346 kB / 0.8059 GB, free: 41.8 MB / 0.4948 GB 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.003175/1.315, allocations: 1.835 MB / 0.8077 GB, free: 40.91 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000633/1.315, allocations: 308.4 kB / 0.808 GB, free: 40.74 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002337/1.318, allocations: 1.354 MB / 0.8093 GB, free: 40.2 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-05/1.318, allocations: 14.97 kB / 0.8094 GB, free: 40.2 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/1.318, allocations: 7.25 kB / 0.8094 GB, free: 40.2 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/1.318, allocations: 3.516 kB / 0.8094 GB, free: 40.2 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009443/1.327, allocations: 4.8 MB / 0.8141 GB, free: 38.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/1.327, allocations: 0 / 0.8141 GB, free: 38.35 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008308/1.328, allocations: 168.2 kB / 0.8142 GB, free: 38.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004465/1.329, allocations: 160.7 kB / 0.8144 GB, free: 38.3 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.313e-05/1.329, allocations: 23.98 kB / 0.8144 GB, free: 38.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001866/1.331, allocations: 2.193 MB / 0.8165 GB, free: 36.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/1.331, allocations: 3.938 kB / 0.8165 GB, free: 36.62 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003935/1.335, allocations: 3.209 MB / 0.8197 GB, free: 35.08 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001294/1.336, allocations: 379.8 kB / 0.82 GB, free: 34.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003501/1.336, allocations: 14.91 kB / 0.8201 GB, free: 34.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/1.337, allocations: 53.3 kB / 0.8201 GB, free: 34.76 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/1.337, allocations: 62.36 kB / 0.8202 GB, free: 34.75 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.039e-05/1.338, allocations: 34.19 kB / 0.8202 GB, free: 34.74 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00402/1.342, allocations: 2.341 MB / 0.8225 GB, free: 33.96 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.21e-07/1.342, allocations: 0 / 0.8225 GB, free: 33.96 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005938/1.348, allocations: 0.7944 MB / 0.8233 GB, free: 33.43 MB / 0.4948 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 () * 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.006911/1.354, allocations: 4.087 MB / 0.8272 GB, free: 29.66 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008163/1.363, allocations: 3.759 MB / 0.8309 GB, free: 26.34 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/1.363, allocations: 0 / 0.8309 GB, free: 26.34 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001328/1.364, allocations: 0.902 MB / 0.8318 GB, free: 25.54 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003039/1.367, allocations: 361.3 kB / 0.8321 GB, free: 25.23 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4023/1.77, allocations: 116.1 MB / 0.9455 GB, free: 97.24 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004116/1.774, allocations: 2.88 MB / 0.9483 GB, free: 96.48 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.004476/1.778, allocations: 1.712 MB / 0.95 GB, free: 96.45 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0023/1.781, allocations: 1.517 MB / 0.9515 GB, free: 96.45 MB / 0.5417 GB Notification: Performance of SimCode: time 1.383e-06/1.781, allocations: 3.5 kB / 0.9515 GB, free: 96.45 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1226/1.903, allocations: 62.61 MB / 1.013 GB, free: 86.61 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001982/1.903, allocations: 196.1 kB / 1.013 GB, free: 86.37 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.132/6.036, allocations: 7.938 kB / 1.013 GB, free: 86.36 MB / 0.5417 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