Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001519/0.001519, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.142/2.142, allocations: 205.3 MB / 214.1 MB, free: 14.16 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001043/0.001042, allocations: 89.7 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.43e-05/2.428e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3297, allocations: 47.57 MB / 362.4 MB, free: 45.88 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1498/0.4796, allocations: 91.79 MB / 454.2 MB, free: 10.48 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003257/0.48, allocations: 87.95 kB / 454.3 MB, free: 10.39 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2632/0.7432, allocations: 57.79 MB / 0.5001 GB, free: 272 kB / 395.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.7432, allocations: 0 / 0.5001 GB, free: 272 kB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001444/0.7434, allocations: 44 kB / 0.5001 GB, free: 228 kB / 395.1 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.2736/1.017, allocations: 2.63 MB / 0.5027 GB, free: 98.74 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/1.017, allocations: 10.53 kB / 0.5027 GB, free: 98.74 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01562/1.033, allocations: 1.923 MB / 0.5046 GB, free: 98.56 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01414/1.047, allocations: 3.413 MB / 0.5079 GB, free: 98.31 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002355/1.047, allocations: 78.38 kB / 0.508 GB, free: 98.31 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001489/1.049, allocations: 140.3 kB / 0.5081 GB, free: 98.31 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01096/1.06, allocations: 4.105 MB / 0.5122 GB, free: 98.29 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01516/1.075, allocations: 6.208 MB / 0.5182 GB, free: 96.46 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001659/1.075, allocations: 41.27 kB / 0.5183 GB, free: 96.45 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000588/1.076, allocations: 20.38 kB / 0.5183 GB, free: 96.45 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001494/1.077, allocations: 0.7319 MB / 0.519 GB, free: 96.45 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04185/1.119, allocations: 30.57 MB / 0.5488 GB, free: 74.58 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003666/1.123, allocations: 2.185 MB / 0.551 GB, free: 73.31 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002208/1.125, allocations: 1.135 MB / 0.5521 GB, free: 72.84 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001575/1.127, allocations: 336.1 kB / 0.5524 GB, free: 72.54 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.021e-05/1.127, allocations: 49.47 kB / 0.5525 GB, free: 72.49 MB / 395.1 MB Notification: Performance of pre-optimization done (n=106): time 5.119e-06/1.127, allocations: 2.938 kB / 0.5525 GB, free: 72.49 MB / 395.1 MB Notification: Performance of matching and sorting (n=114): time 0.03162/1.158, allocations: 9.705 MB / 0.5619 GB, free: 68.67 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.885e-05/1.159, allocations: 135.9 kB / 0.5621 GB, free: 68.51 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003802/1.162, allocations: 2.075 MB / 0.5641 GB, free: 67.66 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003314/1.163, allocations: 25.7 kB / 0.5641 GB, free: 67.63 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001528/1.164, allocations: 2.101 MB / 0.5662 GB, free: 65.93 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006876/1.165, allocations: 450.4 kB / 0.5666 GB, free: 65.62 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003028/1.165, allocations: 0 / 0.5666 GB, free: 65.62 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0002621/1.166, allocations: 496.5 kB / 0.5671 GB, free: 65.23 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002917/1.169, allocations: 1.387 MB / 0.5684 GB, free: 64.76 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004671/1.173, allocations: 4.071 MB / 0.5724 GB, free: 60.38 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006199/1.179, allocations: 2.47 MB / 0.5748 GB, free: 58.34 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.651e-05/1.18, allocations: 31.94 kB / 0.5748 GB, free: 58.3 MB / 395.1 MB Notification: Performance of matching and sorting (n=559) (initialization): time 0.01713/1.197, allocations: 5.618 MB / 0.5803 GB, free: 53.62 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.191e-05/1.197, allocations: 44.97 kB / 0.5804 GB, free: 53.58 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001257/1.197, allocations: 96 kB / 0.5805 GB, free: 53.49 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004159/1.201, allocations: 0.8436 MB / 0.5813 GB, free: 52.91 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005847/1.207, allocations: 0.9865 MB / 0.5822 GB, free: 52.05 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00816/1.215, allocations: 4.249 MB / 0.5864 GB, free: 48.32 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00495/1.22, allocations: 204.2 kB / 0.5866 GB, free: 48.16 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008446/1.221, allocations: 267.1 kB / 0.5868 GB, free: 47.9 MB / 395.1 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.0006961/1.222, allocations: 348 kB / 0.5872 GB, free: 47.56 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008972/1.231, allocations: 2.629 MB / 0.5897 GB, free: 45.5 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008387/1.232, allocations: 218.8 kB / 0.59 GB, free: 45.28 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008455/1.24, allocations: 2.244 MB / 0.5921 GB, free: 43.34 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-05/1.24, allocations: 16 kB / 0.5922 GB, free: 43.33 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/1.24, allocations: 1.438 kB / 0.5922 GB, free: 43.33 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.809e-05/1.24, allocations: 11.94 kB / 0.5922 GB, free: 43.32 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01687/1.257, allocations: 5.137 MB / 0.5972 GB, free: 38.12 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.88e-05/1.257, allocations: 4.156 kB / 0.5972 GB, free: 38.11 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001503/1.259, allocations: 162.2 kB / 0.5973 GB, free: 37.96 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003804/1.263, allocations: 0.6755 MB / 0.598 GB, free: 37.28 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003637/1.263, allocations: 15.98 kB / 0.598 GB, free: 37.26 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007203/1.27, allocations: 3.693 MB / 0.6016 GB, free: 33.45 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.007e-06/1.27, allocations: 7.938 kB / 0.6016 GB, free: 33.45 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01148/1.282, allocations: 4.365 MB / 0.6059 GB, free: 28.98 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001646/1.284, allocations: 446.1 kB / 0.6063 GB, free: 28.52 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005745/1.284, allocations: 7.984 kB / 0.6063 GB, free: 28.51 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002039/1.286, allocations: 67.89 kB / 0.6064 GB, free: 28.45 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002917/1.287, allocations: 68.3 kB / 0.6065 GB, free: 28.38 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001352/1.287, allocations: 40.69 kB / 0.6065 GB, free: 28.34 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002747/1.29, allocations: 1.372 MB / 0.6078 GB, free: 26.95 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.41e-07/1.29, allocations: 0 / 0.6078 GB, free: 26.95 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.00532/1.295, allocations: 0.5944 MB / 0.6084 GB, free: 26.37 MB / 395.1 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.01223/1.307, allocations: 5.514 MB / 0.6138 GB, free: 20.79 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.007465/1.315, allocations: 3.323 MB / 0.6171 GB, free: 17.48 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/1.315, allocations: 1.688 kB / 0.6171 GB, free: 17.48 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002149/1.317, allocations: 1.053 MB / 0.6181 GB, free: 16.42 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001933/1.319, allocations: 190.4 kB / 0.6183 GB, free: 16.23 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01805/1.337, allocations: 5.661 MB / 0.6238 GB, free: 10.51 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004035/1.341, allocations: 2.296 MB / 0.626 GB, free: 8.188 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002793/1.344, allocations: 1.132 MB / 0.6271 GB, free: 7.055 MB / 395.1 MB Notification: Performance of SimCode: time 3.637e-06/1.344, allocations: 0 / 0.6271 GB, free: 7.055 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.083/5.427, allocations: 61.23 MB / 0.6869 GB, free: 93.65 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat