Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001399/0.001399, allocations: 172.6 kB / 14.1 MB, free: 1.223 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.466/1.466, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008525/0.0008525, allocations: 94.55 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.347e-05/4.395e-05, allocations: 0 / 322.6 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0952/0.09526, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3421/0.4374, allocations: 92.44 MB / 462.6 MB, free: 1.051 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/0.4377, allocations: 84.02 kB / 462.6 MB, free: 1.008 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1502/0.588, allocations: 58.8 MB / 0.5092 GB, free: 7.027 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.588, allocations: 0 / 0.5092 GB, free: 7.027 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.847e-05/0.5881, allocations: 44 kB / 0.5093 GB, free: 6.984 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.005323/0.5934, allocations: 2.638 MB / 0.5118 GB, free: 4.289 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.5935, allocations: 12.03 kB / 0.5119 GB, free: 4.277 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006798/0.5942, allocations: 494.3 kB / 0.5123 GB, free: 3.785 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007325/0.6015, allocations: 1.927 MB / 0.5142 GB, free: 1.852 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008503/0.61, allocations: 3.412 MB / 0.5175 GB, free: 14.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001606/0.6102, allocations: 180.8 kB / 0.5177 GB, free: 14.21 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000707/0.6109, allocations: 259.8 kB / 0.518 GB, free: 13.96 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01088/0.6218, allocations: 6.766 MB / 0.5246 GB, free: 6.488 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.066e-05/0.622, allocations: 39.67 kB / 0.5246 GB, free: 6.449 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003523/0.6223, allocations: 131.8 kB / 0.5247 GB, free: 6.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009195/0.6232, allocations: 0.719 MB / 0.5254 GB, free: 5.598 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2221/0.8454, allocations: 5.84 MB / 0.5311 GB, free: 100.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03207/0.8775, allocations: 31.26 MB / 0.5617 GB, free: 81.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005513/0.8831, allocations: 2.607 MB / 0.5642 GB, free: 80.66 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001467/0.8846, allocations: 1.201 MB / 0.5654 GB, free: 80.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007387/0.892, allocations: 5.132 MB / 0.5704 GB, free: 78.67 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.892, allocations: 48.38 kB / 0.5704 GB, free: 78.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 3.516e-06/0.8921, allocations: 0 / 0.5704 GB, free: 78.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=105): time 0.01645/0.9085, allocations: 8.039 MB / 0.5783 GB, free: 75.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.223e-05/0.9086, allocations: 138.7 kB / 0.5784 GB, free: 75.44 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002702/0.9113, allocations: 2.394 MB / 0.5808 GB, free: 74.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.145e-05/0.9114, allocations: 40.7 kB / 0.5808 GB, free: 74.53 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008654/0.9123, allocations: 2.052 MB / 0.5828 GB, free: 73.03 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002641/0.9126, allocations: 429.7 kB / 0.5832 GB, free: 72.73 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.9127, allocations: 80.75 kB / 0.5833 GB, free: 72.67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.9129, allocations: 482.5 kB / 0.5837 GB, free: 72.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00157/0.9145, allocations: 1.392 MB / 0.5851 GB, free: 71.86 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00244/0.9169, allocations: 3.978 MB / 0.589 GB, free: 67.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002397/0.9193, allocations: 2.336 MB / 0.5913 GB, free: 67.28 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.03e-05/0.9194, allocations: 31.67 kB / 0.5913 GB, free: 67.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=532) (initialization): time 0.007972/0.9273, allocations: 5.887 MB / 0.5971 GB, free: 65.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.754e-05/0.9274, allocations: 47.09 kB / 0.5971 GB, free: 65.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.951e-05/0.9275, allocations: 97.38 kB / 0.5972 GB, free: 65.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002032/0.9295, allocations: 0.8224 MB / 0.598 GB, free: 65.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002365/0.9319, allocations: 0.9413 MB / 0.5989 GB, free: 65.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004697/0.9366, allocations: 4.299 MB / 0.6031 GB, free: 62.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003102/0.9398, allocations: 281.9 kB / 0.6034 GB, free: 62.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004159/0.9402, allocations: 257.7 kB / 0.6036 GB, free: 62.85 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.0005046/0.9407, allocations: 425 kB / 0.604 GB, free: 62.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000307/0.941, allocations: 231.1 kB / 0.6043 GB, free: 62.37 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003748/0.9448, allocations: 2.115 MB / 0.6063 GB, free: 61.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.057e-05/0.9448, allocations: 19.89 kB / 0.6063 GB, free: 61.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.9448, allocations: 7.547 kB / 0.6063 GB, free: 61.73 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.9448, allocations: 3.891 kB / 0.6063 GB, free: 61.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00816/0.953, allocations: 5.067 MB / 0.6113 GB, free: 59.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.9531, allocations: 4.562 kB / 0.6113 GB, free: 59.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006747/0.9537, allocations: 150.2 kB / 0.6114 GB, free: 59.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001891/0.9556, allocations: 0.6694 MB / 0.6121 GB, free: 59.74 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.9558, allocations: 28.62 kB / 0.6121 GB, free: 59.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003988/0.9598, allocations: 3.84 MB / 0.6159 GB, free: 56.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.9598, allocations: 0 / 0.6159 GB, free: 56.31 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005209/0.965, allocations: 4.123 MB / 0.6199 GB, free: 52.78 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/0.9662, allocations: 463.9 kB / 0.6203 GB, free: 52.34 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/0.9664, allocations: 16 kB / 0.6204 GB, free: 52.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009815/0.9674, allocations: 83.84 kB / 0.6204 GB, free: 52.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/0.9676, allocations: 59.27 kB / 0.6205 GB, free: 52.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.158e-05/0.9676, allocations: 28.86 kB / 0.6205 GB, free: 52.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002073/0.9697, allocations: 1.666 MB / 0.6222 GB, free: 50.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.9697, allocations: 0 / 0.6222 GB, free: 50.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00279/0.9725, allocations: 0.6805 MB / 0.6228 GB, free: 50.05 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.005414/0.978, allocations: 5.094 MB / 0.6278 GB, free: 45.56 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004502/0.9825, allocations: 3.404 MB / 0.6311 GB, free: 42.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.9825, allocations: 0 / 0.6311 GB, free: 42.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.9836, allocations: 1.035 MB / 0.6321 GB, free: 41.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.985, allocations: 240.4 kB / 0.6324 GB, free: 41.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009896/0.9949, allocations: 5.428 MB / 0.6377 GB, free: 36.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001731/0.9967, allocations: 2.293 MB / 0.6399 GB, free: 34.67 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002805/0.9995, allocations: 1.318 MB / 0.6412 GB, free: 33.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001214/1.001, allocations: 1.101 MB / 0.6423 GB, free: 32.25 MB / 410.7 MB Notification: Performance of SimCode: time 2.003e-06/1.001, allocations: 0 / 0.6423 GB, free: 32.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2771/1.278, allocations: 49.34 MB / 0.6904 GB, free: 96.87 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001654/1.278, allocations: 198.5 kB / 0.6906 GB, free: 96.65 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.132/4.41, allocations: 0 / 0.6906 GB, free: 96.65 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat