Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_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.001067/0.001068, allocations: 184.8 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.587/1.587, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009118/0.0009115, allocations: 82.83 kB / 270.2 MB, free: 13.37 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.2212/0.2212, allocations: 43.57 MB / 362.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003276/0.0003276, allocations: 11.98 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1307, allocations: 58.85 MB / 490.3 MB, free: 8.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4763/0.6071, allocations: 112 MB / 0.5882 GB, free: 3.992 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/0.6074, allocations: 84.08 kB / 0.5883 GB, free: 3.949 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8929/1.5, allocations: 249.5 MB / 0.8319 GB, free: 64.45 MB / 0.4948 GB Notification: Performance of FrontEnd: time 4.057e-06/1.5, allocations: 0 / 0.8319 GB, free: 64.45 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.001586/1.502, allocations: 375.9 kB / 0.8323 GB, free: 64.09 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.06091/1.563, allocations: 16.16 MB / 0.8481 GB, free: 47.82 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.081e-05/1.563, allocations: 15.97 kB / 0.8481 GB, free: 47.8 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01734/1.58, allocations: 3.066 MB / 0.8511 GB, free: 44.73 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03366/1.614, allocations: 8.29 MB / 0.8592 GB, free: 36.4 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03817/1.652, allocations: 12.47 MB / 0.8714 GB, free: 23.84 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001532/1.654, allocations: 1.501 MB / 0.8728 GB, free: 22.33 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00948/1.663, allocations: 1.964 MB / 0.8747 GB, free: 20.37 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7222/2.386, allocations: 42.66 MB / 0.9164 GB, free: 64.83 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000909/2.387, allocations: 148 kB / 0.9165 GB, free: 64.83 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006747/2.393, allocations: 0.886 MB / 0.9174 GB, free: 64.83 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004132/2.398, allocations: 2.385 MB / 0.9197 GB, free: 64.79 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07733/2.475, allocations: 34.04 MB / 0.953 GB, free: 64.64 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1961/2.671, allocations: 146.8 MB / 1.096 GB, free: 0.5703 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05673/2.728, allocations: 22.52 MB / 1.118 GB, free: 2.977 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3749/3.103, allocations: 27.32 MB / 1.145 GB, free: 128.9 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001092/3.103, allocations: 80.8 kB / 1.145 GB, free: 128.9 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=372): time 1.485e-05/3.103, allocations: 1.375 kB / 1.145 GB, free: 128.9 MB / 0.5574 GB Notification: Performance of matching and sorting (n=486): time 1.237/4.34, allocations: 299.7 MB / 1.438 GB, free: 104.5 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.528e-05/4.34, allocations: 286.5 kB / 1.438 GB, free: 104.2 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01647/4.356, allocations: 9.053 MB / 1.447 GB, free: 96.02 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.002364/4.359, allocations: 105.5 kB / 1.447 GB, free: 95.91 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.006872/4.365, allocations: 10.83 MB / 1.458 GB, free: 85.09 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.003233/4.369, allocations: 1.895 MB / 1.459 GB, free: 83.21 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003258/4.372, allocations: 340 kB / 1.46 GB, free: 82.88 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.002072/4.374, allocations: 1.025 MB / 1.461 GB, free: 81.84 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02221/4.396, allocations: 15.92 MB / 1.476 GB, free: 65.91 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02853/4.425, allocations: 26.52 MB / 1.502 GB, free: 34.6 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02638/4.451, allocations: 19.95 MB / 1.522 GB, free: 15.16 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005072/4.452, allocations: 108 kB / 1.522 GB, free: 15.06 MB / 0.5574 GB Notification: Performance of matching and sorting (n=2209) (initialization): time 0.4713/4.923, allocations: 42.11 MB / 1.563 GB, free: 100.7 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002469/4.924, allocations: 167.2 kB / 1.563 GB, free: 100.7 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000577/4.924, allocations: 377.6 kB / 1.563 GB, free: 100.7 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001696/4.926, allocations: 0.8685 MB / 1.564 GB, free: 100.7 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02094/4.947, allocations: 5.293 MB / 1.569 GB, free: 100.3 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005808/4.953, allocations: 5.766 MB / 1.575 GB, free: 97.47 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02092/4.974, allocations: 2.151 MB / 1.577 GB, free: 97.47 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005107/4.979, allocations: 1.023 MB / 1.578 GB, free: 97.47 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 () * Number of clocked 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.02122/5, allocations: 7.843 MB / 1.586 GB, free: 96.39 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002828/5.003, allocations: 0.8725 MB / 1.587 GB, free: 96.39 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04426/5.047, allocations: 30.27 MB / 1.616 GB, free: 82.41 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001476/5.047, allocations: 91.06 kB / 1.616 GB, free: 82.4 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.731e-05/5.047, allocations: 7.781 kB / 1.616 GB, free: 82.4 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001182/5.048, allocations: 19.55 kB / 1.616 GB, free: 82.4 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1076/5.155, allocations: 72.44 MB / 1.687 GB, free: 29.24 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.926e-05/5.155, allocations: 4 kB / 1.687 GB, free: 29.23 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0122/5.167, allocations: 2.117 MB / 1.689 GB, free: 27.92 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001049/5.169, allocations: 319 kB / 1.689 GB, free: 27.69 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00196/5.171, allocations: 80.16 kB / 1.689 GB, free: 27.61 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003734/5.174, allocations: 4.396 MB / 1.694 GB, free: 23.38 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/5.174, allocations: 0 / 1.694 GB, free: 23.38 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4192/5.594, allocations: 52.29 MB / 1.745 GB, free: 115.5 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01225/5.606, allocations: 3.95 MB / 1.749 GB, free: 115.4 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005178/5.611, allocations: 73.78 kB / 1.749 GB, free: 115.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01259/5.624, allocations: 1.631 MB / 1.75 GB, free: 115.4 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002835/5.627, allocations: 258.7 kB / 1.751 GB, free: 115.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00144/5.628, allocations: 129.2 kB / 1.751 GB, free: 115.4 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01661/5.645, allocations: 6.263 MB / 1.757 GB, free: 115.1 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.61e-07/5.645, allocations: 2.812 kB / 1.757 GB, free: 115.1 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02392/5.669, allocations: 4.275 MB / 1.761 GB, free: 115.1 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 () * Number of clocked 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.06818/5.737, allocations: 51.71 MB / 1.812 GB, free: 103.4 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.04458/5.782, allocations: 35.15 MB / 1.846 GB, free: 89.43 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/5.782, allocations: 0.625 kB / 1.846 GB, free: 89.43 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01882/5.8, allocations: 14.98 MB / 1.86 GB, free: 81.6 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009337/5.81, allocations: 1.344 MB / 1.862 GB, free: 80.54 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.144/6.954, allocations: 433.4 MB / 2.285 GB, free: 192.2 MB / 0.7137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03193/6.986, allocations: 11.36 MB / 2.296 GB, free: 188.6 MB / 0.7137 GB Notification: Performance of simCode: alias equations: time 0.02811/7.014, allocations: 7.39 MB / 2.303 GB, free: 188.5 MB / 0.7137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02132/7.036, allocations: 7.683 MB / 2.311 GB, free: 181.9 MB / 0.7137 GB Notification: Performance of SimCode: time 1.573e-06/7.036, allocations: 0 / 2.311 GB, free: 181.9 MB / 0.7137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7916/7.827, allocations: 272.9 MB / 2.577 GB, free: 146.4 MB / 0.7137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/7.828, allocations: 201.9 kB / 2.578 GB, free: 146.1 MB / 0.7137 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/18.81, allocations: 2.906 kB / 2.578 GB, free: 146.1 MB / 0.7137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat