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.001383/0.001383, allocations: 180.8 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009375/0.0009373, allocations: 97.23 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003093/0.0003093, allocations: 4 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2853, allocations: 50.42 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1172/0.4025, allocations: 93.8 MB / 495.4 MB, free: 2.594 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002839/0.4029, allocations: 95.95 kB / 495.5 MB, free: 2.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3862/0.7891, allocations: 59.44 MB / 0.5419 GB, free: 71.44 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.7891, allocations: 0 / 0.5419 GB, free: 71.44 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001526/0.7893, allocations: 48 kB / 0.542 GB, free: 71.39 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.009186/0.7985, allocations: 2.762 MB / 0.5447 GB, free: 68.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.414e-05/0.7986, allocations: 16.03 kB / 0.5447 GB, free: 68.55 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002361/0.8009, allocations: 498.3 kB / 0.5452 GB, free: 68.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008305/0.8093, allocations: 1.919 MB / 0.547 GB, free: 66.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00932/0.8186, allocations: 3.291 MB / 0.5502 GB, free: 62.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002194/0.8189, allocations: 180.8 kB / 0.5504 GB, free: 62.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001457/0.8204, allocations: 243.9 kB / 0.5506 GB, free: 62.37 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01425/0.8347, allocations: 6.855 MB / 0.5573 GB, free: 54.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001679/0.8349, allocations: 43.59 kB / 0.5574 GB, free: 54.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001009/0.8359, allocations: 123.9 kB / 0.5575 GB, free: 54.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009743/0.8369, allocations: 0.7267 MB / 0.5582 GB, free: 53.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01121/0.8481, allocations: 5.993 MB / 0.5641 GB, free: 47.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03312/0.8813, allocations: 31.21 MB / 0.5945 GB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005388/0.8867, allocations: 2.623 MB / 0.5971 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00815/0.8949, allocations: 5.135 MB / 0.6021 GB, free: 7.637 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.895, allocations: 46.48 kB / 0.6022 GB, free: 7.582 MB / 378.7 MB Notification: Performance of pre-optimization done (n=97): time 3.697e-06/0.895, allocations: 0 / 0.6022 GB, free: 7.582 MB / 378.7 MB Notification: Performance of matching and sorting (n=105): time 0.02131/0.9163, allocations: 9.763 MB / 0.6117 GB, free: 13.62 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.772e-05/0.9164, allocations: 140.9 kB / 0.6118 GB, free: 13.45 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005078/0.9215, allocations: 2.437 MB / 0.6142 GB, free: 11 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002145/0.9218, allocations: 41.7 kB / 0.6143 GB, free: 10.95 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001663/0.9234, allocations: 2.044 MB / 0.6163 GB, free: 8.879 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005896/0.924, allocations: 434.7 kB / 0.6167 GB, free: 8.449 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004094/0.9245, allocations: 76 kB / 0.6167 GB, free: 8.375 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003378/0.9248, allocations: 486.9 kB / 0.6172 GB, free: 7.891 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002563/0.9274, allocations: 1.448 MB / 0.6186 GB, free: 6.438 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004405/0.9318, allocations: 4.047 MB / 0.6226 GB, free: 1.078 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003664/0.9355, allocations: 2.357 MB / 0.6249 GB, free: 14.72 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.245e-05/0.9356, allocations: 28 kB / 0.6249 GB, free: 14.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=532) (initialization): time 0.01231/0.9479, allocations: 6.012 MB / 0.6308 GB, free: 8.668 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.948, allocations: 48.22 kB / 0.6308 GB, free: 8.621 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001686/0.9482, allocations: 92 kB / 0.6309 GB, free: 8.531 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002446/0.9507, allocations: 0.8248 MB / 0.6317 GB, free: 7.703 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003258/0.9539, allocations: 0.9435 MB / 0.6326 GB, free: 6.758 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005843/0.9598, allocations: 4.386 MB / 0.6369 GB, free: 2.238 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003569/0.9634, allocations: 283.5 kB / 0.6372 GB, free: 1.965 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008171/0.9642, allocations: 260 kB / 0.6374 GB, free: 1.711 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 () * 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.003241/0.9675, allocations: 1.368 MB / 0.6388 GB, free: 340 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006011/0.9681, allocations: 221.1 kB / 0.639 GB, free: 116 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004715/0.9728, allocations: 2.134 MB / 0.6411 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-05/0.9729, allocations: 12 kB / 0.6411 GB, free: 13.95 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.9729, allocations: 7.953 kB / 0.6411 GB, free: 13.95 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.9729, allocations: 3.984 kB / 0.6411 GB, free: 13.94 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009468/0.9824, allocations: 5.088 MB / 0.6461 GB, free: 8.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.9824, allocations: 4 kB / 0.6461 GB, free: 8.766 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007636/0.9832, allocations: 151.8 kB / 0.6462 GB, free: 8.617 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002137/0.9854, allocations: 0.6678 MB / 0.6469 GB, free: 7.945 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001177/0.9855, allocations: 23.98 kB / 0.6469 GB, free: 7.922 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005018/0.9905, allocations: 3.936 MB / 0.6507 GB, free: 3.852 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.9905, allocations: 3.953 kB / 0.6507 GB, free: 3.848 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006255/0.9968, allocations: 4.152 MB / 0.6548 GB, free: 15.63 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008017/0.9976, allocations: 298 kB / 0.6551 GB, free: 15.32 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002304/0.9979, allocations: 12 kB / 0.6551 GB, free: 15.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009693/0.9988, allocations: 83.88 kB / 0.6552 GB, free: 15.22 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/0.999, allocations: 48.36 kB / 0.6552 GB, free: 15.17 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.016e-05/0.9991, allocations: 35.91 kB / 0.6552 GB, free: 15.14 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002925/1.002, allocations: 1.709 MB / 0.6569 GB, free: 13.42 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.2e-07/1.002, allocations: 0 / 0.6569 GB, free: 13.42 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003668/1.006, allocations: 0.6835 MB / 0.6576 GB, free: 12.74 MB / 442.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.006893/1.013, allocations: 5.12 MB / 0.6626 GB, free: 7.559 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005848/1.019, allocations: 3.469 MB / 0.666 GB, free: 4.09 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/1.019, allocations: 0.9375 kB / 0.666 GB, free: 4.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/1.02, allocations: 1.048 MB / 0.667 GB, free: 3.031 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001489/1.021, allocations: 251.5 kB / 0.6672 GB, free: 2.785 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2942/1.316, allocations: 84.81 MB / 0.75 GB, free: 58.95 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002361/1.318, allocations: 2.282 MB / 0.7523 GB, free: 58.2 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003205/1.321, allocations: 1.316 MB / 0.7536 GB, free: 58.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00155/1.323, allocations: 1.104 MB / 0.7546 GB, free: 58.1 MB / 442.7 MB Notification: Performance of SimCode: time 2.214e-06/1.323, allocations: 1.594 kB / 0.7546 GB, free: 58.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08257/1.406, allocations: 49.15 MB / 0.8026 GB, free: 24.27 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002137/1.406, allocations: 230.5 kB / 0.8029 GB, free: 24.03 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.382/4.788, allocations: 3.5 kB / 0.8029 GB, free: 24.03 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