Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00137/0.001371, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 221.5 MB / 230.3 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 98.17 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.701e-05/2.706e-05, allocations: 4 kB / 337.1 MB, free: 9.949 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.1473, allocations: 50.42 MB / 387.6 MB, free: 7.488 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4045/0.5519, allocations: 93.09 MB / 480.6 MB, free: 1.605 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002731/0.5523, allocations: 83.95 kB / 480.7 MB, free: 1.523 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1565/0.7088, allocations: 58.47 MB / 0.5266 GB, free: 6.621 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.7088, allocations: 0 / 0.5266 GB, free: 6.621 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.326e-05/0.7089, allocations: 51.98 kB / 0.5266 GB, free: 6.57 MB / 410.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.00669/0.7156, allocations: 2.627 MB / 0.5292 GB, free: 3.887 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.7157, allocations: 12.03 kB / 0.5292 GB, free: 3.875 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008377/0.7241, allocations: 1.923 MB / 0.5311 GB, free: 1.945 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008978/0.7331, allocations: 3.264 MB / 0.5342 GB, free: 14.63 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/0.7333, allocations: 80 kB / 0.5343 GB, free: 14.55 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007974/0.7341, allocations: 139.9 kB / 0.5345 GB, free: 14.41 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006903/0.741, allocations: 4.104 MB / 0.5385 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008981/0.75, allocations: 6.21 MB / 0.5445 GB, free: 3.402 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.63e-05/0.7502, allocations: 39.69 kB / 0.5446 GB, free: 3.363 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003127/0.7505, allocations: 20 kB / 0.5446 GB, free: 3.344 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009744/0.7515, allocations: 0.7228 MB / 0.5453 GB, free: 2.621 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3086/1.06, allocations: 30.54 MB / 0.5751 GB, free: 88.59 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003437/1.064, allocations: 2.179 MB / 0.5772 GB, free: 87.93 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001947/1.066, allocations: 1.127 MB / 0.5783 GB, free: 87.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009719/1.067, allocations: 339.1 kB / 0.5787 GB, free: 87.61 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/1.067, allocations: 44.89 kB / 0.5787 GB, free: 87.57 MB / 426.7 MB Notification: Performance of pre-optimization done (n=106): time 4.338e-06/1.067, allocations: 0 / 0.5787 GB, free: 87.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=114): time 0.02211/1.089, allocations: 9.665 MB / 0.5882 GB, free: 85.54 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/1.089, allocations: 143.2 kB / 0.5883 GB, free: 85.38 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003046/1.092, allocations: 2.061 MB / 0.5903 GB, free: 84.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002773/1.092, allocations: 25.7 kB / 0.5903 GB, free: 84.56 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001169/1.093, allocations: 2.074 MB / 0.5924 GB, free: 83.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004887/1.094, allocations: 457.1 kB / 0.5928 GB, free: 82.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/1.094, allocations: 0 / 0.5928 GB, free: 82.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002648/1.094, allocations: 0.5399 MB / 0.5933 GB, free: 82.49 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0017/1.096, allocations: 1.38 MB / 0.5947 GB, free: 82.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002812/1.099, allocations: 4.07 MB / 0.5986 GB, free: 77.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003452/1.102, allocations: 2.476 MB / 0.6011 GB, free: 77.27 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.672e-05/1.102, allocations: 28.59 kB / 0.6011 GB, free: 77.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=559) (initialization): time 0.01007/1.112, allocations: 5.662 MB / 0.6066 GB, free: 75.59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.577e-05/1.112, allocations: 50.23 kB / 0.6067 GB, free: 75.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.202e-05/1.113, allocations: 98.84 kB / 0.6068 GB, free: 75.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002248/1.115, allocations: 0.8394 MB / 0.6076 GB, free: 75.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003001/1.118, allocations: 0.9912 MB / 0.6085 GB, free: 75.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005096/1.123, allocations: 4.25 MB / 0.6127 GB, free: 73.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004037/1.127, allocations: 205.1 kB / 0.6129 GB, free: 73.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006027/1.128, allocations: 271.2 kB / 0.6131 GB, free: 73.14 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 441 * 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 (523): * Single equations (assignments): 519 * 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.0006102/1.128, allocations: 351.3 kB / 0.6135 GB, free: 72.84 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005042/1.133, allocations: 2.628 MB / 0.616 GB, free: 72.12 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004417/1.134, allocations: 208.3 kB / 0.6162 GB, free: 72 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004558/1.138, allocations: 2.243 MB / 0.6184 GB, free: 71.39 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.014e-05/1.138, allocations: 16.69 kB / 0.6185 GB, free: 71.39 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/1.138, allocations: 3.781 kB / 0.6185 GB, free: 71.39 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/1.138, allocations: 6.938 kB / 0.6185 GB, free: 71.39 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009628/1.148, allocations: 5.133 MB / 0.6235 GB, free: 69.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.028e-05/1.148, allocations: 3.219 kB / 0.6235 GB, free: 69.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007545/1.149, allocations: 157.8 kB / 0.6236 GB, free: 69.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002013/1.151, allocations: 0.6838 MB / 0.6243 GB, free: 69.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/1.151, allocations: 8.375 kB / 0.6243 GB, free: 69.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004887/1.156, allocations: 3.694 MB / 0.6279 GB, free: 67.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/1.156, allocations: 4 kB / 0.6279 GB, free: 67.38 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006744/1.163, allocations: 4.366 MB / 0.6322 GB, free: 63.64 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009206/1.164, allocations: 273.9 kB / 0.6324 GB, free: 63.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000238/1.164, allocations: 4 kB / 0.6324 GB, free: 63.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/1.165, allocations: 77.2 kB / 0.6325 GB, free: 63.31 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/1.165, allocations: 63.2 kB / 0.6326 GB, free: 63.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/1.165, allocations: 42.03 kB / 0.6326 GB, free: 63.24 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002274/1.168, allocations: 1.368 MB / 0.634 GB, free: 62.03 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.1e-07/1.168, allocations: 0 / 0.634 GB, free: 62.03 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003935/1.172, allocations: 0.5895 MB / 0.6345 GB, free: 61.45 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (83): * Single equations (assignments): 79 * 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.00637/1.178, allocations: 5.51 MB / 0.6399 GB, free: 56.62 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005226/1.183, allocations: 3.328 MB / 0.6432 GB, free: 53.63 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/1.183, allocations: 0 / 0.6432 GB, free: 53.63 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/1.184, allocations: 1.04 MB / 0.6442 GB, free: 52.68 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/1.186, allocations: 199.3 kB / 0.6444 GB, free: 52.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0114/1.197, allocations: 5.352 MB / 0.6496 GB, free: 47.85 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001868/1.199, allocations: 2.285 MB / 0.6518 GB, free: 46.04 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003073/1.202, allocations: 1.405 MB / 0.6532 GB, free: 45.16 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001269/1.203, allocations: 1.097 MB / 0.6543 GB, free: 44.14 MB / 426.7 MB Notification: Performance of SimCode: time 1.323e-06/1.203, allocations: 0 / 0.6543 GB, free: 44.14 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07585/1.279, allocations: 45.88 MB / 0.6991 GB, free: 15.12 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/1.28, allocations: 165.2 kB / 0.6992 GB, free: 14.93 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.218/4.498, allocations: 4 kB / 0.6992 GB, free: 14.93 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat