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.002258/0.002258, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 225.4 MB / 240.1 MB, free: 15.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001065/0.001065, allocations: 91.33 kB / 292.1 MB, free: 5.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.737e-05/3.739e-05, allocations: 4 kB / 350.7 MB, free: 2.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1283, allocations: 51.48 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4321/0.5605, allocations: 94.4 MB / 496.5 MB, free: 10.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.5609, allocations: 87.69 kB / 496.6 MB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1635/0.7244, allocations: 60.18 MB / 0.5437 GB, free: 116 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.7244, allocations: 0 / 0.5437 GB, free: 116 kB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001514/0.7246, allocations: 44 kB / 0.5438 GB, free: 72 kB / 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.009179/0.7338, allocations: 2.649 MB / 0.5464 GB, free: 13.37 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.7339, allocations: 15.91 kB / 0.5464 GB, free: 13.36 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001923/0.7358, allocations: 494.3 kB / 0.5469 GB, free: 12.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008697/0.7445, allocations: 1.931 MB / 0.5487 GB, free: 10.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007978/0.7525, allocations: 2.757 MB / 0.5514 GB, free: 8.121 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000247/0.7528, allocations: 184.4 kB / 0.5516 GB, free: 7.941 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001551/0.7544, allocations: 243.9 kB / 0.5518 GB, free: 7.703 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01571/0.7701, allocations: 6.781 MB / 0.5585 GB, free: 224 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000219/0.7704, allocations: 39.59 kB / 0.5585 GB, free: 184 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001173/0.7716, allocations: 123.9 kB / 0.5586 GB, free: 60 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001325/0.7729, allocations: 0.7306 MB / 0.5593 GB, free: 15.33 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01283/0.7858, allocations: 5.846 MB / 0.565 GB, free: 9.477 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3388/1.125, allocations: 31.2 MB / 0.5955 GB, free: 71.34 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005345/1.13, allocations: 2.606 MB / 0.5981 GB, free: 70.68 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00149/1.131, allocations: 1.194 MB / 0.5992 GB, free: 70.65 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008046/1.14, allocations: 5.146 MB / 0.6042 GB, free: 69.25 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/1.14, allocations: 39.41 kB / 0.6043 GB, free: 69.21 MB / 442.7 MB Notification: Performance of pre-optimization done (n=97): time 5.03e-06/1.14, allocations: 0 / 0.6043 GB, free: 69.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=105): time 0.01787/1.157, allocations: 7.985 MB / 0.6121 GB, free: 67.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.625e-05/1.158, allocations: 135.3 kB / 0.6122 GB, free: 67.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003856/1.161, allocations: 2.387 MB / 0.6145 GB, free: 66.86 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.601e-05/1.162, allocations: 39.39 kB / 0.6146 GB, free: 66.82 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001171/1.163, allocations: 2.048 MB / 0.6166 GB, free: 65.75 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003234/1.163, allocations: 428.7 kB / 0.617 GB, free: 65.53 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001541/1.163, allocations: 79.33 kB / 0.6171 GB, free: 65.53 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002332/1.163, allocations: 490.2 kB / 0.6175 GB, free: 65.21 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001833/1.165, allocations: 1.383 MB / 0.6189 GB, free: 65.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003484/1.169, allocations: 3.987 MB / 0.6228 GB, free: 61.82 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005218/1.174, allocations: 2.332 MB / 0.6251 GB, free: 61.81 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001482/1.174, allocations: 26.56 kB / 0.6251 GB, free: 61.81 MB / 442.7 MB Notification: Performance of matching and sorting (n=532) (initialization): time 0.01355/1.188, allocations: 5.89 MB / 0.6308 GB, free: 61.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001083/1.188, allocations: 44.56 kB / 0.6309 GB, free: 61.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001631/1.188, allocations: 97.81 kB / 0.631 GB, free: 61.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002517/1.191, allocations: 0.8238 MB / 0.6318 GB, free: 61.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003055/1.194, allocations: 0.9416 MB / 0.6327 GB, free: 61.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006831/1.201, allocations: 4.29 MB / 0.6369 GB, free: 58.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004034/1.205, allocations: 278.9 kB / 0.6371 GB, free: 58.81 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007012/1.205, allocations: 260 kB / 0.6374 GB, free: 58.78 MB / 442.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.0007145/1.206, allocations: 433.4 kB / 0.6378 GB, free: 58.42 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004384/1.207, allocations: 227.1 kB / 0.638 GB, free: 58.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005019/1.212, allocations: 2.123 MB / 0.6401 GB, free: 57.65 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.833e-05/1.212, allocations: 17.06 kB / 0.6401 GB, free: 57.65 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/1.212, allocations: 3.344 kB / 0.6401 GB, free: 57.65 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.491e-05/1.212, allocations: 5.062 kB / 0.6401 GB, free: 57.65 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009331/1.221, allocations: 5.078 MB / 0.6451 GB, free: 55.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/1.221, allocations: 1.219 kB / 0.6451 GB, free: 55.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006658/1.222, allocations: 147.1 kB / 0.6452 GB, free: 55.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001946/1.224, allocations: 0.677 MB / 0.6459 GB, free: 55.77 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.268e-05/1.224, allocations: 17.73 kB / 0.6459 GB, free: 55.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004256/1.228, allocations: 3.834 MB / 0.6496 GB, free: 53.71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/1.228, allocations: 3.75 kB / 0.6497 GB, free: 53.71 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005821/1.234, allocations: 4.127 MB / 0.6537 GB, free: 52.03 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007706/1.235, allocations: 291 kB / 0.654 GB, free: 51.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002105/1.235, allocations: 11.44 kB / 0.654 GB, free: 51.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009767/1.236, allocations: 91.09 kB / 0.6541 GB, free: 51.77 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/1.236, allocations: 61.31 kB / 0.6541 GB, free: 51.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.815e-05/1.236, allocations: 28.33 kB / 0.6541 GB, free: 51.75 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002245/1.238, allocations: 1.648 MB / 0.6558 GB, free: 51.15 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.238, allocations: 0 / 0.6558 GB, free: 51.15 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003694/1.242, allocations: 0.6883 MB / 0.6564 GB, free: 51.06 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 () * 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.005988/1.248, allocations: 5.105 MB / 0.6614 GB, free: 48.55 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005037/1.253, allocations: 3.404 MB / 0.6647 GB, free: 47.32 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/1.253, allocations: 0 / 0.6647 GB, free: 47.32 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001175/1.254, allocations: 1.034 MB / 0.6657 GB, free: 46.89 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001341/1.256, allocations: 241.5 kB / 0.666 GB, free: 46.77 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01055/1.266, allocations: 5.419 MB / 0.6713 GB, free: 44.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002163/1.268, allocations: 2.29 MB / 0.6735 GB, free: 43.77 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00317/1.272, allocations: 1.32 MB / 0.6748 GB, free: 43.67 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001323/1.273, allocations: 1.104 MB / 0.6759 GB, free: 42.79 MB / 442.7 MB Notification: Performance of SimCode: time 2.034e-06/1.273, allocations: 3.938 kB / 0.6759 GB, free: 42.79 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0757/1.349, allocations: 49.32 MB / 0.724 GB, free: 4.133 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001646/1.349, allocations: 198.9 kB / 0.7242 GB, free: 3.914 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.523/4.872, allocations: 0 / 0.7242 GB, free: 3.914 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