Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance",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.00166/0.001665, allocations: 180.9 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.076/2.076, 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.001127/0.001127, allocations: 82.66 kB / 267.5 MB, free: 14.12 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.3879/0.3879, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.493e-05/3.513e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1254, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5215/0.6469, allocations: 105.1 MB / 0.5755 GB, free: 14.34 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002898/0.6473, allocations: 85.44 kB / 0.5756 GB, free: 14.3 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3319/0.9792, allocations: 73.26 MB / 0.6471 GB, free: 13.23 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.9793, allocations: 4 kB / 0.6471 GB, free: 13.23 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002244/0.9795, allocations: 64 kB / 0.6472 GB, free: 13.16 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.0133/0.9928, allocations: 3.267 MB / 0.6504 GB, free: 9.836 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.492e-05/0.9929, allocations: 8.031 kB / 0.6504 GB, free: 9.828 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002987/0.9959, allocations: 0.6183 MB / 0.651 GB, free: 9.199 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03265/1.029, allocations: 4.25 MB / 0.6551 GB, free: 4.938 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01752/1.046, allocations: 4.228 MB / 0.6593 GB, free: 0.6445 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003368/1.047, allocations: 246.5 kB / 0.6595 GB, free: 412 kB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001574/1.048, allocations: 339.7 kB / 0.6598 GB, free: 72 kB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02214/1.07, allocations: 8.224 MB / 0.6679 GB, free: 6.883 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002096/1.071, allocations: 59.45 kB / 0.6679 GB, free: 6.824 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008237/1.071, allocations: 171.9 kB / 0.6681 GB, free: 6.656 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001857/1.073, allocations: 0.8173 MB / 0.6689 GB, free: 5.84 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0207/1.094, allocations: 6.59 MB / 0.6753 GB, free: 15.24 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4276/1.522, allocations: 39.85 MB / 0.7142 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007875/1.53, allocations: 2.25 MB / 0.7164 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002483/1.532, allocations: 1.063 MB / 0.7175 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005713/1.533, allocations: 327 kB / 0.7178 GB, free: 99.89 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/1.533, allocations: 51.52 kB / 0.7178 GB, free: 99.85 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=117): time 5.54e-06/1.533, allocations: 0 / 0.7178 GB, free: 99.85 MB / 0.4948 GB Notification: Performance of matching and sorting (n=141): time 0.04804/1.581, allocations: 9.41 MB / 0.727 GB, free: 97.51 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.622e-05/1.581, allocations: 197.5 kB / 0.7272 GB, free: 97.29 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008745/1.59, allocations: 3.285 MB / 0.7304 GB, free: 96.97 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000343/1.59, allocations: 44.59 kB / 0.7305 GB, free: 96.94 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002463/1.593, allocations: 2.644 MB / 0.733 GB, free: 95.63 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008912/1.594, allocations: 0.5649 MB / 0.7336 GB, free: 95.32 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006703/1.594, allocations: 105.8 kB / 0.7337 GB, free: 95.32 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004024/1.595, allocations: 0.5358 MB / 0.7342 GB, free: 95 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004057/1.599, allocations: 1.592 MB / 0.7358 GB, free: 94.98 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006516/1.605, allocations: 5.03 MB / 0.7407 GB, free: 90.52 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006422/1.612, allocations: 2.84 MB / 0.7434 GB, free: 90.49 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001338/1.612, allocations: 37.5 kB / 0.7435 GB, free: 90.49 MB / 0.4948 GB Notification: Performance of matching and sorting (n=702) (initialization): time 0.01743/1.63, allocations: 6.457 MB / 0.7498 GB, free: 90.17 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001341/1.63, allocations: 58.72 kB / 0.7498 GB, free: 90.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001953/1.63, allocations: 125.5 kB / 0.75 GB, free: 90.17 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001263/1.631, allocations: 346.3 kB / 0.7503 GB, free: 90.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007652/1.639, allocations: 1.244 MB / 0.7515 GB, free: 90.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004296/1.643, allocations: 2.711 MB / 0.7542 GB, free: 88.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006199/1.65, allocations: 286 kB / 0.7544 GB, free: 88.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001284/1.651, allocations: 335.4 kB / 0.7547 GB, free: 88.62 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * Number of states: 0 () * Number of discrete variables: 27 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (667): * Single equations (assignments): 663 * 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.001598/1.653, allocations: 0.5228 MB / 0.7553 GB, free: 88.32 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009338/1.653, allocations: 320.8 kB / 0.7556 GB, free: 88.14 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004893/1.658, allocations: 1.69 MB / 0.7572 GB, free: 88.04 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.318e-05/1.659, allocations: 18.03 kB / 0.7572 GB, free: 88.04 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.59e-05/1.659, allocations: 6.984 kB / 0.7572 GB, free: 88.04 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.748e-05/1.659, allocations: 6.797 kB / 0.7572 GB, free: 88.04 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01614/1.675, allocations: 5.371 MB / 0.7625 GB, free: 86.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/1.675, allocations: 0 / 0.7625 GB, free: 86.43 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002227/1.677, allocations: 224 kB / 0.7627 GB, free: 86.41 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008465/1.678, allocations: 158.8 kB / 0.7629 GB, free: 86.37 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002787/1.678, allocations: 27.7 kB / 0.7629 GB, free: 86.35 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003145/1.681, allocations: 2.144 MB / 0.765 GB, free: 84.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/1.681, allocations: 3.938 kB / 0.765 GB, free: 84.71 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008139/1.69, allocations: 3.77 MB / 0.7687 GB, free: 82.94 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002091/1.692, allocations: 0.5426 MB / 0.7692 GB, free: 82.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000964/1.693, allocations: 15.81 kB / 0.7692 GB, free: 82.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002585/1.695, allocations: 71.34 kB / 0.7693 GB, free: 82.55 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000379/1.696, allocations: 75.45 kB / 0.7693 GB, free: 82.54 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001497/1.696, allocations: 41.53 kB / 0.7694 GB, free: 82.53 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005733/1.702, allocations: 2.286 MB / 0.7716 GB, free: 81.73 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.293e-06/1.702, allocations: 2.312 kB / 0.7716 GB, free: 81.73 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006245/1.708, allocations: 0.7974 MB / 0.7724 GB, free: 81.64 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 108 * 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.008459/1.717, allocations: 4.693 MB / 0.777 GB, free: 79.05 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009267/1.726, allocations: 3.928 MB / 0.7808 GB, free: 77.65 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/1.726, allocations: 1.969 kB / 0.7808 GB, free: 77.65 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002318/1.728, allocations: 1.063 MB / 0.7819 GB, free: 77.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003141/1.731, allocations: 351.2 kB / 0.7822 GB, free: 77.04 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02524/1.757, allocations: 7.432 MB / 0.7895 GB, free: 73.45 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005875/1.763, allocations: 2.841 MB / 0.7922 GB, free: 71.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003873/1.767, allocations: 1.551 MB / 0.7937 GB, free: 69.83 MB / 0.4948 GB Notification: Performance of SimCode: time 1.122e-06/1.767, allocations: 0 / 0.7937 GB, free: 69.83 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.102/5.868, allocations: 82.02 MB / 0.8738 GB, free: 12.61 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat