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.00154/0.00154, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.175/2.175, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001116/0.001116, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2959/0.2959, allocations: 43.5 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.731e-05/3.755e-05, allocations: 7.984 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1228, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5776/0.7004, allocations: 111.9 MB / 0.5822 GB, free: 7.582 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002472/0.7007, allocations: 82.48 kB / 0.5823 GB, free: 7.543 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.263/1.963, allocations: 249.8 MB / 0.8262 GB, free: 67.49 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.134e-06/1.963, allocations: 0 / 0.8262 GB, free: 67.49 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0007781/1.964, allocations: 371.9 kB / 0.8266 GB, free: 67.12 MB / 0.4948 GB 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.06069/2.025, allocations: 15.63 MB / 0.8418 GB, free: 51.42 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/2.025, allocations: 8.031 kB / 0.8418 GB, free: 51.41 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01389/2.039, allocations: 3.063 MB / 0.8448 GB, free: 48.37 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05777/2.097, allocations: 8.298 MB / 0.8529 GB, free: 40.04 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04182/2.138, allocations: 12.43 MB / 0.8651 GB, free: 27.52 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001544/2.14, allocations: 1.493 MB / 0.8665 GB, free: 26.03 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008969/2.149, allocations: 1.968 MB / 0.8685 GB, free: 24.06 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.9452/3.094, allocations: 42.3 MB / 0.9098 GB, free: 65.23 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001681/3.096, allocations: 150 kB / 0.9099 GB, free: 65.23 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00905/3.105, allocations: 0.8837 MB / 0.9108 GB, free: 65.23 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005556/3.111, allocations: 2.393 MB / 0.9131 GB, free: 65.2 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1198/3.231, allocations: 33.57 MB / 0.9459 GB, free: 65.05 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2645/3.495, allocations: 146.8 MB / 1.089 GB, free: 0.9531 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1317/3.627, allocations: 23.5 MB / 1.112 GB, free: 4.727 MB / 0.5574 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4419/4.069, allocations: 6.724 MB / 1.119 GB, free: 131.4 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07163/4.141, allocations: 27.34 MB / 1.145 GB, free: 127.2 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.238e-05/4.141, allocations: 74.95 kB / 1.146 GB, free: 127.1 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=372): time 8.506e-06/4.141, allocations: 0 / 1.146 GB, free: 127.1 MB / 0.5574 GB Notification: Performance of matching and sorting (n=486): time 2.057/6.197, allocations: 280.7 MB / 1.42 GB, free: 106.2 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/6.198, allocations: 284.9 kB / 1.42 GB, free: 105.9 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02403/6.222, allocations: 8.975 MB / 1.429 GB, free: 102.5 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.002653/6.224, allocations: 100.5 kB / 1.429 GB, free: 102.4 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.008378/6.233, allocations: 10.59 MB / 1.439 GB, free: 94.24 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.004416/6.237, allocations: 1.894 MB / 1.441 GB, free: 92.89 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004221/6.242, allocations: 342.2 kB / 1.441 GB, free: 92.62 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.00168/6.243, allocations: 1.032 MB / 1.442 GB, free: 92 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03364/6.277, allocations: 15.7 MB / 1.458 GB, free: 78.85 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04142/6.318, allocations: 26.29 MB / 1.483 GB, free: 49.38 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04135/6.36, allocations: 19.84 MB / 1.503 GB, free: 30.23 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003961/6.36, allocations: 108 kB / 1.503 GB, free: 30.12 MB / 0.5574 GB Notification: Performance of matching and sorting (n=2209) (initialization): time 0.5484/6.909, allocations: 41.42 MB / 1.543 GB, free: 96.64 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003371/6.909, allocations: 167.3 kB / 1.543 GB, free: 96.64 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008414/6.91, allocations: 376.5 kB / 1.544 GB, free: 96.64 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003297/6.913, allocations: 0.8656 MB / 1.545 GB, free: 96.62 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04112/6.954, allocations: 5.298 MB / 1.55 GB, free: 96.62 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008952/6.963, allocations: 5.661 MB / 1.555 GB, free: 93.98 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0307/6.994, allocations: 2.146 MB / 1.557 GB, free: 93.98 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005339/7, allocations: 1.031 MB / 1.558 GB, free: 93.98 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1717 * 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 (2153): * Single equations (assignments): 2143 * 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.009384/7.009, allocations: 1.4 MB / 1.56 GB, free: 93.66 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004465/7.013, allocations: 0.8734 MB / 1.561 GB, free: 93.66 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07482/7.088, allocations: 29.98 MB / 1.59 GB, free: 88.42 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002113/7.089, allocations: 88.16 kB / 1.59 GB, free: 88.41 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-05/7.089, allocations: 3.812 kB / 1.59 GB, free: 88.41 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001346/7.089, allocations: 27.77 kB / 1.59 GB, free: 88.41 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1639/7.253, allocations: 72.14 MB / 1.661 GB, free: 47.84 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.808e-05/7.253, allocations: 4 kB / 1.661 GB, free: 47.83 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02379/7.277, allocations: 2.114 MB / 1.663 GB, free: 46.54 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001707/7.278, allocations: 317 kB / 1.663 GB, free: 46.3 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002623/7.281, allocations: 90.64 kB / 1.663 GB, free: 46.22 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006599/7.288, allocations: 4.297 MB / 1.667 GB, free: 42.06 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/7.288, allocations: 0 / 1.667 GB, free: 42.06 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.125/7.413, allocations: 51.42 MB / 1.717 GB, free: 15.82 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01583/7.429, allocations: 3.962 MB / 1.721 GB, free: 12.67 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005205/7.434, allocations: 77.8 kB / 1.721 GB, free: 12.6 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02121/7.455, allocations: 1.626 MB / 1.723 GB, free: 11.73 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003704/7.459, allocations: 260.5 kB / 1.723 GB, free: 11.57 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002383/7.461, allocations: 131.6 kB / 1.723 GB, free: 11.45 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01978/7.481, allocations: 6.181 MB / 1.729 GB, free: 6 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.182e-06/7.481, allocations: 0 / 1.729 GB, free: 6 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02796/7.509, allocations: 4.282 MB / 1.734 GB, free: 1.734 MB / 0.573 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (444): * Single equations (assignments): 434 * 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.5936/8.103, allocations: 51.87 MB / 1.784 GB, free: 130.6 MB / 0.5887 GB Notification: Performance of simCode: created initialization part: time 0.07434/8.177, allocations: 34.78 MB / 1.818 GB, free: 116.7 MB / 0.5887 GB Notification: Performance of simCode: created event and clocks part: time 1.465e-05/8.177, allocations: 0.625 kB / 1.818 GB, free: 116.7 MB / 0.5887 GB Notification: Performance of simCode: created simulation system equations: time 0.03084/8.208, allocations: 14.83 MB / 1.833 GB, free: 109.8 MB / 0.5887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01161/8.22, allocations: 1.333 MB / 1.834 GB, free: 109.3 MB / 0.5887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1542/8.374, allocations: 49.72 MB / 1.882 GB, free: 72.89 MB / 0.5887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03591/8.41, allocations: 11.37 MB / 1.894 GB, free: 64.63 MB / 0.5887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03116/8.441, allocations: 7.819 MB / 1.901 GB, free: 57.34 MB / 0.5887 GB Notification: Performance of SimCode: time 1.763e-06/8.441, allocations: 0 / 1.901 GB, free: 57.34 MB / 0.5887 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.653/18.09, allocations: 488 MB / 2.378 GB, free: 23.8 MB / 0.6199 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