Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.002379/0.002378, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.014/2.014, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001163/0.001163, allocations: 88.14 kB / 270.9 MB, free: 8.383 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.5272/0.5272, allocations: 43.55 MB / 362.7 MB, free: 52.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004948/0.0004949, allocations: 16 kB / 431.5 MB, free: 6.074 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1302, allocations: 58.85 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5731/0.7033, allocations: 112 MB / 0.5882 GB, free: 6.617 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004076/0.7038, allocations: 83.95 kB / 0.5883 GB, free: 6.535 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.25/1.954, allocations: 249.5 MB / 0.8319 GB, free: 16.78 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.136e-06/1.954, allocations: 0 / 0.8319 GB, free: 16.78 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0007598/1.955, allocations: 371.9 kB / 0.8323 GB, free: 16.41 MB / 490.7 MB 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.06566/2.021, allocations: 16.17 MB / 0.848 GB, free: 128 kB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/2.021, allocations: 8.031 kB / 0.8481 GB, free: 120 kB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01681/2.038, allocations: 3.074 MB / 0.8511 GB, free: 13.03 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06341/2.101, allocations: 8.282 MB / 0.8591 GB, free: 4.715 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4524/2.553, allocations: 12.47 MB / 0.8713 GB, free: 45.15 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001921/2.555, allocations: 1.495 MB / 0.8728 GB, free: 45.11 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009634/2.565, allocations: 1.969 MB / 0.8747 GB, free: 45.11 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1575/2.723, allocations: 42.67 MB / 0.9164 GB, free: 38.54 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001775/2.724, allocations: 148 kB / 0.9165 GB, free: 38.54 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009017/2.734, allocations: 0.8867 MB / 0.9174 GB, free: 38.54 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005386/2.739, allocations: 2.388 MB / 0.9197 GB, free: 38.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1214/2.86, allocations: 34.03 MB / 0.953 GB, free: 30.74 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7874/3.648, allocations: 146.8 MB / 1.096 GB, free: 31.55 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1137/3.762, allocations: 22.52 MB / 1.118 GB, free: 29.17 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07036/3.832, allocations: 27.34 MB / 1.145 GB, free: 24.88 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.177e-05/3.832, allocations: 72.2 kB / 1.145 GB, free: 24.84 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=372): time 9.358e-06/3.832, allocations: 0 / 1.145 GB, free: 24.84 MB / 0.5573 GB Notification: Performance of matching and sorting (n=486): time 2.455/6.287, allocations: 299.7 MB / 1.438 GB, free: 179.2 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001572/6.287, allocations: 287 kB / 1.438 GB, free: 178.9 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02474/6.312, allocations: 9.054 MB / 1.447 GB, free: 175.6 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.002641/6.315, allocations: 101.4 kB / 1.447 GB, free: 175.5 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.008888/6.323, allocations: 10.59 MB / 1.457 GB, free: 167.3 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.004691/6.328, allocations: 1.899 MB / 1.459 GB, free: 166 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004933/6.333, allocations: 341.3 kB / 1.459 GB, free: 165.7 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.002554/6.336, allocations: 1.033 MB / 1.46 GB, free: 165.1 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03558/6.371, allocations: 15.92 MB / 1.476 GB, free: 158.4 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04246/6.414, allocations: 26.51 MB / 1.502 GB, free: 132.6 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04379/6.458, allocations: 19.95 MB / 1.521 GB, free: 114.3 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004273/6.458, allocations: 108 kB / 1.521 GB, free: 114.2 MB / 0.6511 GB Notification: Performance of matching and sorting (n=2209) (initialization): time 0.1043/6.563, allocations: 41.86 MB / 1.562 GB, free: 73.17 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007066/6.563, allocations: 168 kB / 1.563 GB, free: 73 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008816/6.564, allocations: 379.8 kB / 1.563 GB, free: 72.64 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002737/6.567, allocations: 0.8724 MB / 1.564 GB, free: 71.76 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04075/6.608, allocations: 5.291 MB / 1.569 GB, free: 66.46 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009232/6.617, allocations: 5.755 MB / 1.575 GB, free: 60.45 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03097/6.648, allocations: 2.157 MB / 1.577 GB, free: 58.29 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005389/6.654, allocations: 1.02 MB / 1.578 GB, free: 57.27 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1717 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2153): * Single equations (assignments): 2143 * 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.4959/7.15, allocations: 7.84 MB / 1.585 GB, free: 170 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004358/7.154, allocations: 0.8729 MB / 1.586 GB, free: 170 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07756/7.232, allocations: 30.26 MB / 1.616 GB, free: 169.7 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002056/7.232, allocations: 95.72 kB / 1.616 GB, free: 169.7 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.17e-05/7.232, allocations: 2.688 kB / 1.616 GB, free: 169.7 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001272/7.232, allocations: 28.09 kB / 1.616 GB, free: 169.7 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1702/7.402, allocations: 72.45 MB / 1.687 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-05/7.402, allocations: 0 / 1.687 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02399/7.426, allocations: 2.115 MB / 1.689 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001699/7.428, allocations: 318.2 kB / 1.689 GB, free: 133 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002426/7.43, allocations: 83.45 kB / 1.689 GB, free: 133 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006663/7.437, allocations: 4.39 MB / 1.693 GB, free: 129.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/7.437, allocations: 0.9688 kB / 1.693 GB, free: 129.7 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1106/7.548, allocations: 50.8 MB / 1.743 GB, free: 107 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01398/7.562, allocations: 3.957 MB / 1.747 GB, free: 105.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005083/7.567, allocations: 74.34 kB / 1.747 GB, free: 105.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02095/7.588, allocations: 1.634 MB / 1.748 GB, free: 104.7 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003903/7.592, allocations: 258.6 kB / 1.749 GB, free: 104.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002192/7.594, allocations: 130.9 kB / 1.749 GB, free: 104.4 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.01821/7.612, allocations: 6.263 MB / 1.755 GB, free: 99.24 MB / 0.6511 GB Notification: Performance of sort global known variables: time 9.01e-07/7.612, allocations: 0 / 1.755 GB, free: 99.24 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.02614/7.639, allocations: 4.28 MB / 1.759 GB, free: 94.98 MB / 0.6511 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 (444): * Single equations (assignments): 434 * 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.1396/7.778, allocations: 51.7 MB / 1.81 GB, free: 48.79 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.5271/8.305, allocations: 37.58 MB / 1.846 GB, free: 182.8 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.828e-05/8.306, allocations: 0.625 kB / 1.846 GB, free: 182.8 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.03315/8.339, allocations: 14.98 MB / 1.861 GB, free: 182.5 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01247/8.351, allocations: 1.331 MB / 1.862 GB, free: 182.4 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9279/9.279, allocations: 435.4 MB / 2.287 GB, free: 5.176 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03617/9.315, allocations: 11.37 MB / 2.299 GB, free: 1.566 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.5026/9.818, allocations: 8.579 MB / 2.307 GB, free: 176.8 MB / 0.6511 GB Notification: Performance of SimCode: time 1.653e-06/9.818, allocations: 0 / 2.307 GB, free: 176.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.867/19.68, allocations: 486.1 MB / 2.782 GB, free: 135.4 MB / 0.6511 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat