Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 183.8 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 223.2 MB / 241 MB, free: 11.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009079/0.000908, allocations: 92.3 kB / 292.1 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3961/0.3961, allocations: 44.21 MB / 387.5 MB, free: 38.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003651/0.0003652, allocations: 8 kB / 460 MB, free: 1.441 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4131/0.4135, allocations: 61.91 MB / 0.5096 GB, free: 38.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1687/0.5823, allocations: 113.3 MB / 0.6203 GB, free: 13.79 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/0.5826, allocations: 87.92 kB / 0.6203 GB, free: 13.71 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8395/1.422, allocations: 241 MB / 0.8557 GB, free: 4.902 MB / 0.4948 GB Notification: Performance of FrontEnd: time 4.879e-06/1.422, allocations: 0 / 0.8557 GB, free: 4.902 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.001666/1.424, allocations: 367.8 kB / 0.856 GB, free: 4.543 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: 5720 * Number of variables: 5720 Notification: Performance of Generate backend data structure: time 0.06467/1.489, allocations: 15.71 MB / 0.8714 GB, free: 4.719 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.974e-05/1.489, allocations: 8.031 kB / 0.8714 GB, free: 4.711 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01896/1.508, allocations: 2.955 MB / 0.8742 GB, free: 1.746 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4926/2, allocations: 8.157 MB / 0.8822 GB, free: 40.8 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03231/2.033, allocations: 11.89 MB / 0.8938 GB, free: 40.41 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001616/2.034, allocations: 1.447 MB / 0.8952 GB, free: 40.37 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009255/2.044, allocations: 1.916 MB / 0.8971 GB, free: 40.36 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1147/2.158, allocations: 41.27 MB / 0.9374 GB, free: 33.92 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001425/2.16, allocations: 151 kB / 0.9376 GB, free: 33.91 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009409/2.169, allocations: 0.8578 MB / 0.9384 GB, free: 33.91 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003325/2.173, allocations: 2.199 MB / 0.9405 GB, free: 33.88 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07542/2.248, allocations: 32.7 MB / 0.9725 GB, free: 27.26 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5973/2.845, allocations: 142.4 MB / 1.112 GB, free: 27.22 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05356/2.899, allocations: 22.15 MB / 1.133 GB, free: 24.84 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0381/2.937, allocations: 26.53 MB / 1.159 GB, free: 20.55 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.7e-05/2.937, allocations: 78.66 kB / 1.159 GB, free: 20.5 MB / 0.573 GB Notification: Performance of pre-optimization done (n=336): time 5.31e-06/2.937, allocations: 0 / 1.159 GB, free: 20.5 MB / 0.573 GB Notification: Performance of matching and sorting (n=450): time 1.189/4.126, allocations: 297.7 MB / 1.45 GB, free: 175 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/4.126, allocations: 280.3 kB / 1.45 GB, free: 174.7 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02031/4.147, allocations: 8.711 MB / 1.459 GB, free: 171.5 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.00284/4.149, allocations: 96.83 kB / 1.459 GB, free: 171.4 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.009807/4.159, allocations: 10.42 MB / 1.469 GB, free: 163.5 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.004051/4.163, allocations: 1.761 MB / 1.471 GB, free: 162.3 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003516/4.167, allocations: 324.8 kB / 1.471 GB, free: 162 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.00195/4.169, allocations: 0.9969 MB / 1.472 GB, free: 161.4 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02164/4.191, allocations: 15.64 MB / 1.487 GB, free: 154.8 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02899/4.22, allocations: 25.77 MB / 1.512 GB, free: 134.6 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02521/4.245, allocations: 19.5 MB / 1.531 GB, free: 119.4 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000355/4.245, allocations: 104 kB / 1.532 GB, free: 119.3 MB / 0.6667 GB Notification: Performance of matching and sorting (n=2100) (initialization): time 0.06634/4.312, allocations: 41.1 MB / 1.572 GB, free: 83.24 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002685/4.312, allocations: 162 kB / 1.572 GB, free: 83.08 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005163/4.312, allocations: 360 kB / 1.572 GB, free: 82.73 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001613/4.314, allocations: 0.8445 MB / 1.573 GB, free: 81.97 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02142/4.335, allocations: 5.073 MB / 1.578 GB, free: 77.64 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005877/4.341, allocations: 5.725 MB / 1.584 GB, free: 71.68 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02149/4.363, allocations: 2.114 MB / 1.586 GB, free: 69.56 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005568/4.368, allocations: 0.9791 MB / 1.587 GB, free: 68.58 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1644 * Number of states: 0 () * Number of discrete variables: 58 (relativeSensor.arrow.arrowLine.twoHeadedArrow,relativeSensor.arrow.headAtOrigin,relativeSensor.arrowColor[3],relativeSensor.arrowColor[2],relativeSensor.arrowColor[1],relative_b1.arrow.arrowLine.twoHeadedArrow,relative_b1.arrow.headAtOrigin,relative_b1.arrowColor[3],relative_b1.arrowColor[2],relative_b1.arrowColor[1],relative_b2.arrow.arrowLine.twoHeadedArrow,relative_b2.arrow.headAtOrigin,relative_b2.arrowColor[3],relative_b2.arrowColor[2],relative_b2.arrowColor[1],relative_a2.arrow.arrowLine.twoHeadedArrow,relative_a2.arrow.headAtOrigin,relative_a2.arrowColor[3],relative_a2.arrowColor[2],relative_a2.arrowColor[1],relative_a1.arrow.arrowLine.twoHeadedArrow,relative_a1.arrow.headAtOrigin,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 (2044): * Single equations (assignments): 2034 * 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.02184/4.39, allocations: 7.575 MB / 1.594 GB, free: 60.99 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004033/4.394, allocations: 0.8407 MB / 1.595 GB, free: 60.14 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4701/4.865, allocations: 29.74 MB / 1.624 GB, free: 166.8 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000144/4.865, allocations: 84.72 kB / 1.624 GB, free: 166.8 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.787e-05/4.865, allocations: 8.625 kB / 1.624 GB, free: 166.8 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.614e-05/4.865, allocations: 22.28 kB / 1.624 GB, free: 166.8 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1157/4.98, allocations: 71.29 MB / 1.694 GB, free: 137.9 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.365e-05/4.981, allocations: 3.938 kB / 1.694 GB, free: 137.9 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01185/4.992, allocations: 2.033 MB / 1.696 GB, free: 137.8 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001147/4.994, allocations: 320.2 kB / 1.696 GB, free: 137.8 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001988/4.996, allocations: 74.88 kB / 1.696 GB, free: 137.7 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004025/5, allocations: 4.388 MB / 1.7 GB, free: 134.5 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/5, allocations: 3.562 kB / 1.7 GB, free: 134.5 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0588/5.059, allocations: 50.04 MB / 1.749 GB, free: 112 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004035/5.063, allocations: 0.796 MB / 1.75 GB, free: 111.9 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005322/5.068, allocations: 73.45 kB / 1.75 GB, free: 111.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01174/5.08, allocations: 1.616 MB / 1.752 GB, free: 111.8 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002378/5.082, allocations: 232.9 kB / 1.752 GB, free: 111.7 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001121/5.083, allocations: 116.2 kB / 1.752 GB, free: 111.7 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.01181/5.095, allocations: 6.021 MB / 1.758 GB, free: 109.7 MB / 0.6667 GB Notification: Performance of sort global known variables: time 9.51e-07/5.095, allocations: 0 / 1.758 GB, free: 109.7 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.02175/5.117, allocations: 4.144 MB / 1.762 GB, free: 109.3 MB / 0.6667 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.05895/5.176, allocations: 50.94 MB / 1.812 GB, free: 65.89 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.3597/5.536, allocations: 36.86 MB / 1.848 GB, free: 176.2 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.376e-05/5.536, allocations: 4 kB / 1.848 GB, free: 176.1 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0192/5.555, allocations: 14.74 MB / 1.862 GB, free: 175.9 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00925/5.564, allocations: 1.336 MB / 1.863 GB, free: 175.8 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7001/6.264, allocations: 415.7 MB / 2.269 GB, free: 14.38 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03462/6.299, allocations: 10.98 MB / 2.28 GB, free: 10.88 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.02749/6.327, allocations: 7.177 MB / 2.287 GB, free: 10.79 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01891/6.346, allocations: 7.494 MB / 2.294 GB, free: 4.359 MB / 0.6667 GB Notification: Performance of SimCode: time 1.573e-06/6.346, allocations: 0 / 2.294 GB, free: 4.359 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7065/7.052, allocations: 265.1 MB / 2.553 GB, free: 47.65 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001519/7.052, allocations: 217.5 kB / 2.553 GB, free: 47.41 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/17.46, allocations: 0 / 2.553 GB, free: 47.41 MB / 0.6667 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat