Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_trunk_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.0009946/0.0009945, allocations: 94.12 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001101/0.001101, allocations: 192.9 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.207/0.207, allocations: 45.9 MB / 344.1 MB, free: 12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002608/0.0002609, allocations: 4 kB / 418.2 MB, free: 20.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1441, allocations: 63.46 MB / 481.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.3574/0.5016, allocations: 83.02 MB / 0.5514 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.05156/0.5532, allocations: 18.48 MB / 0.5695 GB, free: 14.07 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0207/0.5739, allocations: 430.9 kB / 0.5699 GB, free: 13.66 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01531/0.5893, allocations: 4.556 MB / 0.5743 GB, free: 9.078 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03939/0.6287, allocations: 12.74 MB / 0.5868 GB, free: 12.29 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008453/0.6372, allocations: 1.755 MB / 0.5885 GB, free: 10.53 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.09141/0.7286, allocations: 69.88 MB / 0.6567 GB, free: 4.555 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06614/0.7948, allocations: 39.57 MB / 0.6954 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01024/0.8051, allocations: 3.819 MB / 0.6991 GB, free: 9.012 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01152/0.8167, allocations: 5.962 MB / 0.7049 GB, free: 3.031 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.002761/0.8195, allocations: 0.5195 MB / 0.7054 GB, free: 2.512 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005695/0.8252, allocations: 1.674 MB / 0.7071 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.3374/1.163, allocations: 6.329 MB / 0.7132 GB, free: 84.56 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.009958/1.173, allocations: 3.182 MB / 0.7164 GB, free: 84.53 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.03536/1.208, allocations: 27.33 MB / 0.743 GB, free: 79.95 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 1.184e-05/1.208, allocations: 1.219 kB / 0.743 GB, free: 79.95 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.657e-06/1.208, allocations: 2.531 kB / 0.7431 GB, free: 79.95 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.001671/1.21, allocations: 0 / 0.7431 GB, free: 79.95 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5720 * Number of variables: 5720 Notification: Performance of Generate backend data structure: time 0.052/1.262, allocations: 14.98 MB / 0.7577 GB, free: 71.58 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.442e-05/1.262, allocations: 7.938 kB / 0.7577 GB, free: 71.58 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01524/1.277, allocations: 2.874 MB / 0.7605 GB, free: 70.87 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1392/1.416, allocations: 14.08 MB / 0.7743 GB, free: 65.93 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0253/1.442, allocations: 9.417 MB / 0.7834 GB, free: 62.92 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001287/1.443, allocations: 1.282 MB / 0.7847 GB, free: 62.2 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008807/1.452, allocations: 1.693 MB / 0.7864 GB, free: 61.07 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1046/1.556, allocations: 39.31 MB / 0.8247 GB, free: 32.46 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001052/1.558, allocations: 95.77 kB / 0.8248 GB, free: 32.41 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008772/1.566, allocations: 0.7399 MB / 0.8256 GB, free: 32.23 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005994/1.572, allocations: 3.853 MB / 0.8293 GB, free: 29.08 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07652/1.649, allocations: 31.89 MB / 0.8605 GB, free: 14.23 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5662/2.215, allocations: 114.5 MB / 0.9723 GB, free: 161.1 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05143/2.267, allocations: 21.77 MB / 0.9935 GB, free: 158.7 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007354/2.274, allocations: 6.686 MB / 1 GB, free: 158.7 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03952/2.314, allocations: 26.47 MB / 1.026 GB, free: 148.1 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.545e-05/2.314, allocations: 66.14 kB / 1.026 GB, free: 148.1 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=336): time 8.376e-06/2.314, allocations: 7.594 kB / 1.026 GB, free: 148.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=450): time 1.23/3.544, allocations: 322.9 MB / 1.341 GB, free: 94.69 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.944e-05/3.544, allocations: 282.4 kB / 1.342 GB, free: 94.36 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01814/3.562, allocations: 9.806 MB / 1.351 GB, free: 84.61 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.00249/3.565, allocations: 95.03 kB / 1.351 GB, free: 84.51 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.007547/3.572, allocations: 10.41 MB / 1.361 GB, free: 74.11 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.00397/3.576, allocations: 1.764 MB / 1.363 GB, free: 72.36 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003148/3.579, allocations: 321.3 kB / 1.363 GB, free: 72.05 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.001068/3.58, allocations: 0.9919 MB / 1.364 GB, free: 71.05 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02096/3.601, allocations: 15.69 MB / 1.38 GB, free: 55.34 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3458/3.947, allocations: 25.85 MB / 1.405 GB, free: 193.4 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03215/3.98, allocations: 19.55 MB / 1.424 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0006199/3.98, allocations: 107.3 kB / 1.424 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2096) (initialization): time 0.06649/4.047, allocations: 41.26 MB / 1.464 GB, free: 171.2 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003608/4.047, allocations: 162.3 kB / 1.465 GB, free: 171.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006344/4.048, allocations: 359.7 kB / 1.465 GB, free: 171.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002137/4.05, allocations: 0.9882 MB / 1.466 GB, free: 171.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02015/4.07, allocations: 5.004 MB / 1.471 GB, free: 167.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006483/4.077, allocations: 6.368 MB / 1.477 GB, free: 161.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01941/4.096, allocations: 2.066 MB / 1.479 GB, free: 160.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004909/4.101, allocations: 0.9754 MB / 1.48 GB, free: 159.3 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1640 * Number of states: 0 () * Number of discrete variables: 58 (relativeSensor.arrow.arrowLine.twoHeadedArrow,relativeSensor.arrow.headAtOrigin,relative_b1.arrow.arrowLine.twoHeadedArrow,relative_b1.arrow.headAtOrigin,relative_b2.arrow.arrowLine.twoHeadedArrow,relative_b2.arrow.headAtOrigin,relative_a2.arrow.arrowLine.twoHeadedArrow,relative_a2.arrow.headAtOrigin,relative_a1.arrow.arrowLine.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 (2040): * Single equations (assignments): 2030 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02218/4.123, allocations: 7.589 MB / 1.487 GB, free: 152.6 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002764/4.126, allocations: 0.8295 MB / 1.488 GB, free: 152.2 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03938/4.165, allocations: 29.94 MB / 1.517 GB, free: 126.2 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001309/4.166, allocations: 91.69 kB / 1.517 GB, free: 126.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.545e-05/4.166, allocations: 4 kB / 1.517 GB, free: 126.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.951e-05/4.166, allocations: 23.03 kB / 1.518 GB, free: 126.1 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09374/4.259, allocations: 71.62 MB / 1.587 GB, free: 53.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-05/4.259, allocations: 0 / 1.587 GB, free: 53.68 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01063/4.27, allocations: 1.981 MB / 1.589 GB, free: 51.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001256/4.271, allocations: 453.2 kB / 1.59 GB, free: 51.25 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001662/4.273, allocations: 77.23 kB / 1.59 GB, free: 51.17 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004443/4.277, allocations: 5.039 MB / 1.595 GB, free: 45.91 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/4.278, allocations: 3.938 kB / 1.595 GB, free: 45.91 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3582/4.636, allocations: 50.14 MB / 1.644 GB, free: 184.8 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002302/4.638, allocations: 0.7993 MB / 1.645 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00324/4.641, allocations: 67.66 kB / 1.645 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009577/4.651, allocations: 1.574 MB / 1.646 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001803/4.653, allocations: 237.1 kB / 1.646 GB, free: 184.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008909/4.654, allocations: 114.5 kB / 1.647 GB, free: 184.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.01096/4.665, allocations: 6.065 MB / 1.652 GB, free: 182.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 4.71e-07/4.665, allocations: 0 / 1.652 GB, free: 182.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01924/4.684, allocations: 4.155 MB / 1.656 GB, free: 182.1 MB / 0.6075 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0613/4.745, allocations: 50.97 MB / 1.706 GB, free: 148.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.04609/4.791, allocations: 34.56 MB / 1.74 GB, free: 117.4 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/4.791, allocations: 0.625 kB / 1.74 GB, free: 117.4 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01835/4.81, allocations: 14.82 MB / 1.754 GB, free: 104.1 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01225/4.822, allocations: 1.412 MB / 1.756 GB, free: 102.9 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5609/5.383, allocations: 168.7 MB / 1.921 GB, free: 176.8 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02547/5.408, allocations: 10.64 MB / 1.931 GB, free: 168.8 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.02175/5.43, allocations: 7.135 MB / 1.938 GB, free: 163.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.017/5.447, allocations: 7.429 MB / 1.945 GB, free: 155.7 MB / 0.6075 GB Notification: Performance of SimCode: time 1.232e-06/5.447, allocations: 0 / 1.945 GB, free: 155.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6547/6.102, allocations: 264.5 MB / 2.203 GB, free: 102.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001823/6.102, allocations: 221.2 kB / 2.204 GB, free: 102.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.167/14.27, allocations: 0 / 2.204 GB, free: 102.5 MB / 0.6075 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat