Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000882/0.0008822, allocations: 97.69 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007852/0.0007852, allocations: 188.3 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 223.3 MB / 241.9 MB, free: 14.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2197/0.2197, allocations: 44.23 MB / 337.2 MB, free: 2.551 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003757/0.0003757, allocations: 8 kB / 409.7 MB, free: 27.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1359, allocations: 61.91 MB / 471.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor): time 0.3126/0.4486, allocations: 57.9 MB / 0.5171 GB, free: 9.945 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03088/0.4796, allocations: 13.97 MB / 0.5308 GB, free: 8.781 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01639/0.496, allocations: 314 kB / 0.5311 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01294/0.509, allocations: 3.258 MB / 0.5343 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02853/0.5375, allocations: 9.063 MB / 0.5431 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007737/0.5453, allocations: 1.644 MB / 0.5447 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.05619/0.6015, allocations: 40.51 MB / 0.5843 GB, free: 1.191 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06615/0.6677, allocations: 36.48 MB / 0.6199 GB, free: 12.61 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01006/0.6778, allocations: 3.457 MB / 0.6233 GB, free: 9.141 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0124/0.6903, allocations: 5.6 MB / 0.6287 GB, free: 3.523 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003082/0.6934, allocations: 0.4961 MB / 0.6292 GB, free: 3.027 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006563/0.7, allocations: 1.631 MB / 0.6308 GB, free: 1.395 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0107/0.7108, allocations: 5.923 MB / 0.6366 GB, free: 11.46 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00808/0.7189, allocations: 3.13 MB / 0.6397 GB, free: 8.312 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03581/0.7548, allocations: 26.92 MB / 0.6659 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.308e-06/0.7548, allocations: 0 / 0.6659 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.865e-06/0.7548, allocations: 0 / 0.6659 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.001393/0.7562, allocations: 0 / 0.6659 GB, free: 13.33 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5519 * Number of variables: 5519 Notification: Performance of Generate backend data structure: time 0.03482/0.7911, allocations: 12.99 MB / 0.6786 GB, free: 240 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.7911, allocations: 12.03 kB / 0.6786 GB, free: 228 kB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0102/0.8013, allocations: 2.758 MB / 0.6813 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07657/0.8779, allocations: 8.528 MB / 0.6897 GB, free: 4.891 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02021/0.8982, allocations: 7.93 MB / 0.6974 GB, free: 12.89 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001407/0.8997, allocations: 1.224 MB / 0.6986 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006826/0.9065, allocations: 1.621 MB / 0.7002 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5404/1.447, allocations: 37.51 MB / 0.7368 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009259/1.448, allocations: 124.6 kB / 0.7369 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005203/1.453, allocations: 0.719 MB / 0.7376 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004975/1.458, allocations: 3.711 MB / 0.7413 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05771/1.516, allocations: 28.15 MB / 0.7687 GB, free: 128.2 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1404/1.656, allocations: 119.9 MB / 0.8859 GB, free: 6.395 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03062/1.687, allocations: 12.51 MB / 0.8981 GB, free: 9.738 MB / 0.5451 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004228/1.691, allocations: 3.496 MB / 0.9015 GB, free: 6.23 MB / 0.5451 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01142/1.703, allocations: 15.18 MB / 0.9163 GB, free: 4.652 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.455e-05/1.703, allocations: 64.55 kB / 0.9164 GB, free: 4.582 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=238): time 6.192e-06/1.703, allocations: 0 / 0.9164 GB, free: 4.582 MB / 0.5607 GB Notification: Performance of matching and sorting (n=273): time 0.6137/2.317, allocations: 76.23 MB / 0.9908 GB, free: 149.7 MB / 0.5608 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.901e-05/2.317, allocations: 205.9 kB / 0.991 GB, free: 149.4 MB / 0.5608 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01464/2.331, allocations: 10.39 MB / 1.001 GB, free: 139 MB / 0.5608 GB Notification: Performance of collectPreVariables (initialization): time 0.0005347/2.332, allocations: 71.03 kB / 1.001 GB, free: 139 MB / 0.5608 GB Notification: Performance of collectInitialEqns (initialization): time 0.005018/2.337, allocations: 10.76 MB / 1.012 GB, free: 128.2 MB / 0.5608 GB Notification: Performance of collectInitialBindings (initialization): time 0.001317/2.338, allocations: 1.235 MB / 1.013 GB, free: 127 MB / 0.5608 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001222/2.339, allocations: 349 kB / 1.013 GB, free: 126.6 MB / 0.5608 GB Notification: Performance of setup shared object (initialization): time 0.0008898/2.34, allocations: 1.057 MB / 1.014 GB, free: 125.6 MB / 0.5608 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00812/2.349, allocations: 5.869 MB / 1.02 GB, free: 119.7 MB / 0.5608 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01445/2.363, allocations: 18.01 MB / 1.038 GB, free: 95.6 MB / 0.5608 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01538/2.378, allocations: 10.29 MB / 1.048 GB, free: 85.31 MB / 0.5608 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0006877/2.379, allocations: 124 kB / 1.048 GB, free: 85.19 MB / 0.5608 GB Notification: Performance of matching and sorting (n=2264) (initialization): time 0.04041/2.42, allocations: 22.71 MB / 1.07 GB, free: 62.49 MB / 0.5608 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006755/2.42, allocations: 192 kB / 1.07 GB, free: 62.3 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007277/2.421, allocations: 436 kB / 1.071 GB, free: 61.88 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001622/2.423, allocations: 0.8747 MB / 1.071 GB, free: 61 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01219/2.435, allocations: 4.222 MB / 1.076 GB, free: 56.77 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003841/2.439, allocations: 3.933 MB / 1.079 GB, free: 52.71 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01155/2.45, allocations: 1.022 MB / 1.08 GB, free: 51.68 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002826/2.453, allocations: 1.12 MB / 1.082 GB, free: 50.57 MB / 0.5608 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1987 * Number of states: 0 () * Number of discrete variables: 41 (sensor_world2.arrow.arrowLine.twoHeadedArrow,sensor_world2.arrow.headAtOrigin,sensor_frame_a2.arrow.arrowLine.twoHeadedArrow,sensor_frame_a2.arrow.headAtOrigin,sensor_world1.arrow.arrowLine.twoHeadedArrow,sensor_world1.arrow.headAtOrigin,sensor_frame_a1.arrow.arrowLine.twoHeadedArrow,sensor_frame_a1.arrow.headAtOrigin,sensor_world2.arrowColor[3],sensor_world2.arrowColor[2],sensor_world2.arrowColor[1],sensor_frame_a2.arrowColor[3],sensor_frame_a2.arrowColor[2],sensor_frame_a2.arrowColor[1],sensor_world1.arrowColor[3],sensor_world1.arrowColor[2],sensor_world1.arrowColor[1],sensor_frame_a1.arrowColor[3],sensor_frame_a1.arrowColor[2],sensor_frame_a1.arrowColor[1],box.color[3],box.color[2],box.color[1],box.body.sphereColor[3],box.body.sphereColor[2],box.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (2218): * Single equations (assignments): 2210 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01317/2.466, allocations: 7.664 MB / 1.089 GB, free: 42.89 MB / 0.5608 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001485/2.468, allocations: 0.7943 MB / 1.09 GB, free: 42.08 MB / 0.5608 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009257/2.477, allocations: 5.754 MB / 1.095 GB, free: 36.31 MB / 0.5608 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.088e-05/2.477, allocations: 28 kB / 1.095 GB, free: 36.29 MB / 0.5608 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/2.477, allocations: 7.094 kB / 1.095 GB, free: 36.28 MB / 0.5608 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.102e-05/2.477, allocations: 15.95 kB / 1.095 GB, free: 36.27 MB / 0.5608 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03739/2.515, allocations: 20.32 MB / 1.115 GB, free: 15.81 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.143e-05/2.515, allocations: 4 kB / 1.115 GB, free: 15.8 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002293/2.517, allocations: 0.5347 MB / 1.116 GB, free: 15.27 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000652/2.518, allocations: 236.6 kB / 1.116 GB, free: 15.04 MB / 0.5608 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002937/2.518, allocations: 49.25 kB / 1.116 GB, free: 14.99 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002325/2.52, allocations: 2.52 MB / 1.119 GB, free: 12.34 MB / 0.5608 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-06/2.52, allocations: 4 kB / 1.119 GB, free: 12.33 MB / 0.5608 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01099/2.531, allocations: 9.617 MB / 1.128 GB, free: 2.605 MB / 0.5608 GB Notification: Performance of postOpt removeConstants (simulation): time 0.3077/2.839, allocations: 0.7321 MB / 1.129 GB, free: 154.3 MB / 0.5608 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002637/2.842, allocations: 49.28 kB / 1.129 GB, free: 154.3 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005041/2.847, allocations: 357 kB / 1.129 GB, free: 154.3 MB / 0.5608 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008185/2.848, allocations: 153.2 kB / 1.129 GB, free: 154.3 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003528/2.848, allocations: 89.25 kB / 1.129 GB, free: 154.3 MB / 0.5608 GB Notification: Performance of sorting global known variables: time 0.01774/2.866, allocations: 6.371 MB / 1.135 GB, free: 153.8 MB / 0.5608 GB Notification: Performance of sort global known variables: time 5.81e-07/2.866, allocations: 5.297 kB / 1.136 GB, free: 153.8 MB / 0.5608 GB Notification: Performance of remove unused functions: time 0.01804/2.884, allocations: 2.786 MB / 1.138 GB, free: 153.5 MB / 0.5608 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 2 (rev.phi,rev.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 (239): * Single equations (assignments): 231 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01562/2.9, allocations: 10.4 MB / 1.148 GB, free: 149.2 MB / 0.5608 GB Notification: Performance of simCode: created initialization part: time 0.01947/2.919, allocations: 13 MB / 1.161 GB, free: 144.6 MB / 0.5608 GB Notification: Performance of simCode: created event and clocks part: time 1.292e-05/2.919, allocations: 4.375 kB / 1.161 GB, free: 144.6 MB / 0.5608 GB Notification: Performance of simCode: created simulation system equations: time 0.003707/2.923, allocations: 2.758 MB / 1.164 GB, free: 143.5 MB / 0.5608 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009577/2.932, allocations: 1.413 MB / 1.165 GB, free: 143 MB / 0.5608 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1673/3.1, allocations: 110.2 MB / 1.273 GB, free: 39.76 MB / 0.5608 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02208/3.122, allocations: 10.16 MB / 1.283 GB, free: 29.56 MB / 0.5608 GB Notification: Performance of simCode: alias equations: time 0.01627/3.138, allocations: 5.199 MB / 1.288 GB, free: 24.35 MB / 0.5608 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01102/3.149, allocations: 6.55 MB / 1.294 GB, free: 17.8 MB / 0.5608 GB Notification: Performance of SimCode: time 1.042e-06/3.149, allocations: 1.75 kB / 1.294 GB, free: 17.8 MB / 0.5608 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5838/3.733, allocations: 196.4 MB / 1.486 GB, free: 89.24 MB / 0.6077 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001474/3.733, allocations: 220.8 kB / 1.486 GB, free: 89 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.334/11.07, allocations: 2.531 kB / 1.486 GB, free: 89 MB / 0.6077 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor_res.mat does not exist to compare? outputFormat=mat