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.001083/0.001083, allocations: 98.03 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001268/0.001268, allocations: 201.1 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.198/0.198, allocations: 45.91 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003372/0.0003373, allocations: 8 kB / 418.1 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1317, allocations: 63.46 MB / 481.5 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.3354/0.4672, allocations: 78.21 MB / 0.5466 GB, free: 15.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.05534/0.5226, allocations: 19.33 MB / 0.5655 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02451/0.5471, allocations: 426 kB / 0.5659 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01791/0.5651, allocations: 4.205 MB / 0.57 GB, free: 12.67 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04102/0.6061, allocations: 10.44 MB / 0.5802 GB, free: 2.203 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01003/0.6162, allocations: 1.834 MB / 0.582 GB, free: 376 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.07804/0.6943, allocations: 50.93 MB / 0.6317 GB, free: 13.39 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05994/0.7543, allocations: 39.27 MB / 0.6701 GB, free: 5.984 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007361/0.7617, allocations: 2.905 MB / 0.6729 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007295/0.769, allocations: 3.605 MB / 0.6764 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.002671/0.7717, allocations: 0.5195 MB / 0.6769 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005679/0.7775, allocations: 1.651 MB / 0.6786 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.008085/0.7856, allocations: 5.846 MB / 0.6843 GB, free: 7.422 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.005889/0.7915, allocations: 3.184 MB / 0.6874 GB, free: 4.223 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.6823/1.474, allocations: 27.31 MB / 0.714 GB, free: 81.3 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/1.474, allocations: 2.188 kB / 0.714 GB, free: 81.3 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.938e-06/1.474, allocations: 0.7812 kB / 0.714 GB, free: 81.3 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.001644/1.476, allocations: 0.5625 kB / 0.714 GB, free: 81.3 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.05283/1.528, allocations: 15.62 MB / 0.7293 GB, free: 75.86 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/1.528, allocations: 12.78 kB / 0.7293 GB, free: 75.85 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01279/1.541, allocations: 2.864 MB / 0.7321 GB, free: 75.67 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1632/1.705, allocations: 15.99 MB / 0.7477 GB, free: 70.89 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02859/1.733, allocations: 9.213 MB / 0.7567 GB, free: 68.58 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001383/1.735, allocations: 1.284 MB / 0.758 GB, free: 68.55 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008927/1.743, allocations: 1.699 MB / 0.7596 GB, free: 68.5 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1006/1.844, allocations: 39.6 MB / 0.7983 GB, free: 39.68 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009282/1.845, allocations: 94.5 kB / 0.7984 GB, free: 39.63 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008494/1.854, allocations: 0.7394 MB / 0.7991 GB, free: 39.45 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005792/1.859, allocations: 3.853 MB / 0.8029 GB, free: 36.3 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08083/1.94, allocations: 32.32 MB / 0.8345 GB, free: 9.621 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1915/2.132, allocations: 114.8 MB / 0.9465 GB, free: 6.82 MB / 0.6388 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3989/2.531, allocations: 21.89 MB / 0.9679 GB, free: 256.3 MB / 0.6388 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04219/2.573, allocations: 26.65 MB / 0.9939 GB, free: 244.1 MB / 0.6388 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.985e-05/2.573, allocations: 69.98 kB / 0.994 GB, free: 244 MB / 0.6388 GB Notification: Performance of pre-optimization done (n=336): time 6.782e-06/2.573, allocations: 0 / 0.994 GB, free: 244 MB / 0.6388 GB Notification: Performance of matching and sorting (n=450): time 1.277/3.85, allocations: 325.3 MB / 1.312 GB, free: 194.9 MB / 0.6388 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/3.85, allocations: 280.8 kB / 1.312 GB, free: 194.6 MB / 0.6388 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01367/3.864, allocations: 10.06 MB / 1.322 GB, free: 184.6 MB / 0.6388 GB Notification: Performance of collectPreVariables (initialization): time 0.002216/3.866, allocations: 95.89 kB / 1.322 GB, free: 184.5 MB / 0.6388 GB Notification: Performance of collectInitialEqns (initialization): time 0.005936/3.872, allocations: 10.41 MB / 1.332 GB, free: 174.1 MB / 0.6388 GB Notification: Performance of collectInitialBindings (initialization): time 0.003909/3.876, allocations: 1.756 MB / 1.334 GB, free: 172.4 MB / 0.6388 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001873/3.878, allocations: 334 kB / 1.334 GB, free: 172 MB / 0.6388 GB Notification: Performance of setup shared object (initialization): time 0.0007096/3.879, allocations: 0.9919 MB / 1.335 GB, free: 171 MB / 0.6388 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01824/3.897, allocations: 15.69 MB / 1.35 GB, free: 155.3 MB / 0.6388 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02285/3.92, allocations: 25.8 MB / 1.376 GB, free: 124.5 MB / 0.6388 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02363/3.943, allocations: 19.54 MB / 1.395 GB, free: 105 MB / 0.6388 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002806/3.944, allocations: 104 kB / 1.395 GB, free: 104.9 MB / 0.6388 GB Notification: Performance of matching and sorting (n=2096) (initialization): time 0.06119/4.005, allocations: 41.27 MB / 1.435 GB, free: 63.57 MB / 0.6388 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002601/4.005, allocations: 160 kB / 1.435 GB, free: 63.41 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005493/4.006, allocations: 356 kB / 1.436 GB, free: 63.07 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001836/4.008, allocations: 0.9887 MB / 1.437 GB, free: 62.07 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02114/4.029, allocations: 5.006 MB / 1.441 GB, free: 57.06 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006411/4.035, allocations: 6.477 MB / 1.448 GB, free: 50.32 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02104/4.056, allocations: 2.072 MB / 1.45 GB, free: 48.25 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005016/4.061, allocations: 0.9657 MB / 1.451 GB, free: 47.28 MB / 0.6388 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.01648/4.078, allocations: 7.586 MB / 1.458 GB, free: 39.68 MB / 0.6388 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002137/4.08, allocations: 0.829 MB / 1.459 GB, free: 38.84 MB / 0.6388 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3536/4.434, allocations: 29.94 MB / 1.488 GB, free: 218.2 MB / 0.6388 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001286/4.434, allocations: 95.42 kB / 1.488 GB, free: 218.2 MB / 0.6388 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.745e-05/4.434, allocations: 7.531 kB / 1.488 GB, free: 218.2 MB / 0.6388 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-05/4.434, allocations: 17.72 kB / 1.488 GB, free: 218.2 MB / 0.6388 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09544/4.529, allocations: 71.65 MB / 1.558 GB, free: 176 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.468e-05/4.529, allocations: 0 / 1.558 GB, free: 176 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01158/4.541, allocations: 1.966 MB / 1.56 GB, free: 174.8 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001359/4.542, allocations: 462.2 kB / 1.561 GB, free: 174.5 MB / 0.6388 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002284/4.545, allocations: 71.8 kB / 1.561 GB, free: 174.5 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004807/4.549, allocations: 5.153 MB / 1.566 GB, free: 169.6 MB / 0.6388 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/4.55, allocations: 0 / 1.566 GB, free: 169.6 MB / 0.6388 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05444/4.604, allocations: 50.3 MB / 1.615 GB, free: 122.5 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002849/4.607, allocations: 0.8121 MB / 1.616 GB, free: 122.2 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00443/4.611, allocations: 73.23 kB / 1.616 GB, free: 122.1 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01289/4.624, allocations: 1.579 MB / 1.617 GB, free: 120.5 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003014/4.627, allocations: 231.4 kB / 1.617 GB, free: 120.3 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002057/4.629, allocations: 113.3 kB / 1.618 GB, free: 120.2 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.01237/4.642, allocations: 6.262 MB / 1.624 GB, free: 114 MB / 0.6388 GB Notification: Performance of sort global known variables: time 1.142e-06/4.642, allocations: 0 / 1.624 GB, free: 114 MB / 0.6388 GB Notification: Performance of remove unused functions: time 0.02067/4.662, allocations: 4.171 MB / 1.628 GB, free: 109.8 MB / 0.6388 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.05813/4.721, allocations: 51.23 MB / 1.678 GB, free: 59.05 MB / 0.6388 GB Notification: Performance of simCode: created initialization part: time 0.04159/4.762, allocations: 34.55 MB / 1.712 GB, free: 24.99 MB / 0.6388 GB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/4.762, allocations: 8.625 kB / 1.712 GB, free: 24.98 MB / 0.6388 GB Notification: Performance of simCode: created simulation system equations: time 0.2846/5.047, allocations: 14.82 MB / 1.726 GB, free: 241.3 MB / 0.6388 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009647/5.057, allocations: 1.338 MB / 1.727 GB, free: 240.8 MB / 0.6388 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6061/5.663, allocations: 416.2 MB / 2.134 GB, free: 98.68 MB / 0.6388 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02171/5.685, allocations: 10.95 MB / 2.144 GB, free: 90.49 MB / 0.6388 GB Notification: Performance of simCode: alias equations: time 0.02195/5.706, allocations: 7.144 MB / 2.151 GB, free: 83.64 MB / 0.6388 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01814/5.725, allocations: 7.438 MB / 2.159 GB, free: 76.2 MB / 0.6388 GB Notification: Performance of SimCode: time 8.21e-07/5.725, allocations: 0 / 2.159 GB, free: 76.2 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.032/6.757, allocations: 265.2 MB / 2.418 GB, free: 157 MB / 0.6388 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/6.757, allocations: 214.3 kB / 2.418 GB, free: 156.8 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.155/14.91, allocations: 3.5 kB / 2.418 GB, free: 156.8 MB / 0.6388 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