Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.001469/0.001475, allocations: 181.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.064/2.064, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.00116/0.00116, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2941/0.2941, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.364e-05/3.389e-05, allocations: 0 / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1216, allocations: 58.85 MB / 484.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5499/0.6715, allocations: 104.5 MB / 0.5749 GB, free: 14.99 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.6719, allocations: 82.23 kB / 0.575 GB, free: 14.95 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3441/1.016, allocations: 79.26 MB / 0.6524 GB, free: 7.805 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.754e-06/1.016, allocations: 0 / 0.6524 GB, free: 7.805 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002578/1.016, allocations: 72 kB / 0.6525 GB, free: 7.734 MB / 458.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.01486/1.031, allocations: 3.539 MB / 0.6559 GB, free: 4.137 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.637e-05/1.031, allocations: 8.031 kB / 0.6559 GB, free: 4.129 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003305/1.035, allocations: 0.6962 MB / 0.6566 GB, free: 3.422 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0335/1.068, allocations: 4.324 MB / 0.6608 GB, free: 15.08 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0239/1.092, allocations: 4.381 MB / 0.6651 GB, free: 10.64 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007745/1.093, allocations: 279.3 kB / 0.6654 GB, free: 10.37 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003052/1.096, allocations: 367.8 kB / 0.6657 GB, free: 10.01 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04083/1.137, allocations: 9.047 MB / 0.6746 GB, free: 15.98 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004167/1.137, allocations: 63.47 kB / 0.6746 GB, free: 15.91 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002907/1.14, allocations: 183.8 kB / 0.6748 GB, free: 15.73 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003647/1.144, allocations: 0.9039 MB / 0.6757 GB, free: 14.83 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03571/1.18, allocations: 7.257 MB / 0.6828 GB, free: 7.566 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4714/1.651, allocations: 42.75 MB / 0.7245 GB, free: 95.29 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01197/1.663, allocations: 2.499 MB / 0.727 GB, free: 94.62 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003446/1.667, allocations: 1.06 MB / 0.728 GB, free: 94.59 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000777/1.668, allocations: 326.6 kB / 0.7283 GB, free: 94.31 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.968e-05/1.668, allocations: 48.31 kB / 0.7284 GB, free: 94.27 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=119): time 8.857e-06/1.668, allocations: 0.625 kB / 0.7284 GB, free: 94.27 MB / 0.4948 GB Notification: Performance of matching and sorting (n=133): time 0.04725/1.715, allocations: 7.495 MB / 0.7357 GB, free: 91.88 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.357e-05/1.715, allocations: 195.9 kB / 0.7359 GB, free: 91.66 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01223/1.727, allocations: 3.49 MB / 0.7393 GB, free: 91.32 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003393/1.728, allocations: 45.88 kB / 0.7393 GB, free: 91.29 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003605/1.731, allocations: 2.914 MB / 0.7422 GB, free: 89.82 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001146/1.733, allocations: 0.543 MB / 0.7427 GB, free: 89.54 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008492/1.734, allocations: 119.2 kB / 0.7428 GB, free: 89.54 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005751/1.734, allocations: 0.5574 MB / 0.7433 GB, free: 89.21 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005582/1.74, allocations: 1.592 MB / 0.7449 GB, free: 89.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008926/1.749, allocations: 5.403 MB / 0.7502 GB, free: 84.23 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009353/1.758, allocations: 2.946 MB / 0.7531 GB, free: 84.2 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000206/1.758, allocations: 43 kB / 0.7531 GB, free: 84.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=753) (initialization): time 0.02529/1.784, allocations: 6.749 MB / 0.7597 GB, free: 83.72 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001865/1.784, allocations: 65.91 kB / 0.7597 GB, free: 83.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003219/1.784, allocations: 137.5 kB / 0.7599 GB, free: 83.72 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001905/1.786, allocations: 368.2 kB / 0.7602 GB, free: 83.71 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01061/1.797, allocations: 1.336 MB / 0.7615 GB, free: 83.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006304/1.803, allocations: 2.733 MB / 0.7642 GB, free: 82.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01012/1.814, allocations: 302 kB / 0.7645 GB, free: 82.16 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001774/1.815, allocations: 366.4 kB / 0.7648 GB, free: 82.16 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.002851/1.818, allocations: 0.5556 MB / 0.7654 GB, free: 81.84 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001379/1.82, allocations: 331 kB / 0.7657 GB, free: 81.65 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006927/1.827, allocations: 1.561 MB / 0.7672 GB, free: 81.52 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.861e-05/1.827, allocations: 13.94 kB / 0.7672 GB, free: 81.52 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.175e-05/1.827, allocations: 4.562 kB / 0.7672 GB, free: 81.52 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.173e-05/1.827, allocations: 11.36 kB / 0.7673 GB, free: 81.52 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02345/1.85, allocations: 5.215 MB / 0.7723 GB, free: 79.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.426e-05/1.85, allocations: 0 / 0.7723 GB, free: 79.96 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002395/1.853, allocations: 190.8 kB / 0.7725 GB, free: 79.95 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001079/1.854, allocations: 162 kB / 0.7727 GB, free: 79.91 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003141/1.854, allocations: 20.31 kB / 0.7727 GB, free: 79.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004447/1.859, allocations: 2.163 MB / 0.7748 GB, free: 78.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/1.859, allocations: 0.6562 kB / 0.7748 GB, free: 78.25 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01076/1.87, allocations: 3.528 MB / 0.7783 GB, free: 76.51 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002828/1.873, allocations: 0.5187 MB / 0.7788 GB, free: 76.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001435/1.874, allocations: 18.72 kB / 0.7788 GB, free: 76.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003836/1.878, allocations: 58.17 kB / 0.7788 GB, free: 76.14 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005644/1.879, allocations: 79.88 kB / 0.7789 GB, free: 76.12 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001895/1.879, allocations: 33.03 kB / 0.7789 GB, free: 76.11 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009408/1.888, allocations: 2.418 MB / 0.7813 GB, free: 75.28 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.192e-06/1.888, allocations: 0 / 0.7813 GB, free: 75.28 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01095/1.899, allocations: 0.8523 MB / 0.7821 GB, free: 75.17 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.01213/1.911, allocations: 4.604 MB / 0.7866 GB, free: 72.43 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01063/1.922, allocations: 3.935 MB / 0.7905 GB, free: 71.01 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/1.922, allocations: 3.938 kB / 0.7905 GB, free: 71.01 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002043/1.924, allocations: 0.9559 MB / 0.7914 GB, free: 70.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003099/1.927, allocations: 360.5 kB / 0.7918 GB, free: 70.43 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02581/1.953, allocations: 7.888 MB / 0.7995 GB, free: 67.16 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005704/1.959, allocations: 3.031 MB / 0.8024 GB, free: 64.83 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003651/1.963, allocations: 1.69 MB / 0.8041 GB, free: 63.27 MB / 0.4948 GB Notification: Performance of SimCode: time 2.515e-06/1.963, allocations: 0 / 0.8041 GB, free: 63.27 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.06/6.023, allocations: 87.39 MB / 0.8894 GB, free: 1.176 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat