Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.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.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor",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.001021/0.001021, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.704/1.704, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009047/0.0009049, allocations: 84 kB / 261.7 MB, free: 1.688 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.1992/0.1992, allocations: 43.49 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.705e-05/1.718e-05, allocations: 4 kB / 418.3 MB, free: 28.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1367, allocations: 58.86 MB / 477.2 MB, free: 1.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4901/0.6268, allocations: 111.3 MB / 0.5747 GB, free: 188 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/0.6271, allocations: 85.05 kB / 0.5747 GB, free: 148 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8778/1.505, allocations: 240.7 MB / 0.8098 GB, free: 77.52 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.014e-06/1.505, allocations: 0 / 0.8098 GB, free: 77.52 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0006306/1.506, allocations: 379.5 kB / 0.8101 GB, free: 77.5 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: 5965 * Number of variables: 5965 Notification: Performance of Generate backend data structure: time 0.04904/1.555, allocations: 15.63 MB / 0.8254 GB, free: 69.83 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/1.555, allocations: 8.031 kB / 0.8254 GB, free: 69.82 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03439/1.589, allocations: 8.29 MB / 0.8335 GB, free: 61.5 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03075/1.62, allocations: 12.43 MB / 0.8456 GB, free: 49.05 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001077/1.621, allocations: 0.6406 MB / 0.8463 GB, free: 48.41 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009112/1.63, allocations: 1.16 MB / 0.8474 GB, free: 47.25 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05199/1.682, allocations: 22.94 MB / 0.8698 GB, free: 24.32 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09946/1.782, allocations: 33.59 MB / 0.9026 GB, free: 4.418 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001671/1.783, allocations: 150.6 kB / 0.9027 GB, free: 4.27 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009771/1.793, allocations: 68 kB / 0.9028 GB, free: 4.203 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003955/1.797, allocations: 2.399 MB / 0.9051 GB, free: 1.816 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5751/2.372, allocations: 141.5 MB / 1.043 GB, free: 3.988 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01006/2.383, allocations: 9.919 MB / 1.053 GB, free: 14.26 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007566/2.39, allocations: 6.619 MB / 1.059 GB, free: 11.26 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002728/2.393, allocations: 2.582 MB / 1.062 GB, free: 9.152 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.677e-05/2.393, allocations: 76.98 kB / 1.062 GB, free: 9.082 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=409): time 8.816e-06/2.393, allocations: 0 / 1.062 GB, free: 9.082 MB / 0.5261 GB Notification: Performance of matching and sorting (n=523): time 0.9953/3.388, allocations: 236 MB / 1.292 GB, free: 55.32 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.936e-05/3.388, allocations: 286.6 kB / 1.293 GB, free: 54.98 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01387/3.402, allocations: 7.872 MB / 1.3 GB, free: 47.16 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.002794/3.405, allocations: 29.7 kB / 1.3 GB, free: 47.12 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0081/3.413, allocations: 10.83 MB / 1.311 GB, free: 36.16 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.004969/3.418, allocations: 1.952 MB / 1.313 GB, free: 34.19 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003878/3.422, allocations: 4 kB / 1.313 GB, free: 34.18 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.001146/3.423, allocations: 1.058 MB / 1.314 GB, free: 33.12 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3781/3.802, allocations: 15.52 MB / 1.329 GB, free: 127.9 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03558/3.837, allocations: 26.22 MB / 1.355 GB, free: 114 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02956/3.867, allocations: 19.64 MB / 1.374 GB, free: 111.7 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0009842/3.868, allocations: 112.4 kB / 1.374 GB, free: 111.7 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2276) (initialization): time 0.07243/3.94, allocations: 39.72 MB / 1.413 GB, free: 96.35 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001399/3.942, allocations: 174 kB / 1.413 GB, free: 96.35 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001398/3.943, allocations: 381 kB / 1.413 GB, free: 96.35 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002121/3.945, allocations: 0.9291 MB / 1.414 GB, free: 96.24 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02617/3.972, allocations: 5.389 MB / 1.42 GB, free: 95.73 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006643/3.978, allocations: 5.98 MB / 1.425 GB, free: 91.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02331/4.002, allocations: 1.827 MB / 1.427 GB, free: 91.89 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007238/4.009, allocations: 1.049 MB / 1.428 GB, free: 91.75 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1751 * Number of states: 0 () * Number of discrete variables: 48 (relativeSensor.arrowColor[3],relativeSensor.arrowColor[2],relativeSensor.arrowColor[1],relative_b1.arrowColor[3],relative_b1.arrowColor[2],relative_b1.arrowColor[1],relative_b2.arrowColor[3],relative_b2.arrowColor[2],relative_b2.arrowColor[1],relative_a2.arrowColor[3],relative_a2.arrowColor[2],relative_a2.arrowColor[1],relative_a1.arrowColor[3],relative_a1.arrowColor[2],relative_a1.arrowColor[1],BodyBox2.color[3],BodyBox2.color[2],BodyBox2.color[1],BodyBox2.body.sphereColor[3],BodyBox2.body.sphereColor[2],BodyBox2.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (2214): * Single equations (assignments): 2204 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009713/4.019, allocations: 1.018 MB / 1.429 GB, free: 90.92 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03812/4.057, allocations: 27.59 MB / 1.456 GB, free: 70.15 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004128/4.061, allocations: 0.8255 MB / 1.457 GB, free: 69.77 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04575/4.107, allocations: 30.2 MB / 1.486 GB, free: 43.62 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000165/4.107, allocations: 95.75 kB / 1.486 GB, free: 43.54 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.691e-05/4.107, allocations: 11.95 kB / 1.487 GB, free: 43.53 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001179/4.107, allocations: 22.55 kB / 1.487 GB, free: 43.53 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5342/4.641, allocations: 71.35 MB / 1.556 GB, free: 114.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.255e-05/4.641, allocations: 3.438 kB / 1.556 GB, free: 114.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01375/4.655, allocations: 2.164 MB / 1.558 GB, free: 114.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001191/4.656, allocations: 322.6 kB / 1.559 GB, free: 114.7 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002575/4.659, allocations: 15.31 kB / 1.559 GB, free: 114.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003882/4.663, allocations: 4.107 MB / 1.563 GB, free: 112.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/4.663, allocations: 1.875 kB / 1.563 GB, free: 112.3 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06557/4.729, allocations: 50.87 MB / 1.612 GB, free: 93.88 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009151/4.738, allocations: 3.907 MB / 1.616 GB, free: 92.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004218/4.742, allocations: 8.266 kB / 1.616 GB, free: 92.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01233/4.754, allocations: 1.563 MB / 1.618 GB, free: 92.4 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002277/4.757, allocations: 285.5 kB / 1.618 GB, free: 92.36 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009779/4.758, allocations: 140.8 kB / 1.618 GB, free: 92.33 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.009931/4.768, allocations: 5.22 MB / 1.623 GB, free: 90.38 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.202e-06/4.768, allocations: 0 / 1.623 GB, free: 90.38 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01839/4.786, allocations: 3.888 MB / 1.627 GB, free: 90.38 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (479): * Single equations (assignments): 469 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05724/4.843, allocations: 51.96 MB / 1.678 GB, free: 49.3 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.04475/4.888, allocations: 34.25 MB / 1.711 GB, free: 18.74 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-05/4.888, allocations: 4.625 kB / 1.711 GB, free: 18.74 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01895/4.907, allocations: 14.86 MB / 1.726 GB, free: 5.051 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009485/4.917, allocations: 1.165 MB / 1.727 GB, free: 4.137 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4788/5.396, allocations: 48.33 MB / 1.774 GB, free: 130.1 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02577/5.421, allocations: 11.38 MB / 1.785 GB, free: 129 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.02659/5.448, allocations: 7.502 MB / 1.792 GB, free: 128.9 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01989/5.468, allocations: 7.884 MB / 1.8 GB, free: 128.9 MB / 0.573 GB Notification: Performance of SimCode: time 1.603e-06/5.468, allocations: 0 / 1.8 GB, free: 128.9 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7767/6.245, allocations: 269.1 MB / 2.063 GB, free: 88.43 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/6.245, allocations: 135.9 kB / 2.063 GB, free: 88.24 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.88/19.13, allocations: 0 / 2.063 GB, free: 88.24 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat