Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001397/0.001397, allocations: 182.5 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.685/1.685, allocations: 205.2 MB / 218.9 MB, free: 9.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001151/0.001151, allocations: 89.08 kB / 267 MB, free: 9.285 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4137/0.4137, allocations: 43.47 MB / 358.6 MB, free: 51.57 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.819e-05/4.822e-05, allocations: 4 kB / 425.4 MB, free: 8.105 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1445, allocations: 58.84 MB / 484.3 MB, free: 13.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4533/0.5978, allocations: 104.5 MB / 0.5749 GB, free: 1.34 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/0.5981, allocations: 73.78 kB / 0.575 GB, free: 1.305 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2197/0.8178, allocations: 79.27 MB / 0.6524 GB, free: 10.81 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.048e-06/0.8178, allocations: 3.984 kB / 0.6524 GB, free: 10.8 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002765/0.8181, allocations: 68 kB / 0.6525 GB, free: 10.74 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01458/0.8327, allocations: 3.552 MB / 0.656 GB, free: 7.133 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.8328, allocations: 8.031 kB / 0.656 GB, free: 7.125 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003589/0.8364, allocations: 0.6924 MB / 0.6566 GB, free: 6.422 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01885/0.8553, allocations: 4.32 MB / 0.6609 GB, free: 2.09 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01453/0.8699, allocations: 4.381 MB / 0.6651 GB, free: 13.64 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004243/0.8703, allocations: 279.2 kB / 0.6654 GB, free: 13.37 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002637/0.873, allocations: 373.2 kB / 0.6658 GB, free: 13.01 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02571/0.8987, allocations: 9.051 MB / 0.6746 GB, free: 2.973 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000378/0.8992, allocations: 63.41 kB / 0.6747 GB, free: 2.91 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001984/0.9012, allocations: 187.8 kB / 0.6748 GB, free: 2.727 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001623/0.9029, allocations: 0.8962 MB / 0.6757 GB, free: 1.832 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01827/0.9212, allocations: 7.253 MB / 0.6828 GB, free: 10.57 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3815/1.303, allocations: 42.76 MB / 0.7246 GB, free: 73.11 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004523/1.307, allocations: 2.492 MB / 0.727 GB, free: 72.45 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001278/1.309, allocations: 1.066 MB / 0.728 GB, free: 72.42 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003392/1.309, allocations: 327.7 kB / 0.7283 GB, free: 72.14 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.579e-05/1.309, allocations: 48.14 kB / 0.7284 GB, free: 72.1 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=119): time 3.957e-06/1.309, allocations: 2.344 kB / 0.7284 GB, free: 72.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=133): time 0.01849/1.328, allocations: 7.484 MB / 0.7357 GB, free: 69.7 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.57e-05/1.328, allocations: 202.4 kB / 0.7359 GB, free: 69.48 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005252/1.333, allocations: 3.481 MB / 0.7393 GB, free: 69.15 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002464/1.333, allocations: 44.45 kB / 0.7393 GB, free: 69.12 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001838/1.335, allocations: 2.976 MB / 0.7422 GB, free: 67.71 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000662/1.336, allocations: 0.5492 MB / 0.7428 GB, free: 67.42 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002335/1.336, allocations: 113.5 kB / 0.7429 GB, free: 67.42 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000291/1.336, allocations: 0.5506 MB / 0.7434 GB, free: 67.1 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002208/1.338, allocations: 1.598 MB / 0.745 GB, free: 67.09 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003654/1.342, allocations: 5.401 MB / 0.7503 GB, free: 62.11 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00418/1.346, allocations: 2.939 MB / 0.7531 GB, free: 62.1 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001142/1.346, allocations: 39.34 kB / 0.7532 GB, free: 62.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=753) (initialization): time 0.01518/1.362, allocations: 6.861 MB / 0.7599 GB, free: 61.39 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001254/1.362, allocations: 64.59 kB / 0.7599 GB, free: 61.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001871/1.362, allocations: 136.8 kB / 0.7601 GB, free: 61.39 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008448/1.363, allocations: 365.1 kB / 0.7604 GB, free: 61.38 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004276/1.367, allocations: 1.337 MB / 0.7617 GB, free: 61.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002796/1.37, allocations: 2.738 MB / 0.7644 GB, free: 59.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005114/1.375, allocations: 303.4 kB / 0.7647 GB, free: 59.81 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001222/1.376, allocations: 368.7 kB / 0.765 GB, free: 59.81 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],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 (718): * Single equations (assignments): 714 * 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.00103/1.377, allocations: 0.5565 MB / 0.7656 GB, free: 59.49 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009016/1.378, allocations: 326.1 kB / 0.7659 GB, free: 59.31 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003419/1.382, allocations: 1.559 MB / 0.7674 GB, free: 59.17 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.528e-05/1.382, allocations: 15.12 kB / 0.7674 GB, free: 59.17 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.031e-05/1.382, allocations: 8.875 kB / 0.7674 GB, free: 59.17 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.926e-05/1.382, allocations: 8.359 kB / 0.7674 GB, free: 59.17 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0105/1.392, allocations: 5.215 MB / 0.7725 GB, free: 57.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/1.392, allocations: 3.625 kB / 0.7725 GB, free: 57.53 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009807/1.393, allocations: 189.9 kB / 0.7727 GB, free: 57.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004885/1.394, allocations: 162.9 kB / 0.7729 GB, free: 57.47 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.803e-05/1.394, allocations: 20.75 kB / 0.7729 GB, free: 57.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002219/1.396, allocations: 2.159 MB / 0.775 GB, free: 55.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/1.396, allocations: 2 kB / 0.775 GB, free: 55.82 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005175/1.401, allocations: 3.541 MB / 0.7784 GB, free: 54.06 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001977/1.403, allocations: 0.5159 MB / 0.779 GB, free: 53.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006038/1.404, allocations: 23.38 kB / 0.779 GB, free: 53.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001732/1.406, allocations: 52.22 kB / 0.779 GB, free: 53.69 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002945/1.406, allocations: 80.5 kB / 0.7791 GB, free: 53.67 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001319/1.406, allocations: 38.75 kB / 0.7791 GB, free: 53.66 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006339/1.413, allocations: 2.413 MB / 0.7815 GB, free: 52.83 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.71e-07/1.413, allocations: 0 / 0.7815 GB, free: 52.83 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009715/1.422, allocations: 0.8488 MB / 0.7823 GB, free: 52.72 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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.008478/1.431, allocations: 4.608 MB / 0.7868 GB, free: 49.98 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01098/1.442, allocations: 3.929 MB / 0.7907 GB, free: 48.56 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/1.442, allocations: 0 / 0.7907 GB, free: 48.56 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002092/1.444, allocations: 0.9572 MB / 0.7916 GB, free: 48.15 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00316/1.447, allocations: 369.3 kB / 0.7919 GB, free: 47.98 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0285/1.476, allocations: 7.449 MB / 0.7992 GB, free: 45.23 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005976/1.482, allocations: 3.031 MB / 0.8022 GB, free: 44.02 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01007/1.492, allocations: 1.803 MB / 0.8039 GB, free: 43.86 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0049/1.497, allocations: 1.644 MB / 0.8055 GB, free: 42.54 MB / 0.4948 GB Notification: Performance of SimCode: time 1.893e-06/1.497, allocations: 0 / 0.8055 GB, free: 42.54 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1651/1.662, allocations: 66.09 MB / 0.8701 GB, free: 1.312 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002465/1.662, allocations: 164.7 kB / 0.8703 GB, free: 1.086 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.436/6.098, allocations: 64 / 0.8703 GB, free: 1.086 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat