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.001798/0.001797, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00205/0.00205, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 227.4 MB / 247 MB, free: 10.46 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.2259/0.2259, allocations: 46.12 MB / 344.3 MB, free: 11.48 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.002281/0.002281, allocations: 79.88 kB / 480.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3407, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor): time 0.02658/0.3673, allocations: 22.82 MB / 0.5529 GB, free: 10.86 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01871/0.3861, allocations: 7.96 MB / 0.5607 GB, free: 2.879 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005897/0.392, allocations: 195.6 kB / 0.5608 GB, free: 2.688 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0397/0.4318, allocations: 22.12 MB / 0.5824 GB, free: 12.5 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0109/0.4427, allocations: 3.497 MB / 0.5859 GB, free: 8.996 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009469/0.4522, allocations: 4.027 MB / 0.5898 GB, free: 4.961 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01724/0.4695, allocations: 9.649 MB / 0.5992 GB, free: 11.29 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04942/0.519, allocations: 32.16 MB / 0.6306 GB, free: 10.96 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.016/0.535, allocations: 6.931 MB / 0.6374 GB, free: 4.02 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01496/0.5501, allocations: 8.678 MB / 0.6459 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.006854/0.557, allocations: 2.215 MB / 0.648 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00962/0.5666, allocations: 3.447 MB / 0.6514 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.01275/0.5794, allocations: 8.292 MB / 0.6595 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.01963/0.5991, allocations: 9.656 MB / 0.6689 GB, free: 3.648 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.04411/0.6433, allocations: 32.83 MB / 0.701 GB, free: 2.711 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.685e-06/0.6433, allocations: 0 / 0.701 GB, free: 2.711 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.164e-06/0.6433, allocations: 0 / 0.701 GB, free: 2.711 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.001052/0.6444, allocations: 4 kB / 0.701 GB, free: 2.707 MB / 0.545 GB 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.04929/0.6937, allocations: 17.27 MB / 0.7178 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.7e-05/0.6938, allocations: 8.031 kB / 0.7179 GB, free: 1.289 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.5066/1.2, allocations: 2.772 MB / 0.7206 GB, free: 148 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09728/1.298, allocations: 8.378 MB / 0.7287 GB, free: 145.8 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01647/1.314, allocations: 8.12 MB / 0.7367 GB, free: 141.6 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007741/1.315, allocations: 1.247 MB / 0.7379 GB, free: 140.5 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005321/1.32, allocations: 1.639 MB / 0.7395 GB, free: 138.9 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07247/1.393, allocations: 35.92 MB / 0.7746 GB, free: 101.3 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008396/1.394, allocations: 127 kB / 0.7747 GB, free: 101.2 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005147/1.399, allocations: 0.731 MB / 0.7754 GB, free: 100.5 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004375/1.403, allocations: 3.685 MB / 0.779 GB, free: 96.84 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05086/1.454, allocations: 26.74 MB / 0.8051 GB, free: 70.09 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1492/1.603, allocations: 121.5 MB / 0.9238 GB, free: 10.96 MB / 0.6232 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02624/1.63, allocations: 8.297 MB / 0.9319 GB, free: 2.504 MB / 0.6232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005744/1.635, allocations: 4.084 MB / 0.9359 GB, free: 14.41 MB / 0.6388 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01437/1.65, allocations: 14.68 MB / 0.9502 GB, free: 13.35 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001287/1.65, allocations: 68.5 kB / 0.9503 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=277): time 1.251e-05/1.65, allocations: 0 / 0.9503 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of matching and sorting (n=338): time 0.6354/2.285, allocations: 56.33 MB / 1.005 GB, free: 227.4 MB / 0.6702 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.166e-05/2.286, allocations: 221.1 kB / 1.005 GB, free: 227.2 MB / 0.6702 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01323/2.299, allocations: 10.58 MB / 1.016 GB, free: 223.5 MB / 0.6702 GB Notification: Performance of collectPreVariables (initialization): time 0.0006323/2.299, allocations: 79.64 kB / 1.016 GB, free: 223.4 MB / 0.6702 GB Notification: Performance of collectInitialEqns (initialization): time 0.005191/2.305, allocations: 11.26 MB / 1.027 GB, free: 215.4 MB / 0.6702 GB Notification: Performance of collectInitialBindings (initialization): time 0.001561/2.306, allocations: 1.492 MB / 1.028 GB, free: 214.3 MB / 0.6702 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004874/2.311, allocations: 3.814 MB / 1.032 GB, free: 212.4 MB / 0.6702 GB Notification: Performance of setup shared object (initialization): time 4.914e-05/2.311, allocations: 312.8 kB / 1.032 GB, free: 212.1 MB / 0.6702 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007254/2.318, allocations: 6.474 MB / 1.039 GB, free: 207.5 MB / 0.6702 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01257/2.331, allocations: 18.68 MB / 1.057 GB, free: 184 MB / 0.6702 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02162/2.353, allocations: 27.15 MB / 1.083 GB, free: 150.7 MB / 0.6702 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003908/2.353, allocations: 128 kB / 1.084 GB, free: 150.6 MB / 0.6702 GB Notification: Performance of matching and sorting (n=2332) (initialization): time 0.03801/2.391, allocations: 24.79 MB / 1.108 GB, free: 125.7 MB / 0.6702 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007593/2.392, allocations: 188 kB / 1.108 GB, free: 125.6 MB / 0.6702 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008302/2.393, allocations: 440 kB / 1.108 GB, free: 125.1 MB / 0.6702 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00317/2.396, allocations: 1.531 MB / 1.11 GB, free: 123.6 MB / 0.6702 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01189/2.408, allocations: 4.3 MB / 1.114 GB, free: 119.3 MB / 0.6702 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007483/2.415, allocations: 7.918 MB / 1.122 GB, free: 111.2 MB / 0.6702 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01188/2.427, allocations: 1.057 MB / 1.123 GB, free: 110.2 MB / 0.6702 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00256/2.43, allocations: 1.133 MB / 1.124 GB, free: 109 MB / 0.6702 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.0123/2.442, allocations: 7.724 MB / 1.131 GB, free: 101.3 MB / 0.6702 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002173/2.444, allocations: 0.8614 MB / 1.132 GB, free: 100.4 MB / 0.6702 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01117/2.456, allocations: 7.761 MB / 1.14 GB, free: 92.62 MB / 0.6702 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.239e-05/2.456, allocations: 36 kB / 1.14 GB, free: 92.59 MB / 0.6702 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-05/2.456, allocations: 4.75 kB / 1.14 GB, free: 92.59 MB / 0.6702 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.079e-05/2.456, allocations: 23.94 kB / 1.14 GB, free: 92.56 MB / 0.6702 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04199/2.498, allocations: 23.02 MB / 1.162 GB, free: 69.39 MB / 0.6702 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.354e-05/2.498, allocations: 4 kB / 1.162 GB, free: 69.38 MB / 0.6702 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002892/2.501, allocations: 0.6284 MB / 1.163 GB, free: 68.75 MB / 0.6702 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002425/2.503, allocations: 0.941 MB / 1.164 GB, free: 67.81 MB / 0.6702 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004877/2.504, allocations: 75.86 kB / 1.164 GB, free: 67.74 MB / 0.6702 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006199/2.51, allocations: 6.242 MB / 1.17 GB, free: 61.36 MB / 0.6702 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.333e-06/2.51, allocations: 7.984 kB / 1.17 GB, free: 61.35 MB / 0.6702 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01523/2.525, allocations: 12.92 MB / 1.183 GB, free: 48.28 MB / 0.6702 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002296/2.528, allocations: 0.8115 MB / 1.184 GB, free: 47.45 MB / 0.6702 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001896/2.529, allocations: 56 kB / 1.184 GB, free: 47.39 MB / 0.6702 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004279/2.534, allocations: 356.8 kB / 1.184 GB, free: 47.04 MB / 0.6702 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006108/2.534, allocations: 189.7 kB / 1.184 GB, free: 46.86 MB / 0.6702 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003469/2.535, allocations: 111.6 kB / 1.184 GB, free: 46.75 MB / 0.6702 GB Notification: Performance of sorting global known variables: time 0.01111/2.546, allocations: 6.502 MB / 1.191 GB, free: 40.27 MB / 0.6702 GB Notification: Performance of sort global known variables: time 3.6e-07/2.546, allocations: 0 / 1.191 GB, free: 40.27 MB / 0.6702 GB Notification: Performance of remove unused functions: time 0.01519/2.561, allocations: 2.941 MB / 1.193 GB, free: 37.33 MB / 0.6702 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.01726/2.578, allocations: 13.78 MB / 1.207 GB, free: 23.4 MB / 0.6702 GB Notification: Performance of simCode: created initialization part: time 0.01889/2.597, allocations: 14.63 MB / 1.221 GB, free: 8.832 MB / 0.6702 GB Notification: Performance of simCode: created event and clocks part: time 1.274e-05/2.597, allocations: 448 / 1.221 GB, free: 8.828 MB / 0.6702 GB Notification: Performance of simCode: created simulation system equations: time 0.004257/2.602, allocations: 3.658 MB / 1.225 GB, free: 5.16 MB / 0.6702 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2733/2.875, allocations: 1.574 MB / 1.226 GB, free: 224.6 MB / 0.6702 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1888/3.064, allocations: 156.4 MB / 1.379 GB, free: 75.03 MB / 0.6702 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01964/3.084, allocations: 10.3 MB / 1.389 GB, free: 64.71 MB / 0.6702 GB Notification: Performance of simCode: alias equations: time 0.01277/3.096, allocations: 5.445 MB / 1.394 GB, free: 59.26 MB / 0.6702 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01028/3.107, allocations: 6.658 MB / 1.401 GB, free: 52.61 MB / 0.6702 GB Notification: Performance of SimCode: time 1.072e-06/3.107, allocations: 0 / 1.401 GB, free: 52.61 MB / 0.6702 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5095/3.616, allocations: 178 MB / 1.575 GB, free: 171.6 MB / 0.7014 GB Notification: Performance of buildModelFMU: Generate platform static: time 136.4/140, allocations: 13.94 kB / 1.575 GB, free: 171.6 MB / 0.7014 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_AbsoluteSensor.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe 2>&1)