Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_AbsoluteSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_AbsoluteSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001856/0.001856, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002285/0.002285, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.239/0.239, allocations: 46.11 MB / 344.2 MB, free: 11.58 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002276/0.002276, allocations: 78.19 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1274, allocations: 62.45 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor): time 0.02749/0.1549, allocations: 22.81 MB / 0.4912 GB, free: 14.24 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01935/0.1743, allocations: 7.967 MB / 0.499 GB, free: 6.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006796/0.1812, allocations: 191.6 kB / 0.4992 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2646/0.4458, allocations: 22.13 MB / 0.5208 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01165/0.4575, allocations: 3.484 MB / 0.5242 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009535/0.4671, allocations: 4.036 MB / 0.5281 GB, free: 9.805 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01406/0.4812, allocations: 9.643 MB / 0.5376 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04734/0.5286, allocations: 32.19 MB / 0.569 GB, free: 9.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01559/0.5442, allocations: 6.921 MB / 0.5758 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01524/0.5595, allocations: 8.683 MB / 0.5842 GB, free: 10.37 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007932/0.5674, allocations: 2.215 MB / 0.5864 GB, free: 8.152 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01067/0.5782, allocations: 3.454 MB / 0.5898 GB, free: 4.762 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01376/0.592, allocations: 8.294 MB / 0.5979 GB, free: 12.46 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02579/0.6178, allocations: 9.655 MB / 0.6073 GB, free: 2.781 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04636/0.6642, allocations: 32.26 MB / 0.6388 GB, free: 2.992 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.6642, allocations: 0 / 0.6388 GB, free: 2.992 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.887e-06/0.6643, allocations: 0 / 0.6388 GB, free: 2.992 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0013/0.6656, allocations: 3.938 kB / 0.6388 GB, free: 2.988 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5549 * Number of variables: 5549 Notification: Performance of Generate backend data structure: time 0.06779/0.7334, allocations: 16.87 MB / 0.6553 GB, free: 2.16 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.592e-05/0.7335, allocations: 8.031 kB / 0.6553 GB, free: 2.152 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01657/0.7501, allocations: 2.78 MB / 0.658 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1104/0.8605, allocations: 8.279 MB / 0.6661 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02519/0.8857, allocations: 8.055 MB / 0.674 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001958/0.8878, allocations: 1.242 MB / 0.6752 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008872/0.8967, allocations: 1.638 MB / 0.6768 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5349/1.432, allocations: 35.93 MB / 0.7119 GB, free: 144.7 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00122/1.433, allocations: 124.1 kB / 0.712 GB, free: 144.6 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005743/1.439, allocations: 0.7264 MB / 0.7127 GB, free: 144.1 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005973/1.445, allocations: 3.689 MB / 0.7163 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06016/1.505, allocations: 26.74 MB / 0.7424 GB, free: 132.3 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1422/1.647, allocations: 121.9 MB / 0.8614 GB, free: 16.32 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02233/1.67, allocations: 8.298 MB / 0.8696 GB, free: 7.867 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004456/1.674, allocations: 4.078 MB / 0.8735 GB, free: 3.781 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01308/1.687, allocations: 14.67 MB / 0.8879 GB, free: 2.773 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000131/1.687, allocations: 72.5 kB / 0.8879 GB, free: 2.695 MB / 0.545 GB Notification: Performance of pre-optimization done (n=277): time 1.162e-05/1.687, allocations: 0 / 0.8879 GB, free: 2.695 MB / 0.545 GB Notification: Performance of matching and sorting (n=338): time 0.6438/2.331, allocations: 55.57 MB / 0.9422 GB, free: 177.7 MB / 0.5764 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/2.331, allocations: 216.8 kB / 0.9424 GB, free: 177.5 MB / 0.5764 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02369/2.355, allocations: 10.57 MB / 0.9527 GB, free: 173.5 MB / 0.5764 GB Notification: Performance of collectPreVariables (initialization): time 0.0009233/2.356, allocations: 77.45 kB / 0.9528 GB, free: 173.4 MB / 0.5764 GB Notification: Performance of collectInitialEqns (initialization): time 0.007824/2.364, allocations: 10.76 MB / 0.9633 GB, free: 165.2 MB / 0.5764 GB Notification: Performance of collectInitialBindings (initialization): time 0.002304/2.366, allocations: 1.448 MB / 0.9647 GB, free: 164.2 MB / 0.5764 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00875/2.375, allocations: 3.787 MB / 0.9684 GB, free: 162.3 MB / 0.5764 GB Notification: Performance of setup shared object (initialization): time 4.386e-05/2.375, allocations: 310.2 kB / 0.9687 GB, free: 162 MB / 0.5764 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008511/2.383, allocations: 6.482 MB / 0.975 GB, free: 159.7 MB / 0.5764 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01376/2.397, allocations: 18.67 MB / 0.9933 GB, free: 140.5 MB / 0.5764 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02329/2.421, allocations: 27.15 MB / 1.02 GB, free: 114.1 MB / 0.5764 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0007295/2.421, allocations: 124 kB / 1.02 GB, free: 114 MB / 0.5764 GB Notification: Performance of matching and sorting (n=2332) (initialization): time 0.04381/2.465, allocations: 24.73 MB / 1.044 GB, free: 91.44 MB / 0.5764 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007651/2.466, allocations: 192 kB / 1.044 GB, free: 91.25 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008909/2.467, allocations: 439.9 kB / 1.045 GB, free: 90.82 MB / 0.5764 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003726/2.471, allocations: 1.548 MB / 1.046 GB, free: 89.27 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01202/2.483, allocations: 4.296 MB / 1.05 GB, free: 84.97 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008488/2.491, allocations: 7.913 MB / 1.058 GB, free: 76.92 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01488/2.506, allocations: 1.045 MB / 1.059 GB, free: 75.88 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003118/2.509, allocations: 1.14 MB / 1.06 GB, free: 74.74 MB / 0.5764 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1988 * Number of states: 0 () * Number of discrete variables: 44 (sensor_world2.arrow.twoHeadedArrow,sensor_world2.arrow.headAtOrigin,sensor_world1.arrow.twoHeadedArrow,sensor_world1.arrow.headAtOrigin,sensor_frame_a2.arrow.twoHeadedArrow,sensor_frame_a2.arrow.headAtOrigin,sensor_frame_a1.arrow.twoHeadedArrow,sensor_frame_a1.arrow.headAtOrigin,sensor_world2.arrowColor[3],sensor_world2.arrowColor[2],sensor_world2.arrowColor[1],sensor_world1.arrowColor[3],sensor_world1.arrowColor[2],sensor_world1.arrowColor[1],sensor_frame_a2.arrowColor[3],sensor_frame_a2.arrowColor[2],sensor_frame_a2.arrowColor[1],sensor_frame_a1.arrowColor[3],sensor_frame_a1.arrowColor[2],sensor_frame_a1.arrowColor[1],box.color[3],box.color[2],box.color[1],box.body.sphereColor[3],box.body.sphereColor[2],box.body.sphereColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (2275): * Single equations (assignments): 2267 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01436/2.524, allocations: 7.717 MB / 1.068 GB, free: 67 MB / 0.5764 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002295/2.526, allocations: 0.8213 MB / 1.069 GB, free: 66.17 MB / 0.5764 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01403/2.54, allocations: 7.766 MB / 1.076 GB, free: 58.35 MB / 0.5764 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.26e-05/2.54, allocations: 36 kB / 1.076 GB, free: 58.31 MB / 0.5764 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.738e-05/2.54, allocations: 4 kB / 1.076 GB, free: 58.31 MB / 0.5764 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.598e-05/2.54, allocations: 15.94 kB / 1.076 GB, free: 58.29 MB / 0.5764 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04787/2.588, allocations: 23.21 MB / 1.099 GB, free: 34.95 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.865e-05/2.588, allocations: 4 kB / 1.099 GB, free: 34.95 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003292/2.592, allocations: 0.6245 MB / 1.099 GB, free: 34.32 MB / 0.5764 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002596/2.594, allocations: 0.9434 MB / 1.1 GB, free: 33.38 MB / 0.5764 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005741/2.595, allocations: 65.8 kB / 1.1 GB, free: 33.31 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006616/2.601, allocations: 6.196 MB / 1.107 GB, free: 26.98 MB / 0.5764 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/2.601, allocations: 4 kB / 1.107 GB, free: 26.98 MB / 0.5764 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01639/2.618, allocations: 12.87 MB / 1.119 GB, free: 13.95 MB / 0.5764 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002249/2.62, allocations: 0.7669 MB / 1.12 GB, free: 13.16 MB / 0.5764 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002217/2.622, allocations: 60 kB / 1.12 GB, free: 13.1 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005418/2.628, allocations: 355.4 kB / 1.12 GB, free: 12.75 MB / 0.5764 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00102/2.629, allocations: 193.7 kB / 1.12 GB, free: 12.56 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005374/2.629, allocations: 107.8 kB / 1.121 GB, free: 12.46 MB / 0.5764 GB Notification: Performance of sorting global known variables: time 0.01251/2.642, allocations: 6.502 MB / 1.127 GB, free: 5.977 MB / 0.5764 GB Notification: Performance of sort global known variables: time 1.032e-06/2.642, allocations: 0 / 1.127 GB, free: 5.977 MB / 0.5764 GB Notification: Performance of remove unused functions: time 0.01936/2.661, allocations: 2.937 MB / 1.13 GB, free: 3.051 MB / 0.5764 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 4 (rev.phi,rev.w,rev1.phi,rev1.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 (294): * Single equations (assignments): 286 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.319/2.98, allocations: 13.72 MB / 1.143 GB, free: 173.2 MB / 0.592 GB Notification: Performance of simCode: created initialization part: time 0.02993/3.01, allocations: 19.3 MB / 1.162 GB, free: 167.9 MB / 0.592 GB Notification: Performance of simCode: created event and clocks part: time 1.487e-05/3.011, allocations: 448 / 1.162 GB, free: 167.9 MB / 0.592 GB Notification: Performance of simCode: created simulation system equations: time 0.003962/3.014, allocations: 3.641 MB / 1.166 GB, free: 166.5 MB / 0.592 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00768/3.022, allocations: 1.584 MB / 1.167 GB, free: 165.9 MB / 0.592 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2169/3.239, allocations: 189.1 MB / 1.352 GB, free: 5.969 MB / 0.6233 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2526/3.492, allocations: 10.28 MB / 1.362 GB, free: 212.9 MB / 0.6233 GB Notification: Performance of simCode: alias equations: time 0.01752/3.509, allocations: 5.447 MB / 1.367 GB, free: 212.6 MB / 0.6233 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01162/3.521, allocations: 6.657 MB / 1.374 GB, free: 211.4 MB / 0.6233 GB Notification: Performance of SimCode: time 1.302e-06/3.521, allocations: 0 / 1.374 GB, free: 211.4 MB / 0.6233 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2377/3.759, allocations: 174.1 MB / 1.544 GB, free: 61.44 MB / 0.6233 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.47/19.23, allocations: 11.12 kB / 1.544 GB, free: 61.43 MB / 0.6233 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_AbsoluteSensor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_AbsoluteSensor.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe 2>&1)