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.001596/0.001596, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.018/2.018, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.00116/0.001159, allocations: 99.48 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003856/0.0003856, allocations: 16 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3341, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1574/0.4916, allocations: 92.55 MB / 467.2 MB, free: 4.195 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003586/0.492, allocations: 95.95 kB / 467.3 MB, free: 4.102 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5167/1.009, allocations: 58.75 MB / 0.5137 GB, free: 94.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.795e-06/1.009, allocations: 4 kB / 0.5137 GB, free: 94.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001201/1.009, allocations: 50.59 kB / 0.5138 GB, free: 94.07 MB / 378.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.0105/1.019, allocations: 2.78 MB / 0.5165 GB, free: 92.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/1.02, allocations: 9.75 kB / 0.5165 GB, free: 92.73 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001971/1.022, allocations: 493.8 kB / 0.5169 GB, free: 92.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01414/1.036, allocations: 1.925 MB / 0.5188 GB, free: 92.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01264/1.048, allocations: 3.436 MB / 0.5222 GB, free: 90.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002002/1.049, allocations: 184.3 kB / 0.5224 GB, free: 90.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001262/1.05, allocations: 246 kB / 0.5226 GB, free: 90.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01724/1.067, allocations: 6.852 MB / 0.5293 GB, free: 84.58 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000148/1.067, allocations: 47.58 kB / 0.5293 GB, free: 84.54 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007419/1.068, allocations: 122.8 kB / 0.5294 GB, free: 84.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001411/1.07, allocations: 0.7334 MB / 0.5302 GB, free: 83.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01643/1.086, allocations: 5.989 MB / 0.536 GB, free: 77.72 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04223/1.128, allocations: 31.24 MB / 0.5665 GB, free: 45.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009416/1.138, allocations: 2.623 MB / 0.5691 GB, free: 42.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01258/1.15, allocations: 5.137 MB / 0.5741 GB, free: 37.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/1.151, allocations: 49.38 kB / 0.5741 GB, free: 37.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=97): time 4.97e-06/1.151, allocations: 0 / 0.5741 GB, free: 37.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=105): time 0.03645/1.187, allocations: 9.817 MB / 0.5837 GB, free: 27.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/1.187, allocations: 141 kB / 0.5839 GB, free: 27.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004685/1.192, allocations: 2.453 MB / 0.5863 GB, free: 24.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002323/1.192, allocations: 41.38 kB / 0.5863 GB, free: 24.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001304/1.193, allocations: 2.04 MB / 0.5883 GB, free: 22.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004778/1.194, allocations: 423.4 kB / 0.5887 GB, free: 22.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003229/1.194, allocations: 84 kB / 0.5888 GB, free: 22.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002462/1.194, allocations: 491.8 kB / 0.5892 GB, free: 21.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003369/1.198, allocations: 1.448 MB / 0.5907 GB, free: 20.35 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004564/1.202, allocations: 4.047 MB / 0.5946 GB, free: 14.99 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004879/1.207, allocations: 2.355 MB / 0.5969 GB, free: 12.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.6e-05/1.207, allocations: 24 kB / 0.5969 GB, free: 12.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=532) (initialization): time 0.01494/1.222, allocations: 5.934 MB / 0.6027 GB, free: 6.672 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.654e-05/1.222, allocations: 44 kB / 0.6028 GB, free: 6.629 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.819e-05/1.223, allocations: 96 kB / 0.6029 GB, free: 6.535 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003833/1.226, allocations: 0.8245 MB / 0.6037 GB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005221/1.232, allocations: 0.9474 MB / 0.6046 GB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008667/1.24, allocations: 4.405 MB / 0.6089 GB, free: 232 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004912/1.245, allocations: 275.6 kB / 0.6092 GB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007383/1.246, allocations: 255.9 kB / 0.6094 GB, free: 15.71 MB / 394.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 () * Number of clocked 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.003312/1.249, allocations: 1.376 MB / 0.6107 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006185/1.25, allocations: 236.9 kB / 0.611 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007743/1.258, allocations: 2.126 MB / 0.613 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-05/1.258, allocations: 12 kB / 0.6131 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/1.258, allocations: 4.094 kB / 0.6131 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.243e-05/1.258, allocations: 11.92 kB / 0.6131 GB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01642/1.274, allocations: 5.08 MB / 0.618 GB, free: 6.773 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.678e-05/1.274, allocations: 4.062 kB / 0.618 GB, free: 6.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001455/1.276, allocations: 147.8 kB / 0.6182 GB, free: 6.625 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003923/1.28, allocations: 0.6755 MB / 0.6188 GB, free: 5.945 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001536/1.28, allocations: 19.98 kB / 0.6189 GB, free: 5.926 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009113/1.289, allocations: 3.953 MB / 0.6227 GB, free: 1.844 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/1.289, allocations: 0 / 0.6227 GB, free: 1.844 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01159/1.301, allocations: 4.148 MB / 0.6268 GB, free: 13.63 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001524/1.302, allocations: 457.8 kB / 0.6272 GB, free: 13.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000428/1.303, allocations: 16 kB / 0.6272 GB, free: 13.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001808/1.305, allocations: 87.81 kB / 0.6273 GB, free: 13.06 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002973/1.305, allocations: 56.42 kB / 0.6274 GB, free: 13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001394/1.305, allocations: 32.31 kB / 0.6274 GB, free: 12.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004512/1.31, allocations: 1.71 MB / 0.6291 GB, free: 11.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.9e-07/1.31, allocations: 0 / 0.6291 GB, free: 11.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00473/1.314, allocations: 0.6874 MB / 0.6297 GB, free: 10.57 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 () * Number of clocked 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.01224/1.327, allocations: 5.107 MB / 0.6347 GB, free: 5.41 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009276/1.336, allocations: 3.476 MB / 0.6381 GB, free: 1.934 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/1.336, allocations: 4 kB / 0.6381 GB, free: 1.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002433/1.338, allocations: 1.039 MB / 0.6391 GB, free: 0.8789 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/1.34, allocations: 245.5 kB / 0.6394 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3487/1.689, allocations: 85.17 MB / 0.7225 GB, free: 67.15 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003013/1.692, allocations: 2.29 MB / 0.7248 GB, free: 66.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002266/1.695, allocations: 1.137 MB / 0.7259 GB, free: 66.4 MB / 426.7 MB Notification: Performance of SimCode: time 1.473e-06/1.695, allocations: 0 / 0.7259 GB, free: 66.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.757/5.451, allocations: 62.61 MB / 0.787 GB, free: 22.54 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