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.001131/0.001131, allocations: 200.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008777/0.0008777, allocations: 101.1 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.003e-05/2.005e-05, allocations: 4 kB / 343.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1284, allocations: 51.47 MB / 395.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4194/0.5479, allocations: 93.73 MB / 489 MB, free: 15.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/0.5481, allocations: 80.14 kB / 489.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1606/0.7088, allocations: 59.24 MB / 0.5355 GB, free: 8.926 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.7089, allocations: 0 / 0.5355 GB, free: 8.926 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001499/0.709, allocations: 44 kB / 0.5355 GB, free: 8.883 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.008537/0.7176, allocations: 2.642 MB / 0.5381 GB, free: 6.188 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/0.7176, allocations: 8.031 kB / 0.5381 GB, free: 6.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009085/0.7267, allocations: 1.927 MB / 0.54 GB, free: 4.246 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007924/0.7347, allocations: 2.761 MB / 0.5427 GB, free: 1.438 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001825/0.7349, allocations: 79.61 kB / 0.5427 GB, free: 1.363 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001246/0.7361, allocations: 144 kB / 0.5429 GB, free: 1.223 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007755/0.7439, allocations: 4.104 MB / 0.5469 GB, free: 13.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009944/0.7539, allocations: 6.209 MB / 0.553 GB, free: 6.211 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.804e-05/0.754, allocations: 35.69 kB / 0.553 GB, free: 6.176 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002896/0.7543, allocations: 20 kB / 0.553 GB, free: 6.156 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009876/0.7553, allocations: 0.7345 MB / 0.5537 GB, free: 5.422 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3283/1.084, allocations: 30.53 MB / 0.5835 GB, free: 76.53 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002436/1.086, allocations: 2.178 MB / 0.5857 GB, free: 75.87 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001213/1.087, allocations: 1.132 MB / 0.5868 GB, free: 75.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007774/1.088, allocations: 337 kB / 0.5871 GB, free: 75.56 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/1.088, allocations: 44.69 kB / 0.5871 GB, free: 75.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=106): time 4.608e-06/1.088, allocations: 0 / 0.5871 GB, free: 75.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=114): time 0.01961/1.108, allocations: 9.697 MB / 0.5966 GB, free: 73.69 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.074e-05/1.108, allocations: 145.4 kB / 0.5968 GB, free: 73.53 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004649/1.113, allocations: 2.061 MB / 0.5988 GB, free: 73.26 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004567/1.113, allocations: 28.8 kB / 0.5988 GB, free: 73.23 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001813/1.115, allocations: 2.072 MB / 0.6008 GB, free: 72.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006116/1.116, allocations: 457.1 kB / 0.6013 GB, free: 71.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/1.116, allocations: 0 / 0.6013 GB, free: 71.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003021/1.116, allocations: 0.5385 MB / 0.6018 GB, free: 71.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00191/1.118, allocations: 1.384 MB / 0.6031 GB, free: 71.58 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003617/1.122, allocations: 4.068 MB / 0.6071 GB, free: 68.06 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003949/1.126, allocations: 2.484 MB / 0.6095 GB, free: 68.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.295e-05/1.126, allocations: 26.03 kB / 0.6096 GB, free: 68.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=559) (initialization): time 0.01047/1.136, allocations: 5.674 MB / 0.6151 GB, free: 67.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.555e-05/1.136, allocations: 46.53 kB / 0.6151 GB, free: 67.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001155/1.136, allocations: 98.23 kB / 0.6152 GB, free: 67.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002621/1.139, allocations: 0.8462 MB / 0.6161 GB, free: 67.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004441/1.143, allocations: 0.9887 MB / 0.617 GB, free: 67.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006767/1.15, allocations: 4.246 MB / 0.6212 GB, free: 65.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004196/1.154, allocations: 208.2 kB / 0.6214 GB, free: 65.92 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008335/1.155, allocations: 272.2 kB / 0.6216 GB, free: 65.89 MB / 442.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.0007535/1.156, allocations: 342.6 kB / 0.622 GB, free: 65.6 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005564/1.162, allocations: 2.646 MB / 0.6245 GB, free: 64.88 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004616/1.162, allocations: 214.7 kB / 0.6247 GB, free: 64.76 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005004/1.167, allocations: 2.237 MB / 0.6269 GB, free: 64.16 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.801e-05/1.167, allocations: 20.61 kB / 0.6269 GB, free: 64.16 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/1.167, allocations: 6.594 kB / 0.627 GB, free: 64.16 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/1.167, allocations: 6.938 kB / 0.627 GB, free: 64.16 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01189/1.179, allocations: 5.142 MB / 0.632 GB, free: 62.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/1.179, allocations: 2.031 kB / 0.632 GB, free: 62.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008513/1.18, allocations: 162.5 kB / 0.6321 GB, free: 62.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002403/1.183, allocations: 0.6821 MB / 0.6328 GB, free: 62.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001342/1.183, allocations: 9.938 kB / 0.6328 GB, free: 62.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005397/1.188, allocations: 3.703 MB / 0.6364 GB, free: 60.32 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/1.188, allocations: 2.969 kB / 0.6364 GB, free: 60.32 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007378/1.195, allocations: 4.384 MB / 0.6407 GB, free: 58.53 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008529/1.196, allocations: 266.5 kB / 0.641 GB, free: 58.31 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002286/1.197, allocations: 17.52 kB / 0.641 GB, free: 58.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/1.198, allocations: 68.12 kB / 0.6411 GB, free: 58.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001814/1.198, allocations: 57.11 kB / 0.6411 GB, free: 58.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.579e-05/1.198, allocations: 33.92 kB / 0.6411 GB, free: 58.29 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002446/1.2, allocations: 1.367 MB / 0.6425 GB, free: 57.75 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.2, allocations: 0 / 0.6425 GB, free: 57.75 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006009/1.206, allocations: 0.6018 MB / 0.6431 GB, free: 57.75 MB / 442.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.007775/1.214, allocations: 5.527 MB / 0.6485 GB, free: 54.97 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005714/1.22, allocations: 3.328 MB / 0.6517 GB, free: 53.78 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.22, allocations: 0 / 0.6517 GB, free: 53.78 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001321/1.221, allocations: 1.044 MB / 0.6527 GB, free: 53.35 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00165/1.223, allocations: 189.1 kB / 0.6529 GB, free: 53.25 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01174/1.235, allocations: 5.369 MB / 0.6581 GB, free: 51.35 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001917/1.237, allocations: 2.29 MB / 0.6604 GB, free: 50.31 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003091/1.24, allocations: 1.407 MB / 0.6618 GB, free: 50.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001225/1.241, allocations: 1.091 MB / 0.6628 GB, free: 49.32 MB / 442.7 MB Notification: Performance of SimCode: time 1.213e-06/1.241, allocations: 0 / 0.6628 GB, free: 49.32 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08178/1.323, allocations: 45.91 MB / 0.7077 GB, free: 17.75 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001531/1.323, allocations: 165 kB / 0.7078 GB, free: 17.55 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.239/4.562, allocations: 7.031 kB / 0.7078 GB, free: 17.55 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