Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001088/0.001088, allocations: 202.2 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 225.6 MB / 234.8 MB, free: 3.234 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008801/0.0008802, allocations: 96.69 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2149/0.2149, allocations: 45.16 MB / 383.8 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.702e-05/2.699e-05, allocations: 0 / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1325, allocations: 63.24 MB / 0.5045 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4787/0.6112, allocations: 113.5 MB / 0.6152 GB, free: 5.168 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003247/0.6116, allocations: 73.09 kB / 0.6153 GB, free: 5.133 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8431/1.455, allocations: 234.8 MB / 0.8446 GB, free: 88.5 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.372e-06/1.455, allocations: 0 / 0.8446 GB, free: 88.5 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0006339/1.455, allocations: 364.1 kB / 0.8449 GB, free: 88.48 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5720 * Number of variables: 5720 Notification: Performance of Generate backend data structure: time 0.04602/1.501, allocations: 15.23 MB / 0.8598 GB, free: 82.78 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/1.502, allocations: 15.75 kB / 0.8598 GB, free: 82.77 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03172/1.533, allocations: 8.162 MB / 0.8678 GB, free: 81.12 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03187/1.565, allocations: 11.21 MB / 0.8787 GB, free: 73.2 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001055/1.566, allocations: 0.6211 MB / 0.8793 GB, free: 72.58 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008704/1.575, allocations: 1.14 MB / 0.8804 GB, free: 71.44 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05274/1.628, allocations: 21.89 MB / 0.9018 GB, free: 49.55 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08955/1.717, allocations: 32.29 MB / 0.9334 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001245/1.719, allocations: 146.6 kB / 0.9335 GB, free: 14.83 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008264/1.727, allocations: 68 kB / 0.9336 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002805/1.73, allocations: 2.205 MB / 0.9357 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5112/2.241, allocations: 137.8 MB / 1.07 GB, free: 24.77 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008529/2.25, allocations: 9.586 MB / 1.08 GB, free: 19.15 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005916/2.255, allocations: 6.419 MB / 1.086 GB, free: 16.23 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002152/2.258, allocations: 2.561 MB / 1.088 GB, free: 14.13 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.566e-05/2.258, allocations: 82.06 kB / 1.089 GB, free: 14.06 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=367): time 6.853e-06/2.258, allocations: 0 / 1.089 GB, free: 14.06 MB / 0.5417 GB Notification: Performance of matching and sorting (n=481): time 0.9804/3.238, allocations: 245.3 MB / 1.328 GB, free: 98.84 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.905e-05/3.238, allocations: 274.6 kB / 1.328 GB, free: 98.51 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01275/3.251, allocations: 7.583 MB / 1.336 GB, free: 90.96 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.002706/3.254, allocations: 27.77 kB / 1.336 GB, free: 90.93 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.006957/3.261, allocations: 10.41 MB / 1.346 GB, free: 80.4 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.004141/3.265, allocations: 1.805 MB / 1.348 GB, free: 78.57 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003525/3.269, allocations: 0 / 1.348 GB, free: 78.57 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.001159/3.27, allocations: 1.016 MB / 1.349 GB, free: 77.55 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02044/3.29, allocations: 15.25 MB / 1.364 GB, free: 62.29 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02971/3.32, allocations: 25.42 MB / 1.388 GB, free: 31.92 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5091/3.829, allocations: 19.19 MB / 1.407 GB, free: 124.9 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004279/3.83, allocations: 103.8 kB / 1.407 GB, free: 124.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2151) (initialization): time 0.08209/3.912, allocations: 38.75 MB / 1.445 GB, free: 121.5 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.000298/3.912, allocations: 167.1 kB / 1.445 GB, free: 121.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006322/3.913, allocations: 362.1 kB / 1.446 GB, free: 121.5 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001943/3.915, allocations: 0.8919 MB / 1.446 GB, free: 121.4 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02449/3.939, allocations: 5.147 MB / 1.451 GB, free: 120.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007117/3.946, allocations: 5.946 MB / 1.457 GB, free: 117.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02298/3.969, allocations: 1.806 MB / 1.459 GB, free: 117.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005818/3.975, allocations: 0.9913 MB / 1.46 GB, free: 117 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1664 * Number of states: 0 () * Number of discrete variables: 58 (relativeSensor.arrow.arrowLine.twoHeadedArrow,relativeSensor.arrow.headAtOrigin,relativeSensor.arrowColor[3],relativeSensor.arrowColor[2],relativeSensor.arrowColor[1],relative_b1.arrow.arrowLine.twoHeadedArrow,relative_b1.arrow.headAtOrigin,relative_b1.arrowColor[3],relative_b1.arrowColor[2],relative_b1.arrowColor[1],relative_b2.arrow.arrowLine.twoHeadedArrow,relative_b2.arrow.headAtOrigin,relative_b2.arrowColor[3],relative_b2.arrowColor[2],relative_b2.arrowColor[1],relative_a2.arrow.arrowLine.twoHeadedArrow,relative_a2.arrow.headAtOrigin,relative_a2.arrowColor[3],relative_a2.arrowColor[2],relative_a2.arrowColor[1],relative_a1.arrow.arrowLine.twoHeadedArrow,relative_a1.arrow.headAtOrigin,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 (2089): * Single equations (assignments): 2079 * 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.008813/3.984, allocations: 0.9758 MB / 1.461 GB, free: 116.2 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0426/4.027, allocations: 27.19 MB / 1.487 GB, free: 104.7 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004292/4.031, allocations: 0.7955 MB / 1.488 GB, free: 104.7 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04794/4.079, allocations: 29.34 MB / 1.517 GB, free: 89.08 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001863/4.079, allocations: 100.8 kB / 1.517 GB, free: 88.99 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.749e-05/4.079, allocations: 4 kB / 1.517 GB, free: 88.98 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001116/4.079, allocations: 25.97 kB / 1.517 GB, free: 88.98 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0997/4.179, allocations: 68.74 MB / 1.584 GB, free: 26.45 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.321e-05/4.179, allocations: 0 / 1.584 GB, free: 26.45 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01412/4.193, allocations: 2.078 MB / 1.586 GB, free: 25.16 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001154/4.195, allocations: 314.5 kB / 1.586 GB, free: 24.93 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002736/4.197, allocations: 14.33 kB / 1.586 GB, free: 24.92 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003989/4.201, allocations: 4.108 MB / 1.59 GB, free: 20.98 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.054e-06/4.201, allocations: 0 / 1.59 GB, free: 20.98 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4614/4.663, allocations: 51.42 MB / 1.641 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001835/4.665, allocations: 0.7303 MB / 1.641 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003729/4.668, allocations: 4.953 kB / 1.641 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01232/4.681, allocations: 1.549 MB / 1.643 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002725/4.684, allocations: 256.3 kB / 1.643 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001091/4.685, allocations: 122.5 kB / 1.643 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.01235/4.697, allocations: 5.019 MB / 1.648 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of sort global known variables: time 7.51e-07/4.697, allocations: 0 / 1.648 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01853/4.716, allocations: 3.79 MB / 1.652 GB, free: 135.3 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (435): * Single equations (assignments): 425 * 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.06059/4.776, allocations: 50.91 MB / 1.702 GB, free: 115.3 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0413/4.818, allocations: 33.58 MB / 1.734 GB, free: 101.5 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/4.818, allocations: 0.625 kB / 1.734 GB, free: 101.5 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.01552/4.833, allocations: 14.63 MB / 1.749 GB, free: 89.14 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007271/4.84, allocations: 1.192 MB / 1.75 GB, free: 88.23 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0992/4.94, allocations: 46 MB / 1.795 GB, free: 47.96 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.025/4.965, allocations: 10.99 MB / 1.806 GB, free: 39.96 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.02493/4.99, allocations: 7.27 MB / 1.813 GB, free: 35.04 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01797/5.008, allocations: 7.547 MB / 1.82 GB, free: 28.03 MB / 0.6042 GB Notification: Performance of SimCode: time 1.884e-06/5.008, allocations: 0 / 1.82 GB, free: 28.03 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.136/6.143, allocations: 261.2 MB / 2.075 GB, free: 64.39 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001523/6.144, allocations: 140.9 kB / 2.075 GB, free: 64.21 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/16.15, allocations: 0 / 2.075 GB, free: 64.21 MB / 0.6198 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat