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.00108/0.00108, allocations: 196.4 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.219/1.219, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008544/0.0008545, allocations: 89.95 kB / 292.1 MB, free: 5.918 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1692/0.1692, allocations: 45.13 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.905e-05/2.907e-05, allocations: 4 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09281/0.09285, allocations: 63.25 MB / 0.5115 GB, free: 6.684 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3368/0.4297, allocations: 114.1 MB / 0.6229 GB, free: 12.01 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001866/0.4299, allocations: 77.83 kB / 0.623 GB, free: 11.97 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7336/1.164, allocations: 243.6 MB / 0.8608 GB, free: 89.09 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.894e-06/1.164, allocations: 0 / 0.8608 GB, free: 89.09 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0009376/1.165, allocations: 365.2 kB / 0.8612 GB, free: 89 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.03933/1.204, allocations: 15.22 MB / 0.876 GB, free: 73.81 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/1.204, allocations: 11.97 kB / 0.8761 GB, free: 73.8 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01117/1.215, allocations: 2.958 MB / 0.8789 GB, free: 70.87 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02918/1.244, allocations: 8.169 MB / 0.8869 GB, free: 62.67 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02451/1.269, allocations: 11.22 MB / 0.8979 GB, free: 51.44 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001153/1.27, allocations: 1.449 MB / 0.8993 GB, free: 50.02 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007234/1.277, allocations: 1.913 MB / 0.9012 GB, free: 48.15 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08826/1.366, allocations: 40.94 MB / 0.9411 GB, free: 5.027 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001251/1.367, allocations: 146.6 kB / 0.9413 GB, free: 4.883 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006669/1.374, allocations: 0.8605 MB / 0.9421 GB, free: 4.059 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00291/1.377, allocations: 2.197 MB / 0.9443 GB, free: 1.867 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3995/1.776, allocations: 32.26 MB / 0.9758 GB, free: 86.68 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1474/1.923, allocations: 142.4 MB / 1.115 GB, free: 0 / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05305/1.977, allocations: 22.09 MB / 1.136 GB, free: 10.81 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007214/1.984, allocations: 6.54 MB / 1.143 GB, free: 7.395 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03974/2.024, allocations: 26.53 MB / 1.169 GB, free: 72 kB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.642e-05/2.024, allocations: 79.97 kB / 1.169 GB, free: 15.98 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=336): time 7.023e-06/2.024, allocations: 0 / 1.169 GB, free: 15.98 MB / 0.5886 GB Notification: Performance of matching and sorting (n=450): time 1.344/3.367, allocations: 279.1 MB / 1.441 GB, free: 129.7 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.66e-05/3.368, allocations: 279.4 kB / 1.442 GB, free: 129.4 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01699/3.384, allocations: 8.641 MB / 1.45 GB, free: 126.6 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.00196/3.387, allocations: 101.2 kB / 1.45 GB, free: 126.5 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.00636/3.393, allocations: 10.41 MB / 1.46 GB, free: 118.6 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.003129/3.396, allocations: 1.766 MB / 1.462 GB, free: 117.4 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002422/3.399, allocations: 321.1 kB / 1.462 GB, free: 117.1 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.001071/3.4, allocations: 0.9924 MB / 1.463 GB, free: 116.5 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01842/3.418, allocations: 15.44 MB / 1.478 GB, free: 109.9 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0249/3.443, allocations: 25.57 MB / 1.503 GB, free: 89.7 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02266/3.466, allocations: 19.42 MB / 1.522 GB, free: 82.17 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003021/3.466, allocations: 108.2 kB / 1.522 GB, free: 82.17 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2100) (initialization): time 0.05529/3.521, allocations: 40.7 MB / 1.562 GB, free: 51.87 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002076/3.522, allocations: 160 kB / 1.562 GB, free: 51.71 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004027/3.522, allocations: 360 kB / 1.563 GB, free: 51.36 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001284/3.523, allocations: 0.8505 MB / 1.563 GB, free: 50.59 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01869/3.542, allocations: 5.072 MB / 1.568 GB, free: 46.63 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004779/3.547, allocations: 5.624 MB / 1.574 GB, free: 41.26 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01757/3.564, allocations: 2.118 MB / 1.576 GB, free: 39.85 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004142/3.569, allocations: 0.968 MB / 1.577 GB, free: 38.89 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1644 * 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 (2044): * Single equations (assignments): 2034 * 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%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005287/3.574, allocations: 1.348 MB / 1.578 GB, free: 37.54 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001974/3.576, allocations: 0.829 MB / 1.579 GB, free: 36.7 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04052/3.616, allocations: 29.5 MB / 1.608 GB, free: 11.06 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001244/3.617, allocations: 90.75 kB / 1.608 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/3.617, allocations: 5.938 kB / 1.608 GB, free: 10.97 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.221e-05/3.617, allocations: 21.38 kB / 1.608 GB, free: 10.97 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4146/4.031, allocations: 71.03 MB / 1.677 GB, free: 97.35 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.803e-05/4.031, allocations: 0 / 1.677 GB, free: 97.35 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01173/4.043, allocations: 2.034 MB / 1.679 GB, free: 97.32 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001001/4.044, allocations: 319.2 kB / 1.68 GB, free: 97.25 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001769/4.046, allocations: 74.97 kB / 1.68 GB, free: 97.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003556/4.049, allocations: 4.3 MB / 1.684 GB, free: 93.99 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/4.049, allocations: 2.125 kB / 1.684 GB, free: 93.99 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05402/4.103, allocations: 49.66 MB / 1.732 GB, free: 72 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001913/4.105, allocations: 0.7936 MB / 1.733 GB, free: 71.88 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002221/4.108, allocations: 66.06 kB / 1.733 GB, free: 71.83 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009184/4.117, allocations: 1.624 MB / 1.735 GB, free: 71.77 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00147/4.118, allocations: 230.8 kB / 1.735 GB, free: 71.74 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008023/4.119, allocations: 116.1 kB / 1.735 GB, free: 71.71 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.007703/4.127, allocations: 5.941 MB / 1.741 GB, free: 69.63 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.2e-07/4.127, allocations: 3.844 kB / 1.741 GB, free: 69.63 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01333/4.14, allocations: 4.161 MB / 1.745 GB, free: 65.93 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (404): * Single equations (assignments): 394 * 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.0517/4.192, allocations: 50.58 MB / 1.794 GB, free: 20.61 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.06166/4.254, allocations: 35.82 MB / 1.829 GB, free: 10.73 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 9.868e-06/4.254, allocations: 4.625 kB / 1.829 GB, free: 10.72 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.3113/4.565, allocations: 14.61 MB / 1.844 GB, free: 142.1 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008142/4.573, allocations: 1.331 MB / 1.845 GB, free: 142 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09586/4.669, allocations: 46.46 MB / 1.89 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02211/4.691, allocations: 10.98 MB / 1.901 GB, free: 131.6 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.02076/4.712, allocations: 7.181 MB / 1.908 GB, free: 131.5 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01466/4.727, allocations: 7.493 MB / 1.915 GB, free: 125 MB / 0.6042 GB Notification: Performance of SimCode: time 1.613e-06/4.727, allocations: 0 / 1.915 GB, free: 125 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.668/5.395, allocations: 267.9 MB / 2.177 GB, free: 87.64 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001556/5.395, allocations: 179 kB / 2.177 GB, free: 87.41 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.729/13.12, allocations: 5.531 kB / 2.177 GB, free: 87.41 MB / 0.6042 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