Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001539/0.001539, allocations: 197 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.255/1.255, allocations: 227.2 MB / 245 MB, free: 7.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009722/0.0009721, allocations: 107.6 kB / 297.3 MB, free: 6.176 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002516/0.0002516, allocations: 8 kB / 358 MB, free: 9.422 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2314, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1142/0.3456, allocations: 94.47 MB / 0.4922 GB, free: 12.11 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002382/0.3459, allocations: 92.56 kB / 0.4923 GB, free: 12.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3422/0.6881, allocations: 60.15 MB / 0.551 GB, free: 59.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.6881, allocations: 0 / 0.551 GB, free: 59.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001131/0.6882, allocations: 51.98 kB / 0.551 GB, free: 59.82 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.007328/0.6956, allocations: 2.786 MB / 0.5538 GB, free: 56.97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.6956, allocations: 15.97 kB / 0.5538 GB, free: 56.95 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001671/0.6973, allocations: 0.4905 MB / 0.5543 GB, free: 56.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007355/0.7047, allocations: 1.923 MB / 0.5561 GB, free: 54.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008001/0.7127, allocations: 2.773 MB / 0.5588 GB, free: 51.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000232/0.713, allocations: 184.7 kB / 0.559 GB, free: 51.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001458/0.7145, allocations: 247.8 kB / 0.5593 GB, free: 51.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01249/0.727, allocations: 6.856 MB / 0.566 GB, free: 43.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001513/0.7272, allocations: 39.62 kB / 0.566 GB, free: 43.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009688/0.7282, allocations: 119.9 kB / 0.5661 GB, free: 43.56 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009751/0.7291, allocations: 0.7306 MB / 0.5668 GB, free: 42.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009476/0.7386, allocations: 5.989 MB / 0.5727 GB, free: 36.83 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02919/0.7679, allocations: 31.22 MB / 0.6032 GB, free: 4.598 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005106/0.773, allocations: 2.621 MB / 0.6057 GB, free: 1.824 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009055/0.7821, allocations: 5.135 MB / 0.6107 GB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.7822, allocations: 38.56 kB / 0.6108 GB, free: 12.49 MB / 394.7 MB Notification: Performance of pre-optimization done (n=97): time 4.689e-06/0.7822, allocations: 3.938 kB / 0.6108 GB, free: 12.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=105): time 0.02416/0.8064, allocations: 9.776 MB / 0.6203 GB, free: 2.508 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.142e-05/0.8066, allocations: 137 kB / 0.6204 GB, free: 2.344 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005896/0.8125, allocations: 2.441 MB / 0.6228 GB, free: 15.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001851/0.8127, allocations: 41.69 kB / 0.6229 GB, free: 15.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002127/0.8148, allocations: 2.048 MB / 0.6249 GB, free: 13.76 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000676/0.8155, allocations: 426.7 kB / 0.6253 GB, free: 13.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003937/0.8159, allocations: 80 kB / 0.6254 GB, free: 13.26 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004042/0.8163, allocations: 486.9 kB / 0.6258 GB, free: 12.78 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002801/0.8191, allocations: 1.448 MB / 0.6272 GB, free: 11.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005062/0.8242, allocations: 4.047 MB / 0.6312 GB, free: 5.965 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00397/0.8282, allocations: 2.356 MB / 0.6335 GB, free: 3.609 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.889e-05/0.8283, allocations: 28 kB / 0.6335 GB, free: 3.582 MB / 410.7 MB Notification: Performance of matching and sorting (n=532) (initialization): time 0.01117/0.8395, allocations: 6.005 MB / 0.6394 GB, free: 13.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.478e-05/0.8396, allocations: 48.25 kB / 0.6394 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.552e-05/0.8397, allocations: 96 kB / 0.6395 GB, free: 13.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002348/0.8421, allocations: 0.824 MB / 0.6403 GB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003009/0.8451, allocations: 0.9474 MB / 0.6412 GB, free: 11.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006058/0.8511, allocations: 4.384 MB / 0.6455 GB, free: 7.137 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00363/0.8548, allocations: 283.6 kB / 0.6458 GB, free: 6.859 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005238/0.8553, allocations: 256 kB / 0.646 GB, free: 6.609 MB / 426.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.002916/0.8583, allocations: 1.368 MB / 0.6474 GB, free: 5.227 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006552/0.8589, allocations: 236.9 kB / 0.6476 GB, free: 4.992 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004523/0.8635, allocations: 2.126 MB / 0.6497 GB, free: 2.848 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.39e-05/0.8635, allocations: 12 kB / 0.6497 GB, free: 2.836 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.504e-05/0.8635, allocations: 7.938 kB / 0.6497 GB, free: 2.828 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.8636, allocations: 3.984 kB / 0.6497 GB, free: 2.824 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01288/0.8764, allocations: 5.08 MB / 0.6547 GB, free: 13.67 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.985e-05/0.8765, allocations: 0.8438 kB / 0.6547 GB, free: 13.67 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000832/0.8774, allocations: 147.8 kB / 0.6548 GB, free: 13.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002213/0.8796, allocations: 0.6678 MB / 0.6555 GB, free: 12.85 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001346/0.8797, allocations: 27.95 kB / 0.6555 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005653/0.8854, allocations: 3.94 MB / 0.6593 GB, free: 8.746 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.8854, allocations: 3.938 kB / 0.6593 GB, free: 8.742 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006542/0.892, allocations: 4.153 MB / 0.6634 GB, free: 4.527 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009212/0.8929, allocations: 298.1 kB / 0.6637 GB, free: 4.215 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002286/0.8932, allocations: 12 kB / 0.6637 GB, free: 4.203 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.8942, allocations: 83.88 kB / 0.6638 GB, free: 4.121 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001952/0.8944, allocations: 56.3 kB / 0.6638 GB, free: 4.066 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-05/0.8945, allocations: 32 kB / 0.6639 GB, free: 4.035 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002888/0.8974, allocations: 1.705 MB / 0.6655 GB, free: 2.32 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.8974, allocations: 0 / 0.6655 GB, free: 2.32 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003325/0.9008, allocations: 0.6835 MB / 0.6662 GB, free: 1.637 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.1978/1.099, allocations: 5.128 MB / 0.6712 GB, free: 119.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005598/1.104, allocations: 3.476 MB / 0.6746 GB, free: 119.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/1.104, allocations: 3.219 kB / 0.6746 GB, free: 119.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001249/1.106, allocations: 1.031 MB / 0.6756 GB, free: 119 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/1.107, allocations: 235.1 kB / 0.6758 GB, free: 119 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04177/1.149, allocations: 84.82 MB / 0.7587 GB, free: 45.38 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001992/1.151, allocations: 2.292 MB / 0.7609 GB, free: 44.34 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002878/1.154, allocations: 1.317 MB / 0.7622 GB, free: 44.24 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/1.155, allocations: 1.096 MB / 0.7632 GB, free: 43.37 MB / 442.7 MB Notification: Performance of SimCode: time 7.01e-07/1.155, allocations: 6.141 kB / 0.7633 GB, free: 43.37 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06282/1.217, allocations: 49.18 MB / 0.8113 GB, free: 8.285 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001423/1.218, allocations: 225.6 kB / 0.8115 GB, free: 8.047 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.068/4.286, allocations: 0 / 0.8115 GB, free: 8.047 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat