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.001907/0.001907, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002272/0.002272, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.661/1.661, allocations: 227.4 MB / 246.8 MB, free: 10.53 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.2391/0.2391, allocations: 46.12 MB / 344.2 MB, free: 11.55 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.002259/0.002259, allocations: 76.92 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.135, allocations: 62.46 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor): time 0.027/0.162, allocations: 22.81 MB / 0.4912 GB, free: 14.22 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02018/0.1823, allocations: 7.967 MB / 0.499 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00572/0.188, allocations: 191.6 kB / 0.4992 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2779/0.466, allocations: 22.12 MB / 0.5208 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009113/0.4752, allocations: 3.49 MB / 0.5242 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008315/0.4835, allocations: 4.027 MB / 0.5281 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01638/0.4999, allocations: 9.651 MB / 0.5376 GB, free: 6.184 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04609/0.5461, allocations: 32.19 MB / 0.569 GB, free: 9.172 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01365/0.5598, allocations: 6.923 MB / 0.5758 GB, free: 2.555 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01579/0.5756, allocations: 8.688 MB / 0.5842 GB, free: 10.36 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006744/0.5824, allocations: 2.211 MB / 0.5864 GB, free: 8.145 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009893/0.5923, allocations: 3.453 MB / 0.5898 GB, free: 4.754 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01374/0.6061, allocations: 8.293 MB / 0.5979 GB, free: 12.46 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0186/0.6247, allocations: 9.665 MB / 0.6073 GB, free: 2.762 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04355/0.6683, allocations: 32.25 MB / 0.6388 GB, free: 2.977 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.728e-06/0.6684, allocations: 0 / 0.6388 GB, free: 2.977 MB / 478.1 MB Notification: Performance of FrontEnd: time 5.581e-06/0.6684, allocations: 0 / 0.6388 GB, free: 2.977 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.001434/0.6698, allocations: 3.938 kB / 0.6388 GB, free: 2.973 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.05285/0.7227, allocations: 16.87 MB / 0.6553 GB, free: 2.141 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.7228, allocations: 8.031 kB / 0.6553 GB, free: 2.133 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01008/0.7328, allocations: 2.774 MB / 0.658 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0994/0.8323, allocations: 8.273 MB / 0.6661 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02302/0.8553, allocations: 8.06 MB / 0.6739 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001628/0.857, allocations: 1.243 MB / 0.6752 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007283/0.8643, allocations: 1.638 MB / 0.6768 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5906/1.455, allocations: 35.92 MB / 0.7118 GB, free: 144.8 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001544/1.457, allocations: 129.3 kB / 0.712 GB, free: 144.7 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007275/1.464, allocations: 0.7344 MB / 0.7127 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007367/1.471, allocations: 3.679 MB / 0.7163 GB, free: 143.5 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06507/1.536, allocations: 26.75 MB / 0.7424 GB, free: 132.3 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1577/1.694, allocations: 121.9 MB / 0.8615 GB, free: 16.29 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02287/1.717, allocations: 8.278 MB / 0.8695 GB, free: 7.848 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004597/1.722, allocations: 4.085 MB / 0.8735 GB, free: 3.758 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01356/1.735, allocations: 14.67 MB / 0.8879 GB, free: 2.746 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001059/1.735, allocations: 72.5 kB / 0.8879 GB, free: 2.668 MB / 0.545 GB Notification: Performance of pre-optimization done (n=277): time 7.053e-06/1.735, allocations: 0 / 0.8879 GB, free: 2.668 MB / 0.545 GB Notification: Performance of matching and sorting (n=338): time 0.6036/2.339, allocations: 55.58 MB / 0.9422 GB, free: 177.9 MB / 0.5764 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/2.339, allocations: 215.5 kB / 0.9424 GB, free: 177.7 MB / 0.5764 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02057/2.36, allocations: 10.56 MB / 0.9527 GB, free: 173.7 MB / 0.5764 GB Notification: Performance of collectPreVariables (initialization): time 0.0007673/2.361, allocations: 77.52 kB / 0.9528 GB, free: 173.6 MB / 0.5764 GB Notification: Performance of collectInitialEqns (initialization): time 0.006473/2.367, allocations: 10.77 MB / 0.9633 GB, free: 165.4 MB / 0.5764 GB Notification: Performance of collectInitialBindings (initialization): time 0.001894/2.369, allocations: 1.448 MB / 0.9647 GB, free: 164.4 MB / 0.5764 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005301/2.374, allocations: 3.786 MB / 0.9684 GB, free: 162.5 MB / 0.5764 GB Notification: Performance of setup shared object (initialization): time 3.712e-05/2.374, allocations: 311.7 kB / 0.9687 GB, free: 162.2 MB / 0.5764 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007133/2.381, allocations: 6.477 MB / 0.975 GB, free: 159.9 MB / 0.5764 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01176/2.393, allocations: 18.67 MB / 0.9933 GB, free: 140.7 MB / 0.5764 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02094/2.414, allocations: 27.16 MB / 1.02 GB, free: 114.1 MB / 0.5764 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003343/2.415, allocations: 124 kB / 1.02 GB, free: 114 MB / 0.5764 GB Notification: Performance of matching and sorting (n=2332) (initialization): time 0.04112/2.456, allocations: 24.73 MB / 1.044 GB, free: 91.41 MB / 0.5764 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004944/2.456, allocations: 192 kB / 1.044 GB, free: 91.22 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006381/2.457, allocations: 442.2 kB / 1.045 GB, free: 90.79 MB / 0.5764 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002963/2.46, allocations: 1.539 MB / 1.046 GB, free: 89.24 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0125/2.472, allocations: 4.296 MB / 1.05 GB, free: 84.93 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007825/2.48, allocations: 7.92 MB / 1.058 GB, free: 76.88 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01306/2.493, allocations: 1.045 MB / 1.059 GB, free: 75.83 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003023/2.496, allocations: 1.135 MB / 1.06 GB, free: 74.7 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.01295/2.509, allocations: 7.729 MB / 1.068 GB, free: 66.95 MB / 0.5764 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001657/2.511, allocations: 0.8212 MB / 1.069 GB, free: 66.12 MB / 0.5764 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01046/2.521, allocations: 7.763 MB / 1.076 GB, free: 58.3 MB / 0.5764 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-05/2.522, allocations: 36 kB / 1.076 GB, free: 58.27 MB / 0.5764 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.518e-05/2.522, allocations: 4 kB / 1.076 GB, free: 58.27 MB / 0.5764 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.932e-05/2.522, allocations: 23.5 kB / 1.076 GB, free: 58.25 MB / 0.5764 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04199/2.564, allocations: 23.19 MB / 1.099 GB, free: 34.92 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.279e-05/2.564, allocations: 12.09 kB / 1.099 GB, free: 34.91 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002957/2.567, allocations: 0.6201 MB / 1.099 GB, free: 34.29 MB / 0.5764 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00248/2.569, allocations: 0.9431 MB / 1.1 GB, free: 33.34 MB / 0.5764 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004288/2.57, allocations: 65.31 kB / 1.1 GB, free: 33.28 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006233/2.576, allocations: 6.2 MB / 1.107 GB, free: 26.95 MB / 0.5764 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/2.576, allocations: 5.531 kB / 1.107 GB, free: 26.94 MB / 0.5764 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0153/2.591, allocations: 12.87 MB / 1.119 GB, free: 13.91 MB / 0.5764 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003333/2.595, allocations: 0.7675 MB / 1.12 GB, free: 13.12 MB / 0.5764 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002283/2.597, allocations: 56.62 kB / 1.12 GB, free: 13.06 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004482/2.601, allocations: 358.7 kB / 1.12 GB, free: 12.71 MB / 0.5764 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006435/2.602, allocations: 194.8 kB / 1.12 GB, free: 12.52 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003617/2.602, allocations: 106.9 kB / 1.121 GB, free: 12.42 MB / 0.5764 GB Notification: Performance of sorting global known variables: time 0.01167/2.614, allocations: 6.506 MB / 1.127 GB, free: 5.938 MB / 0.5764 GB Notification: Performance of sort global known variables: time 9.22e-07/2.614, allocations: 0 / 1.127 GB, free: 5.938 MB / 0.5764 GB Notification: Performance of remove unused functions: time 0.01584/2.63, allocations: 2.935 MB / 1.13 GB, free: 3.012 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.273/2.903, allocations: 13.73 MB / 1.143 GB, free: 173.4 MB / 0.592 GB Notification: Performance of simCode: created initialization part: time 0.03251/2.936, allocations: 19.29 MB / 1.162 GB, free: 168.1 MB / 0.592 GB Notification: Performance of simCode: created event and clocks part: time 1.534e-05/2.936, allocations: 448 / 1.162 GB, free: 168.1 MB / 0.592 GB Notification: Performance of simCode: created simulation system equations: time 0.004434/2.94, allocations: 3.644 MB / 1.166 GB, free: 166.6 MB / 0.592 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008643/2.949, allocations: 1.577 MB / 1.167 GB, free: 166 MB / 0.592 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2347/3.184, allocations: 189.1 MB / 1.352 GB, free: 5.98 MB / 0.6233 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.265/3.449, allocations: 10.29 MB / 1.362 GB, free: 215.3 MB / 0.6233 GB Notification: Performance of simCode: alias equations: time 0.01723/3.466, allocations: 5.449 MB / 1.367 GB, free: 215.1 MB / 0.6233 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01239/3.478, allocations: 6.657 MB / 1.374 GB, free: 212.9 MB / 0.6233 GB Notification: Performance of SimCode: time 1.823e-06/3.478, allocations: 0 / 1.374 GB, free: 212.9 MB / 0.6233 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2452/3.723, allocations: 174.1 MB / 1.544 GB, free: 62.21 MB / 0.6233 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.69/19.41, allocations: 11.88 kB / 1.544 GB, free: 62.2 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 & 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)