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.001279/0.001279, 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.001343/0.001343, 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.579/1.579, 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.2304/0.2304, allocations: 46.11 MB / 344.2 MB, free: 11.57 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.002268/0.002268, allocations: 84.12 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1282, allocations: 62.44 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.02818/0.1565, allocations: 24.97 MB / 0.4933 GB, free: 12.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01856/0.1751, allocations: 8.353 MB / 0.5015 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005857/0.181, allocations: 215.5 kB / 0.5017 GB, free: 3.473 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2694/0.4504, allocations: 21.91 MB / 0.5231 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009648/0.4601, allocations: 3.744 MB / 0.5267 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0105/0.4706, allocations: 4.811 MB / 0.5314 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01816/0.4888, allocations: 10.9 MB / 0.5421 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05996/0.5489, allocations: 32.53 MB / 0.5739 GB, free: 4.121 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01455/0.5634, allocations: 7.29 MB / 0.581 GB, free: 13.15 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01517/0.5787, allocations: 9.071 MB / 0.5898 GB, free: 4.566 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007593/0.5863, allocations: 2.246 MB / 0.592 GB, free: 2.32 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01144/0.5978, allocations: 3.574 MB / 0.5955 GB, free: 14.82 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01405/0.6119, allocations: 8.611 MB / 0.6039 GB, free: 6.199 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02025/0.6322, allocations: 9.899 MB / 0.6136 GB, free: 12.27 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04373/0.6759, allocations: 32.35 MB / 0.6452 GB, free: 12.4 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.676, allocations: 4 kB / 0.6452 GB, free: 12.39 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.676, allocations: 4 kB / 0.6452 GB, free: 12.39 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001304/0.6773, allocations: 0 / 0.6452 GB, free: 12.39 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.05793/0.7353, allocations: 18.52 MB / 0.6633 GB, free: 9.918 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.7353, allocations: 12.03 kB / 0.6633 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01053/0.7459, allocations: 2.8 MB / 0.666 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2047/0.9506, allocations: 13.62 MB / 0.6793 GB, free: 9.492 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02608/0.9767, allocations: 9.4 MB / 0.6885 GB, free: 64 kB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001365/0.9781, allocations: 1.27 MB / 0.6897 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006066/0.9842, allocations: 1.683 MB / 0.6914 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5834/1.568, allocations: 38.36 MB / 0.7288 GB, free: 143 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005824/1.568, allocations: 88.5 kB / 0.7289 GB, free: 143 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00526/1.574, allocations: 0.7349 MB / 0.7297 GB, free: 142.5 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004374/1.578, allocations: 3.555 MB / 0.7331 GB, free: 141.2 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06115/1.639, allocations: 31.15 MB / 0.7635 GB, free: 119.9 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1353/1.775, allocations: 112.1 MB / 0.873 GB, free: 7.008 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06051/1.835, allocations: 21.49 MB / 0.894 GB, free: 1.043 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00905/1.844, allocations: 6.698 MB / 0.9005 GB, free: 10.33 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4792/2.323, allocations: 26.42 MB / 0.9263 GB, free: 186.4 MB / 0.5764 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.503e-05/2.324, allocations: 74.61 kB / 0.9264 GB, free: 186.3 MB / 0.5764 GB Notification: Performance of pre-optimization done (n=336): time 7.785e-06/2.324, allocations: 0 / 0.9264 GB, free: 186.3 MB / 0.5764 GB Notification: Performance of matching and sorting (n=450): time 1.262/3.585, allocations: 321.2 MB / 1.24 GB, free: 123.9 MB / 0.5764 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.03e-05/3.585, allocations: 277.6 kB / 1.24 GB, free: 123.6 MB / 0.5764 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01326/3.599, allocations: 9.746 MB / 1.25 GB, free: 113.9 MB / 0.5764 GB Notification: Performance of collectPreVariables (initialization): time 0.00167/3.6, allocations: 94.8 kB / 1.25 GB, free: 113.8 MB / 0.5764 GB Notification: Performance of collectInitialEqns (initialization): time 0.004377/3.605, allocations: 10.19 MB / 1.26 GB, free: 103.6 MB / 0.5764 GB Notification: Performance of collectInitialBindings (initialization): time 0.002868/3.608, allocations: 1.762 MB / 1.262 GB, free: 101.9 MB / 0.5764 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01107/3.619, allocations: 3.524 MB / 1.265 GB, free: 98.33 MB / 0.5764 GB Notification: Performance of setup shared object (initialization): time 4.993e-05/3.619, allocations: 301.1 kB / 1.265 GB, free: 98.04 MB / 0.5764 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01784/3.637, allocations: 15.73 MB / 1.281 GB, free: 82.3 MB / 0.5764 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02557/3.662, allocations: 25.78 MB / 1.306 GB, free: 51.55 MB / 0.5764 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04183/3.704, allocations: 43.56 MB / 1.348 GB, free: 2.969 MB / 0.5764 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004014/3.705, allocations: 100 kB / 1.349 GB, free: 2.871 MB / 0.5764 GB Notification: Performance of matching and sorting (n=2078) (initialization): time 0.3224/4.027, allocations: 41.24 MB / 1.389 GB, free: 162.4 MB / 0.592 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003457/4.027, allocations: 158.5 kB / 1.389 GB, free: 162.4 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005255/4.028, allocations: 356.4 kB / 1.389 GB, free: 162.4 MB / 0.592 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001707/4.03, allocations: 0.9381 MB / 1.39 GB, free: 162.2 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01907/4.049, allocations: 4.97 MB / 1.395 GB, free: 161.8 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006675/4.055, allocations: 6.893 MB / 1.402 GB, free: 157.3 MB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01802/4.074, allocations: 2.065 MB / 1.404 GB, free: 157.1 MB / 0.592 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003504/4.077, allocations: 0.9688 MB / 1.405 GB, free: 157 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.01365/4.091, allocations: 7.433 MB / 1.412 GB, free: 153.4 MB / 0.592 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002211/4.093, allocations: 0.8274 MB / 1.413 GB, free: 153.4 MB / 0.592 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03531/4.128, allocations: 29.95 MB / 1.442 GB, free: 131.6 MB / 0.592 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001144/4.128, allocations: 83.84 kB / 1.442 GB, free: 131.5 MB / 0.592 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/4.128, allocations: 7.938 kB / 1.442 GB, free: 131.5 MB / 0.592 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-05/4.128, allocations: 22.45 kB / 1.442 GB, free: 131.5 MB / 0.592 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1081/4.237, allocations: 71.34 MB / 1.512 GB, free: 58.88 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.32e-05/4.237, allocations: 0 / 1.512 GB, free: 58.88 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01209/4.249, allocations: 1.969 MB / 1.514 GB, free: 56.91 MB / 0.592 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001481/4.25, allocations: 461.2 kB / 1.514 GB, free: 56.45 MB / 0.592 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001963/4.252, allocations: 72 kB / 1.514 GB, free: 56.38 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004921/4.257, allocations: 5.404 MB / 1.52 GB, free: 50.75 MB / 0.592 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/4.257, allocations: 3.938 kB / 1.52 GB, free: 50.75 MB / 0.592 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06487/4.322, allocations: 50.18 MB / 1.569 GB, free: 0.9727 MB / 0.592 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002118/4.324, allocations: 0.7908 MB / 1.569 GB, free: 396 kB / 0.592 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003631/4.328, allocations: 72 kB / 1.569 GB, free: 324 kB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01346/4.341, allocations: 1.528 MB / 1.571 GB, free: 14.79 MB / 0.6077 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003091/4.345, allocations: 238.7 kB / 1.571 GB, free: 14.55 MB / 0.6077 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002106/4.347, allocations: 119.9 kB / 1.571 GB, free: 14.44 MB / 0.6077 GB Notification: Performance of sorting global known variables: time 0.2789/4.626, allocations: 6.042 MB / 1.577 GB, free: 189.9 MB / 0.6077 GB Notification: Performance of sort global known variables: time 4.41e-07/4.626, allocations: 0 / 1.577 GB, free: 189.9 MB / 0.6077 GB Notification: Performance of remove unused functions: time 0.01733/4.643, allocations: 4.099 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.06061/4.704, allocations: 51.02 MB / 1.631 GB, free: 167.6 MB / 0.6077 GB Notification: Performance of simCode: created initialization part: time 0.05952/4.763, allocations: 46.82 MB / 1.677 GB, free: 130.2 MB / 0.6077 GB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/4.763, allocations: 448 / 1.677 GB, free: 130.2 MB / 0.6077 GB Notification: Performance of simCode: created simulation system equations: time 0.01716/4.78, allocations: 14.84 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.01393/4.794, allocations: 1.497 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.5063/5.301, allocations: 247.5 MB / 1.934 GB, free: 86.59 MB / 0.6077 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01772/5.319, allocations: 10.43 MB / 1.945 GB, free: 76.16 MB / 0.6077 GB Notification: Performance of simCode: alias equations: time 0.01998/5.339, allocations: 7.096 MB / 1.951 GB, free: 69.06 MB / 0.6077 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01333/5.352, allocations: 7.298 MB / 1.959 GB, free: 61.76 MB / 0.6077 GB Notification: Performance of SimCode: time 1.192e-06/5.352, allocations: 1.094 kB / 1.959 GB, free: 61.76 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5132/5.865, allocations: 241.4 MB / 2.194 GB, free: 83.64 MB / 0.6233 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.39/21.25, allocations: 5.656 kB / 2.194 GB, free: 83.64 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1)