Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001559/0.00156, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.653/1.653, allocations: 221.3 MB / 236 MB, free: 2.984 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 87.86 kB / 287 MB, free: 256 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2186/0.2186, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.426e-05/3.428e-05, allocations: 4.156 kB / 451.9 MB, free: 9.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1524, allocations: 61.92 MB / 0.5018 GB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5018/0.6543, allocations: 113.2 MB / 0.6124 GB, free: 7.988 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003139/0.6546, allocations: 75.97 kB / 0.6124 GB, free: 7.914 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9358/1.59, allocations: 241.3 MB / 0.8481 GB, free: 58.45 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.917e-06/1.59, allocations: 0 / 0.8481 GB, free: 58.45 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.001492/1.592, allocations: 375.9 kB / 0.8484 GB, free: 58.08 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.06249/1.655, allocations: 15.19 MB / 0.8633 GB, free: 42.79 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/1.655, allocations: 8.031 kB / 0.8633 GB, free: 42.78 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01593/1.671, allocations: 2.955 MB / 0.8662 GB, free: 39.81 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03531/1.706, allocations: 8.174 MB / 0.8741 GB, free: 31.61 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03546/1.741, allocations: 11.85 MB / 0.8857 GB, free: 19.66 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001569/1.743, allocations: 1.445 MB / 0.8871 GB, free: 18.22 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01102/1.754, allocations: 1.918 MB / 0.889 GB, free: 16.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6294/2.384, allocations: 40.93 MB / 0.929 GB, free: 63.25 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.002715/2.386, allocations: 151.8 kB / 0.9291 GB, free: 63.25 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01032/2.397, allocations: 0.8567 MB / 0.9299 GB, free: 63.25 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005283/2.402, allocations: 2.199 MB / 0.9321 GB, free: 63.21 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08507/2.487, allocations: 32.26 MB / 0.9636 GB, free: 63.05 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1901/2.677, allocations: 142.4 MB / 1.103 GB, free: 3.203 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07391/2.751, allocations: 23.13 MB / 1.125 GB, free: 12.8 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009541/2.761, allocations: 6.532 MB / 1.132 GB, free: 6.434 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4813/3.242, allocations: 26.52 MB / 1.158 GB, free: 126.9 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.237e-05/3.242, allocations: 73.47 kB / 1.158 GB, free: 126.8 MB / 0.573 GB Notification: Performance of pre-optimization done (n=336): time 7.484e-06/3.242, allocations: 0 / 1.158 GB, free: 126.8 MB / 0.573 GB Notification: Performance of matching and sorting (n=450): time 1.22/4.463, allocations: 279.1 MB / 1.43 GB, free: 105.3 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/4.463, allocations: 278.2 kB / 1.43 GB, free: 105 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01892/4.482, allocations: 8.638 MB / 1.439 GB, free: 101.8 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.002082/4.484, allocations: 96.53 kB / 1.439 GB, free: 101.7 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.007449/4.491, allocations: 10.41 MB / 1.449 GB, free: 93.82 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.004079/4.495, allocations: 1.762 MB / 1.451 GB, free: 92.57 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003666/4.499, allocations: 324 kB / 1.451 GB, free: 92.32 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.002318/4.501, allocations: 1.002 MB / 1.452 GB, free: 91.71 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02117/4.523, allocations: 15.44 MB / 1.467 GB, free: 85.12 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02873/4.551, allocations: 25.57 MB / 1.492 GB, free: 62.61 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02723/4.579, allocations: 19.42 MB / 1.511 GB, free: 46.32 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005797/4.579, allocations: 105.4 kB / 1.511 GB, free: 46.22 MB / 0.573 GB Notification: Performance of matching and sorting (n=2100) (initialization): time 0.07042/4.65, allocations: 40.7 MB / 1.551 GB, free: 10.36 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000638/4.65, allocations: 161.1 kB / 1.551 GB, free: 10.21 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007848/4.651, allocations: 360 kB / 1.551 GB, free: 9.855 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002077/4.653, allocations: 0.8443 MB / 1.552 GB, free: 9.09 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02143/4.675, allocations: 5.074 MB / 1.557 GB, free: 5.125 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4731/5.148, allocations: 5.613 MB / 1.563 GB, free: 96.76 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03017/5.178, allocations: 2.113 MB / 1.565 GB, free: 96.76 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005884/5.184, allocations: 0.9764 MB / 1.566 GB, free: 96.76 MB / 0.573 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.008616/5.193, allocations: 1.347 MB / 1.567 GB, free: 96.44 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00404/5.197, allocations: 0.8358 MB / 1.568 GB, free: 96.44 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05758/5.254, allocations: 29.5 MB / 1.597 GB, free: 96.19 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001855/5.255, allocations: 88.09 kB / 1.597 GB, free: 96.19 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.634e-05/5.255, allocations: 3.969 kB / 1.597 GB, free: 96.19 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001391/5.255, allocations: 24.17 kB / 1.597 GB, free: 96.19 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1086/5.363, allocations: 71.03 MB / 1.666 GB, free: 58.94 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.493e-05/5.363, allocations: 2 kB / 1.666 GB, free: 58.94 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01229/5.376, allocations: 2.039 MB / 1.668 GB, free: 58.91 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001267/5.377, allocations: 313.4 kB / 1.668 GB, free: 58.84 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002186/5.379, allocations: 71.34 kB / 1.669 GB, free: 58.79 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004209/5.384, allocations: 4.298 MB / 1.673 GB, free: 55.58 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/5.384, allocations: 2.344 kB / 1.673 GB, free: 55.58 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06354/5.447, allocations: 49.66 MB / 1.721 GB, free: 25.4 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003908/5.451, allocations: 0.7967 MB / 1.722 GB, free: 25.06 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005112/5.456, allocations: 75 kB / 1.722 GB, free: 24.99 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01227/5.469, allocations: 1.615 MB / 1.724 GB, free: 24.13 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00256/5.471, allocations: 237.2 kB / 1.724 GB, free: 23.99 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001971/5.473, allocations: 117.1 kB / 1.724 GB, free: 23.88 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01298/5.486, allocations: 5.941 MB / 1.73 GB, free: 18.68 MB / 0.573 GB Notification: Performance of sort global known variables: time 8.42e-07/5.486, allocations: 0 / 1.73 GB, free: 18.68 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02328/5.509, allocations: 4.143 MB / 1.734 GB, free: 14.55 MB / 0.573 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.5654/6.075, allocations: 52.62 MB / 1.785 GB, free: 131.4 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.05417/6.129, allocations: 34.12 MB / 1.819 GB, free: 131 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.472e-05/6.129, allocations: 7.75 kB / 1.819 GB, free: 131 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.01941/6.149, allocations: 14.61 MB / 1.833 GB, free: 124.1 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00966/6.158, allocations: 1.318 MB / 1.834 GB, free: 123.7 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1177/6.276, allocations: 46.46 MB / 1.879 GB, free: 106 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02158/6.298, allocations: 10.98 MB / 1.89 GB, free: 102.5 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.02275/6.321, allocations: 7.172 MB / 1.897 GB, free: 101.3 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01742/6.338, allocations: 7.493 MB / 1.905 GB, free: 94.3 MB / 0.6042 GB Notification: Performance of SimCode: time 1.493e-06/6.338, allocations: 0 / 1.905 GB, free: 94.3 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8034/7.141, allocations: 267.8 MB / 2.166 GB, free: 41.08 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/7.142, allocations: 186.6 kB / 2.166 GB, free: 40.85 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/17.91, allocations: 0 / 2.166 GB, free: 40.85 MB / 0.6042 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat