Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.00112/0.00112, allocations: 181 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.275/1.275, allocations: 205.4 MB / 223.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008044/0.0008044, allocations: 86.7 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002312/0.0002312, allocations: 8 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2106, allocations: 47.58 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09617/0.3068, allocations: 92.54 MB / 468.5 MB, free: 4.074 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002416/0.307, allocations: 91.94 kB / 468.6 MB, free: 3.984 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3223/0.6293, allocations: 58.76 MB / 0.515 GB, free: 94.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.506e-06/0.6294, allocations: 0 / 0.515 GB, free: 94.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002004/0.6296, allocations: 53.97 kB / 0.515 GB, free: 94.45 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.01298/0.6426, allocations: 2.78 MB / 0.5177 GB, free: 93.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.224e-05/0.6427, allocations: 11.25 kB / 0.5177 GB, free: 93.11 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002944/0.6457, allocations: 494.1 kB / 0.5182 GB, free: 93.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009048/0.6547, allocations: 1.927 MB / 0.5201 GB, free: 92.44 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01101/0.6658, allocations: 3.43 MB / 0.5234 GB, free: 91.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002947/0.6662, allocations: 184.5 kB / 0.5236 GB, free: 91.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001793/0.668, allocations: 242.6 kB / 0.5238 GB, free: 90.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01742/0.6854, allocations: 6.856 MB / 0.5305 GB, free: 84.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002348/0.6857, allocations: 43.59 kB / 0.5306 GB, free: 84.37 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001604/0.6874, allocations: 125.9 kB / 0.5307 GB, free: 84.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001231/0.6886, allocations: 0.7266 MB / 0.5314 GB, free: 83.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01225/0.7009, allocations: 5.993 MB / 0.5373 GB, free: 77.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03598/0.737, allocations: 31.23 MB / 0.5678 GB, free: 45.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005142/0.7422, allocations: 2.635 MB / 0.5703 GB, free: 42.67 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007651/0.7498, allocations: 5.14 MB / 0.5753 GB, free: 37.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.7499, allocations: 42.5 kB / 0.5754 GB, free: 37.36 MB / 378.7 MB Notification: Performance of pre-optimization done (n=97): time 3.076e-06/0.7499, allocations: 4 kB / 0.5754 GB, free: 37.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=105): time 0.02052/0.7704, allocations: 9.813 MB / 0.585 GB, free: 27.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.519e-05/0.7705, allocations: 144.9 kB / 0.5851 GB, free: 27.17 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003906/0.7744, allocations: 2.453 MB / 0.5875 GB, free: 24.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001636/0.7746, allocations: 45.61 kB / 0.5876 GB, free: 24.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001084/0.7757, allocations: 2.047 MB / 0.5896 GB, free: 22.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004164/0.7761, allocations: 432.7 kB / 0.59 GB, free: 22.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002712/0.7764, allocations: 76 kB / 0.59 GB, free: 22.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002456/0.7767, allocations: 494.9 kB / 0.5905 GB, free: 21.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002118/0.7788, allocations: 1.445 MB / 0.5919 GB, free: 20.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003077/0.7819, allocations: 4.043 MB / 0.5959 GB, free: 14.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00296/0.7848, allocations: 2.357 MB / 0.5982 GB, free: 12.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.257e-05/0.7849, allocations: 32 kB / 0.5982 GB, free: 12.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=532) (initialization): time 0.009091/0.794, allocations: 6.006 MB / 0.6041 GB, free: 6.414 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.353e-05/0.7941, allocations: 46.66 kB / 0.6041 GB, free: 6.371 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001201/0.7943, allocations: 92 kB / 0.6042 GB, free: 6.281 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002102/0.7964, allocations: 0.8282 MB / 0.605 GB, free: 5.449 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002535/0.7989, allocations: 0.9435 MB / 0.6059 GB, free: 4.504 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004936/0.8039, allocations: 4.393 MB / 0.6102 GB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003179/0.8071, allocations: 283.5 kB / 0.6105 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006119/0.8077, allocations: 256 kB / 0.6107 GB, free: 15.46 MB / 394.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.00285/0.8106, allocations: 1.38 MB / 0.6121 GB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006018/0.8112, allocations: 229 kB / 0.6123 GB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004466/0.8157, allocations: 2.13 MB / 0.6144 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.361e-05/0.8157, allocations: 15.52 kB / 0.6144 GB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.606e-05/0.8157, allocations: 4 kB / 0.6144 GB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-05/0.8158, allocations: 7.969 kB / 0.6144 GB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01197/0.8277, allocations: 5.084 MB / 0.6194 GB, free: 6.523 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-05/0.8278, allocations: 4 kB / 0.6194 GB, free: 6.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007071/0.8285, allocations: 143.8 kB / 0.6195 GB, free: 6.379 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002078/0.8306, allocations: 0.6795 MB / 0.6202 GB, free: 5.695 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/0.8307, allocations: 16 kB / 0.6202 GB, free: 5.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005233/0.836, allocations: 3.949 MB / 0.624 GB, free: 1.598 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.836, allocations: 0 / 0.624 GB, free: 1.598 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006473/0.8425, allocations: 4.154 MB / 0.6281 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001287/0.8438, allocations: 461.9 kB / 0.6285 GB, free: 12.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000463/0.8443, allocations: 12 kB / 0.6286 GB, free: 12.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.8455, allocations: 83.88 kB / 0.6286 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001754/0.8457, allocations: 58.73 kB / 0.6287 GB, free: 12.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.011e-05/0.8458, allocations: 32 kB / 0.6287 GB, free: 12.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003541/0.8493, allocations: 1.713 MB / 0.6304 GB, free: 11 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8493, allocations: 0 / 0.6304 GB, free: 11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00394/0.8533, allocations: 0.6865 MB / 0.6311 GB, free: 10.32 MB / 410.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.007233/0.8605, allocations: 5.107 MB / 0.6361 GB, free: 5.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00612/0.8666, allocations: 3.472 MB / 0.6394 GB, free: 1.688 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.8667, allocations: 0 / 0.6394 GB, free: 1.688 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001465/0.8681, allocations: 1.048 MB / 0.6405 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001525/0.8697, allocations: 249.9 kB / 0.6407 GB, free: 392 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2286/1.098, allocations: 84.87 MB / 0.7236 GB, free: 67.58 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002583/1.101, allocations: 2.29 MB / 0.7258 GB, free: 66.83 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003118/1.104, allocations: 1.321 MB / 0.7271 GB, free: 66.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001504/1.106, allocations: 1.099 MB / 0.7282 GB, free: 66.77 MB / 426.7 MB Notification: Performance of SimCode: time 1.092e-06/1.106, allocations: 0 / 0.7282 GB, free: 66.77 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07176/1.177, allocations: 49.23 MB / 0.7763 GB, free: 34.32 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/1.178, allocations: 230.9 kB / 0.7765 GB, free: 34.08 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.134/4.311, allocations: 0 / 0.7765 GB, free: 34.08 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat