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.001262/0.001262, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.2 MB / 245 MB, free: 5.941 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009497/0.0009495, allocations: 109.9 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3574/0.3574, allocations: 45.24 MB / 394.7 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002843/0.0002844, allocations: 8.219 kB / 468.5 MB, free: 7.633 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3504, allocations: 63.26 MB / 0.5193 GB, free: 37.49 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1492/0.4997, allocations: 114.2 MB / 0.6308 GB, free: 5.172 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.5, allocations: 87.92 kB / 0.6309 GB, free: 5.09 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8296/1.33, allocations: 243.2 MB / 0.8684 GB, free: 4.457 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.935e-06/1.33, allocations: 0 / 0.8684 GB, free: 4.457 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.001426/1.331, allocations: 367.9 kB / 0.8687 GB, free: 4.098 MB / 0.5105 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.06131/1.392, allocations: 15.75 MB / 0.8841 GB, free: 4.23 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 8.127e-05/1.393, allocations: 8.031 kB / 0.8841 GB, free: 4.223 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01609/1.409, allocations: 2.955 MB / 0.887 GB, free: 1.258 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7343/2.143, allocations: 8.163 MB / 0.895 GB, free: 41.92 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0348/2.178, allocations: 11.24 MB / 0.906 GB, free: 41.53 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001653/2.179, allocations: 1.454 MB / 0.9074 GB, free: 41.49 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01007/2.19, allocations: 1.918 MB / 0.9093 GB, free: 41.48 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1211/2.311, allocations: 41.27 MB / 0.9496 GB, free: 35.04 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001512/2.312, allocations: 148.2 kB / 0.9497 GB, free: 35.03 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008728/2.321, allocations: 0.8569 MB / 0.9505 GB, free: 35.03 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003023/2.324, allocations: 2.198 MB / 0.9527 GB, free: 34.99 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07917/2.403, allocations: 32.7 MB / 0.9846 GB, free: 29.57 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.078/3.482, allocations: 142.4 MB / 1.124 GB, free: 29.44 MB / 0.5888 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05525/3.537, allocations: 22.14 MB / 1.145 GB, free: 27.05 MB / 0.5888 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04853/3.586, allocations: 26.53 MB / 1.171 GB, free: 22.77 MB / 0.5888 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.026e-05/3.586, allocations: 75.52 kB / 1.171 GB, free: 22.73 MB / 0.5888 GB Notification: Performance of pre-optimization done (n=336): time 7.674e-06/3.586, allocations: 3.281 kB / 1.171 GB, free: 22.73 MB / 0.5888 GB Notification: Performance of matching and sorting (n=450): time 1.252/4.838, allocations: 297.7 MB / 1.462 GB, free: 177.1 MB / 0.6825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/4.838, allocations: 273.5 kB / 1.462 GB, free: 176.8 MB / 0.6825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01879/4.857, allocations: 8.714 MB / 1.471 GB, free: 173.7 MB / 0.6825 GB Notification: Performance of collectPreVariables (initialization): time 0.002021/4.859, allocations: 99.91 kB / 1.471 GB, free: 173.6 MB / 0.6825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0068/4.866, allocations: 10.42 MB / 1.481 GB, free: 165.8 MB / 0.6825 GB Notification: Performance of collectInitialBindings (initialization): time 0.003486/4.869, allocations: 1.758 MB / 1.483 GB, free: 164.5 MB / 0.6825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002765/4.872, allocations: 328.1 kB / 1.483 GB, free: 164.3 MB / 0.6825 GB Notification: Performance of setup shared object (initialization): time 0.001268/4.873, allocations: 0.9981 MB / 1.484 GB, free: 163.7 MB / 0.6825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02027/4.894, allocations: 15.64 MB / 1.499 GB, free: 157.1 MB / 0.6825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0257/4.919, allocations: 25.77 MB / 1.524 GB, free: 136.8 MB / 0.6825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02533/4.945, allocations: 19.51 MB / 1.544 GB, free: 127 MB / 0.6825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003659/4.945, allocations: 105.6 kB / 1.544 GB, free: 126.9 MB / 0.6825 GB Notification: Performance of matching and sorting (n=2100) (initialization): time 0.06197/5.007, allocations: 41.1 MB / 1.584 GB, free: 91 MB / 0.6825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002869/5.007, allocations: 160 kB / 1.584 GB, free: 90.84 MB / 0.6825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005515/5.008, allocations: 366.9 kB / 1.584 GB, free: 90.48 MB / 0.6825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001517/5.01, allocations: 0.846 MB / 1.585 GB, free: 89.73 MB / 0.6825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01995/5.029, allocations: 5.076 MB / 1.59 GB, free: 85.76 MB / 0.6825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005592/5.035, allocations: 5.721 MB / 1.596 GB, free: 80.31 MB / 0.6825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02032/5.055, allocations: 2.114 MB / 1.598 GB, free: 78.91 MB / 0.6825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004547/5.06, allocations: 0.9716 MB / 1.599 GB, free: 77.95 MB / 0.6825 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 () * Number of clocked 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.01965/5.08, allocations: 7.579 MB / 1.606 GB, free: 71.24 MB / 0.6825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002748/5.082, allocations: 0.8329 MB / 1.607 GB, free: 70.4 MB / 0.6825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4181/5.501, allocations: 29.83 MB / 1.636 GB, free: 168.5 MB / 0.6825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001549/5.501, allocations: 86.89 kB / 1.636 GB, free: 168.5 MB / 0.6825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.981e-05/5.501, allocations: 6.828 kB / 1.636 GB, free: 168.5 MB / 0.6825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001217/5.501, allocations: 21.78 kB / 1.636 GB, free: 168.5 MB / 0.6825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1351/5.636, allocations: 71.28 MB / 1.706 GB, free: 146.2 MB / 0.6825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.351e-05/5.636, allocations: 6.844 kB / 1.706 GB, free: 146.2 MB / 0.6825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01402/5.65, allocations: 2.038 MB / 1.708 GB, free: 146.2 MB / 0.6825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001686/5.652, allocations: 316.6 kB / 1.708 GB, free: 146.1 MB / 0.6825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002532/5.654, allocations: 76.53 kB / 1.708 GB, free: 146 MB / 0.6825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006499/5.661, allocations: 4.388 MB / 1.712 GB, free: 142.8 MB / 0.6825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/5.661, allocations: 4.109 kB / 1.712 GB, free: 142.8 MB / 0.6825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1044/5.765, allocations: 50.03 MB / 1.761 GB, free: 120.3 MB / 0.6825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004838/5.77, allocations: 0.8001 MB / 1.762 GB, free: 120.2 MB / 0.6825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006883/5.777, allocations: 78.66 kB / 1.762 GB, free: 120.1 MB / 0.6825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01889/5.796, allocations: 1.615 MB / 1.764 GB, free: 120.1 MB / 0.6825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003683/5.8, allocations: 235.5 kB / 1.764 GB, free: 120.1 MB / 0.6825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002578/5.802, allocations: 116.5 kB / 1.764 GB, free: 120 MB / 0.6825 GB Notification: Performance of sorting global known variables: time 0.01757/5.82, allocations: 6.02 MB / 1.77 GB, free: 118 MB / 0.6825 GB Notification: Performance of sort global known variables: time 9.82e-07/5.82, allocations: 0 / 1.77 GB, free: 118 MB / 0.6825 GB Notification: Performance of remove unused functions: time 0.02421/5.844, allocations: 4.16 MB / 1.774 GB, free: 117.7 MB / 0.6825 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 () * Number of clocked 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.05828/5.903, allocations: 50.95 MB / 1.824 GB, free: 82.84 MB / 0.6825 GB Notification: Performance of simCode: created initialization part: time 0.0436/5.946, allocations: 34.46 MB / 1.857 GB, free: 53.07 MB / 0.6825 GB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/5.946, allocations: 0.625 kB / 1.857 GB, free: 53.07 MB / 0.6825 GB Notification: Performance of simCode: created simulation system equations: time 0.357/6.303, allocations: 16.98 MB / 1.874 GB, free: 176.3 MB / 0.6825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009546/6.313, allocations: 1.334 MB / 1.875 GB, free: 176.2 MB / 0.6825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7133/7.026, allocations: 415.7 MB / 2.281 GB, free: 74.79 MB / 0.7138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03593/7.062, allocations: 10.98 MB / 2.292 GB, free: 71.28 MB / 0.7138 GB Notification: Performance of simCode: alias equations: time 0.02831/7.091, allocations: 7.17 MB / 2.299 GB, free: 71.19 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01937/7.11, allocations: 7.497 MB / 2.306 GB, free: 64.77 MB / 0.7138 GB Notification: Performance of SimCode: time 2.024e-06/7.11, allocations: 0 / 2.306 GB, free: 64.77 MB / 0.7138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7547/7.865, allocations: 265.1 MB / 2.565 GB, free: 94.36 MB / 0.7138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001472/7.865, allocations: 209.9 kB / 2.565 GB, free: 94.11 MB / 0.7138 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/18.33, allocations: 4.062 kB / 2.565 GB, free: 94.11 MB / 0.7138 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