Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002058/0.002058, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.05/2.05, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001894/0.001894, allocations: 99.34 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.468/0.468, allocations: 43.48 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.797e-05/2.811e-05, allocations: 4.203 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4143/0.4143, allocations: 58.85 MB / 477.2 MB, free: 5.281 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2101/0.6245, allocations: 111.3 MB / 0.5746 GB, free: 4 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003072/0.6249, allocations: 83.89 kB / 0.5747 GB, free: 3.918 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.192/1.816, allocations: 240.7 MB / 0.8097 GB, free: 13.21 MB / 491.1 MB Notification: Performance of FrontEnd: time 2.855e-06/1.817, allocations: 0 / 0.8097 GB, free: 13.21 MB / 491.1 MB Notification: Performance of Transformations before backend: time 0.002043/1.819, allocations: 379.8 kB / 0.8101 GB, free: 12.84 MB / 491.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5965 * Number of variables: 5965 Notification: Performance of Generate backend data structure: time 0.881/2.7, allocations: 15.63 MB / 0.8254 GB, free: 29.22 MB / 491.2 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/2.7, allocations: 7.312 kB / 0.8254 GB, free: 29.22 MB / 491.2 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06307/2.763, allocations: 8.292 MB / 0.8335 GB, free: 28.19 MB / 491.2 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05053/2.813, allocations: 12.42 MB / 0.8456 GB, free: 27.71 MB / 491.2 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001445/2.815, allocations: 0.6435 MB / 0.8462 GB, free: 27.71 MB / 491.2 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008698/2.824, allocations: 1.162 MB / 0.8474 GB, free: 27.7 MB / 491.2 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06571/2.889, allocations: 22.94 MB / 0.8698 GB, free: 27.61 MB / 491.2 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1019/2.991, allocations: 33.58 MB / 0.9026 GB, free: 19.35 MB / 491.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001326/2.993, allocations: 145.3 kB / 0.9027 GB, free: 19.34 MB / 491.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007851/3.001, allocations: 72.81 kB / 0.9028 GB, free: 19.34 MB / 491.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005017/3.006, allocations: 2.387 MB / 0.9051 GB, free: 18.94 MB / 491.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.272/4.278, allocations: 141.5 MB / 1.043 GB, free: 41.23 MB / 0.5579 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01872/4.297, allocations: 9.916 MB / 1.053 GB, free: 38.88 MB / 0.5579 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.013/4.31, allocations: 6.61 MB / 1.059 GB, free: 38.83 MB / 0.5579 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003961/4.314, allocations: 2.571 MB / 1.062 GB, free: 36.83 MB / 0.5579 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.011e-05/4.314, allocations: 82.88 kB / 1.062 GB, free: 36.79 MB / 0.5579 GB Notification: Performance of pre-optimization done (n=409): time 9.298e-06/4.314, allocations: 0 / 1.062 GB, free: 36.79 MB / 0.5579 GB Notification: Performance of matching and sorting (n=523): time 1.566/5.88, allocations: 233.6 MB / 1.29 GB, free: 194.6 MB / 0.6516 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/5.88, allocations: 289.2 kB / 1.29 GB, free: 194.3 MB / 0.6516 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02433/5.905, allocations: 7.869 MB / 1.298 GB, free: 193.8 MB / 0.6516 GB Notification: Performance of collectPreVariables (initialization): time 0.002714/5.907, allocations: 27.8 kB / 1.298 GB, free: 193.7 MB / 0.6516 GB Notification: Performance of collectInitialEqns (initialization): time 0.01014/5.918, allocations: 10.69 MB / 1.309 GB, free: 188.4 MB / 0.6516 GB Notification: Performance of collectInitialBindings (initialization): time 0.00499/5.923, allocations: 1.955 MB / 1.311 GB, free: 187.2 MB / 0.6516 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004307/5.927, allocations: 0.8125 kB / 1.311 GB, free: 187.2 MB / 0.6516 GB Notification: Performance of setup shared object (initialization): time 0.002257/5.929, allocations: 1.058 MB / 1.312 GB, free: 186.9 MB / 0.6516 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0326/5.962, allocations: 15.52 MB / 1.327 GB, free: 186.8 MB / 0.6516 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03941/6.001, allocations: 26.22 MB / 1.352 GB, free: 172.9 MB / 0.6516 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03963/6.041, allocations: 19.65 MB / 1.371 GB, free: 165.8 MB / 0.6516 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005813/6.042, allocations: 110.2 kB / 1.372 GB, free: 165.8 MB / 0.6516 GB Notification: Performance of matching and sorting (n=2276) (initialization): time 0.09651/6.138, allocations: 39.54 MB / 1.41 GB, free: 150.6 MB / 0.6516 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003217/6.138, allocations: 168.1 kB / 1.41 GB, free: 150.6 MB / 0.6516 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006412/6.139, allocations: 387.2 kB / 1.411 GB, free: 150.6 MB / 0.6516 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002904/6.142, allocations: 0.9191 MB / 1.412 GB, free: 150.5 MB / 0.6516 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04002/6.182, allocations: 5.398 MB / 1.417 GB, free: 150 MB / 0.6516 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00916/6.191, allocations: 5.983 MB / 1.423 GB, free: 146.1 MB / 0.6516 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03097/6.222, allocations: 1.835 MB / 1.425 GB, free: 146 MB / 0.6516 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005666/6.228, allocations: 1.048 MB / 1.426 GB, free: 145.9 MB / 0.6516 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1751 * Number of states: 0 () * Number of discrete variables: 48 (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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2214): * Single equations (assignments): 2204 * 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%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009748/6.238, allocations: 1.011 MB / 1.427 GB, free: 145.1 MB / 0.6516 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.06156/6.299, allocations: 27.59 MB / 1.454 GB, free: 123.8 MB / 0.6516 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004604/6.304, allocations: 0.833 MB / 1.454 GB, free: 122.9 MB / 0.6516 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06889/6.373, allocations: 30.2 MB / 1.484 GB, free: 96.79 MB / 0.6516 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002111/6.373, allocations: 103.7 kB / 1.484 GB, free: 96.7 MB / 0.6516 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.907e-05/6.373, allocations: 4 kB / 1.484 GB, free: 96.69 MB / 0.6516 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001272/6.373, allocations: 23.53 kB / 1.484 GB, free: 96.69 MB / 0.6516 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6182/6.992, allocations: 70.4 MB / 1.553 GB, free: 177.9 MB / 0.6516 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.026e-05/6.992, allocations: 5.219 kB / 1.553 GB, free: 177.9 MB / 0.6516 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02452/7.016, allocations: 2.166 MB / 1.555 GB, free: 177.9 MB / 0.6516 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001803/7.018, allocations: 318.5 kB / 1.555 GB, free: 177.9 MB / 0.6516 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002379/7.02, allocations: 21.42 kB / 1.555 GB, free: 177.9 MB / 0.6516 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006638/7.027, allocations: 4.107 MB / 1.559 GB, free: 175.5 MB / 0.6516 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.158e-06/7.027, allocations: 3.844 kB / 1.559 GB, free: 175.5 MB / 0.6516 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09829/7.125, allocations: 50.87 MB / 1.609 GB, free: 167.7 MB / 0.6516 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01465/7.14, allocations: 3.908 MB / 1.613 GB, free: 166.2 MB / 0.6516 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004947/7.145, allocations: 6.156 kB / 1.613 GB, free: 166.2 MB / 0.6516 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02083/7.166, allocations: 1.562 MB / 1.614 GB, free: 166.2 MB / 0.6516 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00346/7.17, allocations: 288.1 kB / 1.614 GB, free: 166.2 MB / 0.6516 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00252/7.172, allocations: 135.5 kB / 1.615 GB, free: 166.1 MB / 0.6516 GB Notification: Performance of sorting global known variables: time 0.0145/7.187, allocations: 5.218 MB / 1.62 GB, free: 164.2 MB / 0.6516 GB Notification: Performance of sort global known variables: time 6.32e-07/7.187, allocations: 0 / 1.62 GB, free: 164.2 MB / 0.6516 GB Notification: Performance of remove unused functions: time 0.0268/7.213, allocations: 3.892 MB / 1.623 GB, free: 164.2 MB / 0.6516 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (479): * Single equations (assignments): 469 * 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.1034/7.317, allocations: 51.96 MB / 1.674 GB, free: 140.5 MB / 0.6516 GB Notification: Performance of simCode: created initialization part: time 0.06561/7.383, allocations: 34.25 MB / 1.708 GB, free: 110.6 MB / 0.6516 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-05/7.383, allocations: 4.625 kB / 1.708 GB, free: 110.6 MB / 0.6516 GB Notification: Performance of simCode: created simulation system equations: time 0.02778/7.41, allocations: 14.86 MB / 1.722 GB, free: 96.96 MB / 0.6516 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01145/7.422, allocations: 1.152 MB / 1.723 GB, free: 96.05 MB / 0.6516 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.144/7.566, allocations: 49.28 MB / 1.771 GB, free: 52.96 MB / 0.6516 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5039/8.07, allocations: 11.45 MB / 1.783 GB, free: 182.5 MB / 0.6516 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03175/8.102, allocations: 8.011 MB / 1.79 GB, free: 182.5 MB / 0.6516 GB Notification: Performance of SimCode: time 1.463e-06/8.102, allocations: 0.875 kB / 1.79 GB, free: 182.5 MB / 0.6516 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.786/17.89, allocations: 482.5 MB / 2.262 GB, free: 129.5 MB / 0.6516 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat