Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor.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.RelativeSensor,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00162/0.00162, 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.001864/0.001864, 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.54/1.54, allocations: 227.4 MB / 246.8 MB, free: 10.62 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.2403/0.2403, allocations: 46.1 MB / 344.2 MB, free: 11.61 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.002279/0.00228, allocations: 81.42 kB / 417.8 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1561, allocations: 62.44 MB / 480.2 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.02988/0.186, allocations: 24.97 MB / 0.4933 GB, free: 12.1 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01836/0.2044, allocations: 8.356 MB / 0.5015 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005561/0.21, allocations: 215.5 kB / 0.5017 GB, free: 3.512 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2786/0.4887, allocations: 21.9 MB / 0.5231 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01043/0.4991, allocations: 3.751 MB / 0.5268 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01007/0.5092, allocations: 4.808 MB / 0.5314 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01615/0.5254, allocations: 10.91 MB / 0.5421 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05191/0.5774, allocations: 32.52 MB / 0.5739 GB, free: 4.152 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01656/0.594, allocations: 7.292 MB / 0.581 GB, free: 13.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01632/0.6104, allocations: 9.068 MB / 0.5898 GB, free: 4.602 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008149/0.6186, allocations: 2.242 MB / 0.592 GB, free: 2.359 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01005/0.6286, allocations: 3.574 MB / 0.5955 GB, free: 14.85 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01296/0.6416, allocations: 8.614 MB / 0.6039 GB, free: 6.234 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02019/0.6619, allocations: 9.9 MB / 0.6136 GB, free: 12.3 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04675/0.7086, allocations: 32.35 MB / 0.6452 GB, free: 12.42 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.7087, allocations: 0 / 0.6452 GB, free: 12.42 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.7087, allocations: 0 / 0.6452 GB, free: 12.42 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001108/0.7098, allocations: 0 / 0.6452 GB, free: 12.42 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5575 * Number of variables: 5575 Notification: Performance of Generate backend data structure: time 0.05969/0.7695, allocations: 18.52 MB / 0.6633 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.7696, allocations: 8.031 kB / 0.6633 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009571/0.7792, allocations: 2.804 MB / 0.666 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1837/0.9629, allocations: 13.62 MB / 0.6793 GB, free: 9.52 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02382/0.9868, allocations: 9.398 MB / 0.6885 GB, free: 92 kB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002077/0.9889, allocations: 1.272 MB / 0.6897 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00885/0.9978, allocations: 1.682 MB / 0.6914 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5432/1.541, allocations: 38.36 MB / 0.7289 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008252/1.542, allocations: 92.48 kB / 0.7289 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005875/1.548, allocations: 0.7273 MB / 0.7297 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005539/1.553, allocations: 3.551 MB / 0.7331 GB, free: 141.4 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0686/1.622, allocations: 31.16 MB / 0.7635 GB, free: 120.1 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1482/1.77, allocations: 112.1 MB / 0.873 GB, free: 7.156 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06174/1.832, allocations: 21.49 MB / 0.894 GB, free: 1.191 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009576/1.842, allocations: 6.7 MB / 0.9006 GB, free: 10.47 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4999/2.342, allocations: 26.4 MB / 0.9263 GB, free: 187.6 MB / 0.5764 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.282e-05/2.342, allocations: 76.05 kB / 0.9264 GB, free: 187.6 MB / 0.5764 GB Notification: Performance of pre-optimization done (n=336): time 7.074e-06/2.342, allocations: 3.25 kB / 0.9264 GB, free: 187.6 MB / 0.5764 GB Notification: Performance of matching and sorting (n=450): time 1.345/3.687, allocations: 321.2 MB / 1.24 GB, free: 123.9 MB / 0.5764 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.843e-05/3.687, allocations: 277.3 kB / 1.24 GB, free: 123.6 MB / 0.5764 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0143/3.701, allocations: 9.742 MB / 1.25 GB, free: 113.9 MB / 0.5764 GB Notification: Performance of collectPreVariables (initialization): time 0.00183/3.703, allocations: 94.8 kB / 1.25 GB, free: 113.8 MB / 0.5764 GB Notification: Performance of collectInitialEqns (initialization): time 0.004556/3.708, allocations: 10.19 MB / 1.26 GB, free: 103.6 MB / 0.5764 GB Notification: Performance of collectInitialBindings (initialization): time 0.002963/3.711, allocations: 1.757 MB / 1.262 GB, free: 101.8 MB / 0.5764 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009503/3.72, allocations: 3.519 MB / 1.265 GB, free: 98.31 MB / 0.5764 GB Notification: Performance of setup shared object (initialization): time 3.998e-05/3.72, allocations: 312.9 kB / 1.265 GB, free: 98.01 MB / 0.5764 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01773/3.738, allocations: 15.72 MB / 1.281 GB, free: 82.28 MB / 0.5764 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02375/3.762, allocations: 25.79 MB / 1.306 GB, free: 51.52 MB / 0.5764 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04329/3.805, allocations: 43.56 MB / 1.348 GB, free: 2.949 MB / 0.5764 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003369/3.806, allocations: 104 kB / 1.349 GB, free: 2.848 MB / 0.5764 GB Notification: Performance of matching and sorting (n=2078) (initialization): time 0.3219/4.127, allocations: 41.24 MB / 1.389 GB, free: 162.8 MB / 0.592 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002096/4.128, allocations: 166.7 kB / 1.389 GB, free: 162.8 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005136/4.128, allocations: 356.3 kB / 1.389 GB, free: 162.8 MB / 0.592 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001812/4.13, allocations: 0.9304 MB / 1.39 GB, free: 162.7 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01919/4.149, allocations: 4.972 MB / 1.395 GB, free: 162.2 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006849/4.156, allocations: 6.888 MB / 1.402 GB, free: 157.8 MB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01967/4.176, allocations: 2.064 MB / 1.404 GB, free: 157.5 MB / 0.592 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003245/4.179, allocations: 0.963 MB / 1.405 GB, free: 157.4 MB / 0.592 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1622 * Number of states: 0 () * Number of discrete variables: 58 (relativeSensor.arrow.twoHeadedArrow,relativeSensor.arrow.headAtOrigin,relative_b1.arrow.twoHeadedArrow,relative_b1.arrow.headAtOrigin,relative_b2.arrow.twoHeadedArrow,relative_b2.arrow.headAtOrigin,relative_a2.arrow.twoHeadedArrow,relative_a2.arrow.headAtOrigin,relative_a1.arrow.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 (2022): * Single equations (assignments): 2012 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01178/4.191, allocations: 7.442 MB / 1.412 GB, free: 153.9 MB / 0.592 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002042/4.193, allocations: 0.8261 MB / 1.413 GB, free: 153.9 MB / 0.592 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0362/4.229, allocations: 29.95 MB / 1.442 GB, free: 131.6 MB / 0.592 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001283/4.229, allocations: 83.89 kB / 1.442 GB, free: 131.5 MB / 0.592 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.466e-05/4.229, allocations: 4 kB / 1.442 GB, free: 131.5 MB / 0.592 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.364e-05/4.229, allocations: 21.33 kB / 1.442 GB, free: 131.5 MB / 0.592 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08473/4.314, allocations: 71.33 MB / 1.512 GB, free: 58.87 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.382e-05/4.314, allocations: 0 / 1.512 GB, free: 58.87 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01186/4.326, allocations: 1.973 MB / 1.514 GB, free: 56.89 MB / 0.592 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001349/4.327, allocations: 461.2 kB / 1.514 GB, free: 56.43 MB / 0.592 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001845/4.329, allocations: 75.98 kB / 1.514 GB, free: 56.36 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00492/4.334, allocations: 5.394 MB / 1.52 GB, free: 50.73 MB / 0.592 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/4.334, allocations: 3.984 kB / 1.52 GB, free: 50.73 MB / 0.592 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06229/4.397, allocations: 50.18 MB / 1.569 GB, free: 0.9609 MB / 0.592 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002328/4.399, allocations: 0.7883 MB / 1.569 GB, free: 384 kB / 0.592 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00348/4.403, allocations: 72.09 kB / 1.569 GB, free: 312 kB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01195/4.415, allocations: 1.528 MB / 1.571 GB, free: 14.77 MB / 0.6077 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002539/4.417, allocations: 242.7 kB / 1.571 GB, free: 14.54 MB / 0.6077 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001039/4.418, allocations: 123.5 kB / 1.571 GB, free: 14.42 MB / 0.6077 GB Notification: Performance of sorting global known variables: time 0.2617/4.68, allocations: 6.04 MB / 1.577 GB, free: 189.9 MB / 0.6077 GB Notification: Performance of sort global known variables: time 7.82e-07/4.68, allocations: 0 / 1.577 GB, free: 189.9 MB / 0.6077 GB Notification: Performance of remove unused functions: time 0.01835/4.698, allocations: 4.096 MB / 1.581 GB, free: 189.9 MB / 0.6077 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.06153/4.76, allocations: 51.02 MB / 1.631 GB, free: 167.6 MB / 0.6077 GB Notification: Performance of simCode: created initialization part: time 0.05983/4.82, allocations: 46.83 MB / 1.677 GB, free: 130.1 MB / 0.6077 GB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/4.82, allocations: 448 / 1.677 GB, free: 130.1 MB / 0.6077 GB Notification: Performance of simCode: created simulation system equations: time 0.01561/4.835, allocations: 14.83 MB / 1.691 GB, free: 116.8 MB / 0.6077 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009358/4.845, allocations: 1.502 MB / 1.693 GB, free: 115.6 MB / 0.6077 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5111/5.356, allocations: 247.5 MB / 1.934 GB, free: 86.51 MB / 0.6077 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01935/5.375, allocations: 10.43 MB / 1.945 GB, free: 76.07 MB / 0.6077 GB Notification: Performance of simCode: alias equations: time 0.02134/5.397, allocations: 7.092 MB / 1.951 GB, free: 68.97 MB / 0.6077 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01426/5.411, allocations: 7.298 MB / 1.959 GB, free: 61.67 MB / 0.6077 GB Notification: Performance of SimCode: time 1.182e-06/5.411, allocations: 1.094 kB / 1.959 GB, free: 61.67 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5811/5.992, allocations: 241.4 MB / 2.194 GB, free: 83.49 MB / 0.6233 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.37/21.36, allocations: 5.344 kB / 2.194 GB, free: 83.49 MB / 0.6233 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1)