Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_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.001664/0.001664, allocations: 183.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.211 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.0009293/0.0009293, allocations: 98.58 kB / 267.1 MB, free: 9.27 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.3834/0.3834, allocations: 43.46 MB / 358.6 MB, free: 51.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.842e-05/3.859e-05, allocations: 4 kB / 425.4 MB, free: 8.082 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1365, allocations: 58.83 MB / 484.2 MB, free: 13.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4425/0.579, allocations: 105.1 MB / 0.5755 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.5793, allocations: 75.09 kB / 0.5756 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1969/0.7762, allocations: 73.29 MB / 0.6471 GB, free: 228 kB / 458.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.7762, allocations: 0 / 0.6471 GB, free: 228 kB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002198/0.7765, allocations: 71.98 kB / 0.6472 GB, free: 156 kB / 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.01259/0.7891, allocations: 3.264 MB / 0.6504 GB, free: 12.83 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.198e-05/0.7891, allocations: 8.031 kB / 0.6504 GB, free: 12.82 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00336/0.7925, allocations: 0.6183 MB / 0.651 GB, free: 12.19 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01902/0.8116, allocations: 4.254 MB / 0.6552 GB, free: 7.926 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01325/0.8249, allocations: 4.212 MB / 0.6593 GB, free: 3.648 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003061/0.8252, allocations: 246.5 kB / 0.6595 GB, free: 3.406 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001841/0.8271, allocations: 333.2 kB / 0.6598 GB, free: 3.082 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01853/0.8456, allocations: 8.236 MB / 0.6679 GB, free: 9.883 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001699/0.8458, allocations: 55.47 kB / 0.6679 GB, free: 9.828 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006999/0.8465, allocations: 167.8 kB / 0.6681 GB, free: 9.664 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001205/0.8478, allocations: 0.8174 MB / 0.6689 GB, free: 8.848 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01474/0.8625, allocations: 6.59 MB / 0.6753 GB, free: 2.254 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4031/1.266, allocations: 39.87 MB / 0.7143 GB, free: 79.52 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004512/1.27, allocations: 2.251 MB / 0.7165 GB, free: 78.86 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001279/1.272, allocations: 1.055 MB / 0.7175 GB, free: 78.83 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003615/1.272, allocations: 326.1 kB / 0.7178 GB, free: 78.55 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.302e-05/1.272, allocations: 49.28 kB / 0.7178 GB, free: 78.51 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=117): time 3.878e-06/1.272, allocations: 2.344 kB / 0.7178 GB, free: 78.51 MB / 0.4948 GB Notification: Performance of matching and sorting (n=141): time 0.0264/1.298, allocations: 9.417 MB / 0.727 GB, free: 76.09 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001222/1.299, allocations: 196.1 kB / 0.7272 GB, free: 75.87 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005508/1.304, allocations: 3.281 MB / 0.7304 GB, free: 75.55 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002846/1.304, allocations: 50.12 kB / 0.7305 GB, free: 75.52 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00202/1.307, allocations: 2.699 MB / 0.7331 GB, free: 74.27 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006694/1.307, allocations: 0.5631 MB / 0.7337 GB, free: 73.96 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002193/1.307, allocations: 108 kB / 0.7338 GB, free: 73.96 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003046/1.308, allocations: 0.5291 MB / 0.7343 GB, free: 73.65 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002259/1.31, allocations: 1.601 MB / 0.7359 GB, free: 73.63 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003751/1.314, allocations: 5.021 MB / 0.7408 GB, free: 69.16 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004064/1.318, allocations: 2.835 MB / 0.7435 GB, free: 69.14 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001032/1.318, allocations: 34.69 kB / 0.7436 GB, free: 69.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=702) (initialization): time 0.01336/1.331, allocations: 6.561 MB / 0.75 GB, free: 68.64 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001192/1.332, allocations: 58.09 kB / 0.75 GB, free: 68.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001895/1.332, allocations: 131.8 kB / 0.7501 GB, free: 68.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008372/1.333, allocations: 349.7 kB / 0.7505 GB, free: 68.63 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004321/1.337, allocations: 1.245 MB / 0.7517 GB, free: 68.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00267/1.34, allocations: 2.699 MB / 0.7543 GB, free: 67.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004833/1.344, allocations: 283.4 kB / 0.7546 GB, free: 67.08 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001106/1.346, allocations: 341.9 kB / 0.7549 GB, free: 67.08 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.001027/1.347, allocations: 0.5237 MB / 0.7554 GB, free: 66.77 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009553/1.348, allocations: 312.8 kB / 0.7557 GB, free: 66.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004037/1.352, allocations: 1.689 MB / 0.7574 GB, free: 66.49 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.37e-05/1.352, allocations: 17.33 kB / 0.7574 GB, free: 66.49 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.959e-05/1.352, allocations: 8.469 kB / 0.7574 GB, free: 66.49 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.842e-05/1.352, allocations: 8.031 kB / 0.7574 GB, free: 66.49 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01697/1.369, allocations: 5.374 MB / 0.7627 GB, free: 64.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.62e-05/1.369, allocations: 1.719 kB / 0.7627 GB, free: 64.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001285/1.37, allocations: 224.7 kB / 0.7629 GB, free: 64.42 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006071/1.371, allocations: 151.3 kB / 0.763 GB, free: 64.39 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001666/1.371, allocations: 30.03 kB / 0.7631 GB, free: 64.37 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002398/1.373, allocations: 2.153 MB / 0.7652 GB, free: 62.72 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.373, allocations: 1 kB / 0.7652 GB, free: 62.72 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005806/1.379, allocations: 3.777 MB / 0.7688 GB, free: 60.95 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001959/1.381, allocations: 0.526 MB / 0.7694 GB, free: 60.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008947/1.382, allocations: 28.91 kB / 0.7694 GB, free: 60.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001661/1.384, allocations: 64.77 kB / 0.7695 GB, free: 60.57 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002059/1.384, allocations: 77.09 kB / 0.7695 GB, free: 60.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/1.384, allocations: 42.88 kB / 0.7696 GB, free: 60.54 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004957/1.389, allocations: 2.286 MB / 0.7718 GB, free: 59.75 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.61e-07/1.389, allocations: 0 / 0.7718 GB, free: 59.75 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006216/1.395, allocations: 0.8076 MB / 0.7726 GB, free: 59.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.006134/1.402, allocations: 4.687 MB / 0.7772 GB, free: 57.05 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006845/1.408, allocations: 3.931 MB / 0.781 GB, free: 55.61 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.645e-06/1.409, allocations: 0 / 0.781 GB, free: 55.61 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001699/1.41, allocations: 1.071 MB / 0.782 GB, free: 55.15 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002814/1.413, allocations: 341.9 kB / 0.7824 GB, free: 54.99 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02078/1.434, allocations: 7.059 MB / 0.7893 GB, free: 52.41 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004886/1.439, allocations: 2.828 MB / 0.792 GB, free: 51.24 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005833/1.445, allocations: 1.736 MB / 0.7937 GB, free: 51.09 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003246/1.448, allocations: 1.504 MB / 0.7952 GB, free: 49.89 MB / 0.4948 GB Notification: Performance of SimCode: time 2.134e-06/1.448, allocations: 0 / 0.7952 GB, free: 49.89 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1108/1.559, allocations: 63.19 MB / 0.8569 GB, free: 9.227 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001899/1.559, allocations: 163.7 kB / 0.8571 GB, free: 9.004 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.45/6.009, allocations: 0 / 0.8571 GB, free: 9.004 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat