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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000989/0.000989, allocations: 93.7 kB / 16.98 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 186.2 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 223.2 MB / 241.8 MB, free: 14.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.231/0.231, allocations: 44.22 MB / 337.1 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003926/0.0003931, allocations: 9.062 kB / 409.6 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1312, allocations: 61.91 MB / 471.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.3136/0.4449, allocations: 78.18 MB / 0.5368 GB, free: 8.688 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04452/0.4895, allocations: 19.3 MB / 0.5557 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02684/0.5163, allocations: 426.2 kB / 0.5561 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02084/0.5373, allocations: 4.198 MB / 0.5602 GB, free: 7.629 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04079/0.5781, allocations: 10.46 MB / 0.5704 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01014/0.5883, allocations: 1.833 MB / 0.5722 GB, free: 12.5 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.08041/0.6687, allocations: 50.85 MB / 0.6219 GB, free: 9.594 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06694/0.7357, allocations: 39.35 MB / 0.6603 GB, free: 2.102 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006308/0.7421, allocations: 2.909 MB / 0.6631 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006994/0.7491, allocations: 3.597 MB / 0.6666 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.00358/0.7527, allocations: 0.5156 MB / 0.6671 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00573/0.7585, allocations: 1.67 MB / 0.6688 GB, free: 9.387 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.007828/0.7663, allocations: 5.838 MB / 0.6745 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.005448/0.7718, allocations: 3.184 MB / 0.6776 GB, free: 344 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.03077/0.8026, allocations: 27.32 MB / 0.7043 GB, free: 4.953 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.8027, allocations: 4 kB / 0.7043 GB, free: 4.949 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.745e-06/0.8027, allocations: 0 / 0.7043 GB, free: 4.949 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.001172/0.8038, allocations: 0 / 0.7043 GB, free: 4.949 MB / 0.5294 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.5621/1.366, allocations: 15.58 MB / 0.7195 GB, free: 176.2 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/1.366, allocations: 9.688 kB / 0.7195 GB, free: 176.2 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01428/1.38, allocations: 2.867 MB / 0.7223 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1693/1.55, allocations: 15.99 MB / 0.7379 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02587/1.576, allocations: 9.212 MB / 0.7469 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001513/1.577, allocations: 1.292 MB / 0.7482 GB, free: 154.1 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007557/1.585, allocations: 1.692 MB / 0.7498 GB, free: 152.5 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09223/1.677, allocations: 39.6 MB / 0.7885 GB, free: 111.8 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009306/1.678, allocations: 91.14 kB / 0.7886 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006796/1.685, allocations: 0.7415 MB / 0.7893 GB, free: 111 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00532/1.69, allocations: 3.855 MB / 0.7931 GB, free: 107.2 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07103/1.761, allocations: 32.32 MB / 0.8246 GB, free: 74.85 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7465/2.508, allocations: 114.8 MB / 0.9367 GB, free: 160 MB / 0.5608 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1048/2.613, allocations: 21.88 MB / 0.9581 GB, free: 157.6 MB / 0.5608 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05622/2.669, allocations: 26.66 MB / 0.9841 GB, free: 147.6 MB / 0.5608 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.127e-05/2.669, allocations: 89.17 kB / 0.9842 GB, free: 147.5 MB / 0.5608 GB Notification: Performance of pre-optimization done (n=336): time 9.268e-06/2.669, allocations: 0 / 0.9842 GB, free: 147.5 MB / 0.5608 GB Notification: Performance of matching and sorting (n=450): time 1.276/3.945, allocations: 325.3 MB / 1.302 GB, free: 67.7 MB / 0.5764 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/3.945, allocations: 282 kB / 1.302 GB, free: 67.37 MB / 0.5764 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01823/3.963, allocations: 10.06 MB / 1.312 GB, free: 57.37 MB / 0.5764 GB Notification: Performance of collectPreVariables (initialization): time 0.002844/3.966, allocations: 93.7 kB / 1.312 GB, free: 57.27 MB / 0.5764 GB Notification: Performance of collectInitialEqns (initialization): time 0.006405/3.972, allocations: 10.41 MB / 1.322 GB, free: 46.85 MB / 0.5764 GB Notification: Performance of collectInitialBindings (initialization): time 0.003355/3.976, allocations: 1.758 MB / 1.324 GB, free: 45.11 MB / 0.5764 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00243/3.978, allocations: 324.9 kB / 1.324 GB, free: 44.79 MB / 0.5764 GB Notification: Performance of setup shared object (initialization): time 0.0008216/3.979, allocations: 0.9919 MB / 1.325 GB, free: 43.79 MB / 0.5764 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02699/4.006, allocations: 15.69 MB / 1.341 GB, free: 28.09 MB / 0.5764 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.328/4.334, allocations: 25.8 MB / 1.366 GB, free: 176.3 MB / 0.5764 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0356/4.37, allocations: 19.54 MB / 1.385 GB, free: 167.3 MB / 0.5764 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0007819/4.371, allocations: 103.5 kB / 1.385 GB, free: 167.3 MB / 0.5764 GB Notification: Performance of matching and sorting (n=2096) (initialization): time 0.06879/4.44, allocations: 41.27 MB / 1.425 GB, free: 142.1 MB / 0.5764 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008833/4.44, allocations: 160 kB / 1.425 GB, free: 141.9 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001039/4.442, allocations: 360 kB / 1.426 GB, free: 141.6 MB / 0.5764 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002383/4.444, allocations: 0.9839 MB / 1.427 GB, free: 140.7 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02078/4.465, allocations: 5.01 MB / 1.432 GB, free: 136.8 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005985/4.471, allocations: 6.475 MB / 1.438 GB, free: 130.7 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02024/4.491, allocations: 2.07 MB / 1.44 GB, free: 129.4 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005557/4.497, allocations: 0.9749 MB / 1.441 GB, free: 128.4 MB / 0.5764 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1640 * Number of states: 0 () * Number of discrete variables: 58 (relativeSensor.arrow.arrowLine.twoHeadedArrow,relativeSensor.arrow.headAtOrigin,relative_b1.arrow.arrowLine.twoHeadedArrow,relative_b1.arrow.headAtOrigin,relative_b2.arrow.arrowLine.twoHeadedArrow,relative_b2.arrow.headAtOrigin,relative_a2.arrow.arrowLine.twoHeadedArrow,relative_a2.arrow.headAtOrigin,relative_a1.arrow.arrowLine.twoHeadedArrow,relative_a1.arrow.headAtOrigin,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 (2040): * Single equations (assignments): 2030 * 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.01658/4.513, allocations: 7.578 MB / 1.448 GB, free: 121.3 MB / 0.5764 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002138/4.515, allocations: 0.834 MB / 1.449 GB, free: 120.9 MB / 0.5764 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03684/4.552, allocations: 29.94 MB / 1.478 GB, free: 90.91 MB / 0.5764 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001176/4.552, allocations: 91.97 kB / 1.478 GB, free: 90.82 MB / 0.5764 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/4.552, allocations: 4 kB / 1.478 GB, free: 90.81 MB / 0.5764 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.466e-05/4.552, allocations: 20.72 kB / 1.478 GB, free: 90.79 MB / 0.5764 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.095/4.647, allocations: 71.65 MB / 1.548 GB, free: 16.24 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.912e-05/4.648, allocations: 4 kB / 1.548 GB, free: 16.24 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01204/4.66, allocations: 1.969 MB / 1.55 GB, free: 14.27 MB / 0.5764 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001373/4.661, allocations: 460.4 kB / 1.551 GB, free: 13.81 MB / 0.5764 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002051/4.663, allocations: 79.03 kB / 1.551 GB, free: 13.74 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005292/4.668, allocations: 5.144 MB / 1.556 GB, free: 8.367 MB / 0.5764 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/4.668, allocations: 4 kB / 1.556 GB, free: 8.363 MB / 0.5764 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3951/5.064, allocations: 50.3 MB / 1.605 GB, free: 154.9 MB / 0.5764 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00344/5.067, allocations: 0.8125 MB / 1.606 GB, free: 154.8 MB / 0.5764 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005109/5.072, allocations: 67.88 kB / 1.606 GB, free: 154.7 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01311/5.085, allocations: 1.579 MB / 1.607 GB, free: 154.7 MB / 0.5764 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002906/5.088, allocations: 230.5 kB / 1.608 GB, free: 154.7 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001658/5.09, allocations: 118.9 kB / 1.608 GB, free: 154.6 MB / 0.5764 GB Notification: Performance of sorting global known variables: time 0.01309/5.103, allocations: 6.252 MB / 1.614 GB, free: 152.5 MB / 0.5764 GB Notification: Performance of sort global known variables: time 6.71e-07/5.103, allocations: 0 / 1.614 GB, free: 152.5 MB / 0.5764 GB Notification: Performance of remove unused functions: time 0.02053/5.124, allocations: 4.177 MB / 1.618 GB, free: 150.4 MB / 0.5764 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.05931/5.183, allocations: 51.23 MB / 1.668 GB, free: 103.1 MB / 0.5764 GB Notification: Performance of simCode: created initialization part: time 0.04696/5.23, allocations: 34.55 MB / 1.702 GB, free: 68.66 MB / 0.5764 GB Notification: Performance of simCode: created event and clocks part: time 1.293e-05/5.23, allocations: 0.625 kB / 1.702 GB, free: 68.66 MB / 0.5764 GB Notification: Performance of simCode: created simulation system equations: time 0.01765/5.248, allocations: 14.83 MB / 1.716 GB, free: 53.81 MB / 0.5764 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01074/5.258, allocations: 1.33 MB / 1.717 GB, free: 52.51 MB / 0.5764 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.904/6.163, allocations: 416.2 MB / 2.124 GB, free: 158 MB / 0.6702 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02269/6.185, allocations: 10.94 MB / 2.135 GB, free: 147.1 MB / 0.6702 GB Notification: Performance of simCode: alias equations: time 0.02528/6.211, allocations: 7.139 MB / 2.142 GB, free: 140.2 MB / 0.6702 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01638/6.227, allocations: 7.438 MB / 2.149 GB, free: 132.8 MB / 0.6702 GB Notification: Performance of SimCode: time 1.122e-06/6.227, allocations: 0 / 2.149 GB, free: 132.8 MB / 0.6702 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6188/6.846, allocations: 265.2 MB / 2.408 GB, free: 100.5 MB / 0.6702 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001675/6.846, allocations: 220.4 kB / 2.408 GB, free: 100.2 MB / 0.6702 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.211/15.06, allocations: 3.516 kB / 2.408 GB, free: 100.2 MB / 0.6702 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