Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",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.001664/0.001664, allocations: 181.3 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.156/2.156, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001172/0.001172, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.412e-05/3.416e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1064, allocations: 47.58 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4433/0.5498, allocations: 92.45 MB / 461.6 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003085/0.5502, allocations: 90.08 kB / 461.7 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2708/0.8209, allocations: 58.78 MB / 0.5083 GB, free: 7.348 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.821, allocations: 0 / 0.5083 GB, free: 7.348 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001578/0.8211, allocations: 51.98 kB / 0.5084 GB, free: 7.297 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.0109/0.8321, allocations: 2.638 MB / 0.5109 GB, free: 4.602 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.829e-05/0.8321, allocations: 11.97 kB / 0.511 GB, free: 4.59 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002022/0.8342, allocations: 490.3 kB / 0.5114 GB, free: 4.102 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0152/0.8494, allocations: 1.923 MB / 0.5133 GB, free: 2.172 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01484/0.8643, allocations: 3.42 MB / 0.5166 GB, free: 14.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003231/0.8647, allocations: 180.8 kB / 0.5168 GB, free: 14.52 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001752/0.8664, allocations: 247.8 kB / 0.517 GB, free: 14.28 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02164/0.8881, allocations: 6.777 MB / 0.5237 GB, free: 6.801 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001783/0.8883, allocations: 35.69 kB / 0.5237 GB, free: 6.766 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001216/0.8896, allocations: 127.9 kB / 0.5238 GB, free: 6.641 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001991/0.8916, allocations: 0.7267 MB / 0.5245 GB, free: 5.91 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01891/0.9105, allocations: 5.838 MB / 0.5302 GB, free: 76 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3551/1.266, allocations: 31.25 MB / 0.5608 GB, free: 81.17 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009813/1.276, allocations: 2.608 MB / 0.5633 GB, free: 80.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002799/1.278, allocations: 1.198 MB / 0.5645 GB, free: 80.47 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01363/1.292, allocations: 5.139 MB / 0.5695 GB, free: 78.67 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/1.292, allocations: 41.75 kB / 0.5695 GB, free: 78.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 4.92e-06/1.292, allocations: 0 / 0.5695 GB, free: 78.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=105): time 0.03173/1.324, allocations: 8.035 MB / 0.5774 GB, free: 75.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.666e-05/1.324, allocations: 144 kB / 0.5775 GB, free: 75.44 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004964/1.329, allocations: 2.395 MB / 0.5798 GB, free: 74.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003384/1.329, allocations: 39.89 kB / 0.5799 GB, free: 74.53 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001498/1.331, allocations: 2.036 MB / 0.5819 GB, free: 73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006339/1.332, allocations: 425 kB / 0.5823 GB, free: 72.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003826/1.332, allocations: 83.22 kB / 0.5824 GB, free: 72.64 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002522/1.332, allocations: 492.1 kB / 0.5828 GB, free: 72.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0032/1.336, allocations: 1.388 MB / 0.5842 GB, free: 71.82 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004767/1.34, allocations: 3.988 MB / 0.5881 GB, free: 67.87 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005218/1.346, allocations: 2.33 MB / 0.5904 GB, free: 67.25 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-05/1.346, allocations: 28.03 kB / 0.5904 GB, free: 67.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=532) (initialization): time 0.0166/1.362, allocations: 5.822 MB / 0.5961 GB, free: 65.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.426e-05/1.362, allocations: 42.81 kB / 0.5961 GB, free: 65.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.9e-05/1.363, allocations: 96.72 kB / 0.5962 GB, free: 65.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003954/1.367, allocations: 0.8247 MB / 0.597 GB, free: 65.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005513/1.372, allocations: 0.9401 MB / 0.5979 GB, free: 65.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008556/1.381, allocations: 4.295 MB / 0.6021 GB, free: 63.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005045/1.386, allocations: 279.3 kB / 0.6024 GB, free: 62.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007121/1.387, allocations: 262.1 kB / 0.6026 GB, free: 62.93 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 423 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (496): * Single equations (assignments): 492 * Array equations: 3 * 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 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007993/1.387, allocations: 426.7 kB / 0.603 GB, free: 62.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005308/1.388, allocations: 226.2 kB / 0.6033 GB, free: 62.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006819/1.395, allocations: 2.118 MB / 0.6053 GB, free: 61.81 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.255e-05/1.395, allocations: 15.39 kB / 0.6053 GB, free: 61.81 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/1.395, allocations: 7.922 kB / 0.6053 GB, free: 61.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-05/1.395, allocations: 3.797 kB / 0.6054 GB, free: 61.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01436/1.409, allocations: 5.078 MB / 0.6103 GB, free: 60.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.661e-05/1.409, allocations: 3.812 kB / 0.6103 GB, free: 60.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001374/1.411, allocations: 149.7 kB / 0.6105 GB, free: 60 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003652/1.414, allocations: 0.6721 MB / 0.6111 GB, free: 59.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000179/1.415, allocations: 21.56 kB / 0.6111 GB, free: 59.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007432/1.422, allocations: 3.835 MB / 0.6149 GB, free: 56.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/1.422, allocations: 11.89 kB / 0.6149 GB, free: 56.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01006/1.432, allocations: 4.12 MB / 0.6189 GB, free: 53.07 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001591/1.434, allocations: 462 kB / 0.6194 GB, free: 52.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005641/1.434, allocations: 19.66 kB / 0.6194 GB, free: 52.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00203/1.436, allocations: 77.98 kB / 0.6194 GB, free: 52.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002839/1.437, allocations: 60.23 kB / 0.6195 GB, free: 52.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001315/1.437, allocations: 33.41 kB / 0.6195 GB, free: 52.49 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003609/1.44, allocations: 1.66 MB / 0.6212 GB, free: 51.01 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.441, allocations: 3.938 kB / 0.6212 GB, free: 51.01 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004755/1.445, allocations: 0.6779 MB / 0.6218 GB, free: 50.34 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 70 * Array equations: 3 * 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%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01049/1.456, allocations: 5.093 MB / 0.6268 GB, free: 45.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007727/1.464, allocations: 3.403 MB / 0.6301 GB, free: 42.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.433e-06/1.464, allocations: 0 / 0.6301 GB, free: 42.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002118/1.466, allocations: 1.031 MB / 0.6311 GB, free: 41.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001873/1.468, allocations: 242.4 kB / 0.6314 GB, free: 41.62 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01715/1.485, allocations: 5.717 MB / 0.6369 GB, free: 36.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003077/1.488, allocations: 2.305 MB / 0.6392 GB, free: 34.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002462/1.491, allocations: 1.132 MB / 0.6403 GB, free: 33.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.563e-06/1.491, allocations: 0 / 0.6403 GB, free: 33.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.207/5.697, allocations: 62.45 MB / 0.7013 GB, free: 111.1 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat