Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001236, allocations: 96.92 kB / 16.3 MB, free: 5.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008753/0.0008755, allocations: 185.8 kB / 17.2 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 223.2 MB / 241.1 MB, free: 260 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003221/0.0003222, allocations: 4 kB / 300.8 MB, free: 6.32 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1247, allocations: 50.42 MB / 351.2 MB, free: 3.891 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01615/0.1409, allocations: 15.41 MB / 366.6 MB, free: 4.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2173/0.3583, allocations: 4.848 MB / 371.5 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00272/0.361, allocations: 72.06 kB / 371.6 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001855/0.3629, allocations: 0.7152 MB / 372.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006707/0.3696, allocations: 2.414 MB / 374.7 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001357/0.371, allocations: 466.1 kB / 375.1 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003371/0.3744, allocations: 1.459 MB / 376.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002747/0.3772, allocations: 1.559 MB / 378.2 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00142/0.3786, allocations: 0.6318 MB / 378.8 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001498/0.3801, allocations: 0.846 MB / 379.6 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00037/0.3805, allocations: 81.84 kB / 379.7 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001882/0.3824, allocations: 0.7429 MB / 380.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001338/0.3837, allocations: 0.9129 MB / 381.4 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008252/0.3846, allocations: 0.5029 MB / 381.9 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005625/0.3902, allocations: 3.071 MB / 385 MB, free: 7.094 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.3903, allocations: 0 / 385 MB, free: 7.094 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.01e-06/0.3903, allocations: 1.25 kB / 385 MB, free: 7.094 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001979/0.3905, allocations: 0 / 385 MB, free: 7.094 MB / 302.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.009635/0.4001, allocations: 2.593 MB / 387.5 MB, free: 5.445 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.635e-05/0.4002, allocations: 9.094 kB / 387.6 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001565/0.4018, allocations: 465.8 kB / 388 MB, free: 5.297 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006922/0.4087, allocations: 1.899 MB / 389.9 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004115/0.4129, allocations: 1.458 MB / 391.4 MB, free: 3.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/0.4131, allocations: 130.2 kB / 391.5 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000535/0.4136, allocations: 160.9 kB / 391.7 MB, free: 3.871 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01218/0.4258, allocations: 6.579 MB / 398.2 MB, free: 1.559 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.307e-05/0.4259, allocations: 29.91 kB / 398.3 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002611/0.4262, allocations: 81.55 kB / 398.3 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002124/0.4283, allocations: 1.468 MB / 399.8 MB, free: 320 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01046/0.4388, allocations: 5.88 MB / 405.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03586/0.4747, allocations: 25.8 MB / 431.5 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005889/0.4806, allocations: 2.59 MB / 434.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009119/0.4898, allocations: 4.846 MB / 438.9 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.107e-05/0.4899, allocations: 42.56 kB / 439 MB, free: 9.617 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.967e-06/0.4899, allocations: 0 / 439 MB, free: 9.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=105): time 0.02426/0.5141, allocations: 10.03 MB / 449 MB, free: 15.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.108e-05/0.5143, allocations: 141 kB / 449.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0046/0.5189, allocations: 2.814 MB / 451.9 MB, free: 12.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003059/0.5192, allocations: 33.7 kB / 452 MB, free: 12.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001763/0.521, allocations: 2.055 MB / 454 MB, free: 10.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007679/0.5218, allocations: 430.6 kB / 454.4 MB, free: 9.902 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001984/0.522, allocations: 80 kB / 454.5 MB, free: 9.824 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003536/0.5223, allocations: 483 kB / 455 MB, free: 9.344 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00249/0.5248, allocations: 1.421 MB / 456.4 MB, free: 7.918 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004564/0.5294, allocations: 4.032 MB / 460.5 MB, free: 2.574 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003852/0.5333, allocations: 2.34 MB / 462.8 MB, free: 244 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-05/0.5334, allocations: 28 kB / 462.8 MB, free: 216 kB / 366.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01181/0.5452, allocations: 5.967 MB / 468.8 MB, free: 10.24 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.329e-05/0.5453, allocations: 44 kB / 468.8 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001086/0.5454, allocations: 96 kB / 468.9 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002365/0.5478, allocations: 0.8303 MB / 469.8 MB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00276/0.5506, allocations: 0.9396 MB / 470.7 MB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005718/0.5563, allocations: 4.437 MB / 475.1 MB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003669/0.56, allocations: 243.6 kB / 475.4 MB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006796/0.5607, allocations: 260.1 kB / 475.6 MB, free: 3.273 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 425 * 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 (498): * Single equations (assignments): 494 * 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.002767/0.5635, allocations: 1.372 MB / 477 MB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004922/0.564, allocations: 229 kB / 477.2 MB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004189/0.5682, allocations: 2.126 MB / 479.3 MB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.802e-05/0.5682, allocations: 15.94 kB / 479.4 MB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/0.5682, allocations: 8 kB / 479.4 MB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.5683, allocations: 3.984 kB / 479.4 MB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01018/0.5784, allocations: 5.092 MB / 484.5 MB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/0.5785, allocations: 0 / 484.5 MB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008063/0.5793, allocations: 155.8 kB / 484.6 MB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00204/0.5814, allocations: 0.6835 MB / 485.3 MB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/0.5815, allocations: 18.73 kB / 485.3 MB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004865/0.5864, allocations: 3.986 MB / 489.3 MB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.5864, allocations: 3.938 kB / 489.3 MB, free: 5.355 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006481/0.5929, allocations: 4.138 MB / 493.4 MB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009999/0.5939, allocations: 295.8 kB / 493.7 MB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002935/0.5942, allocations: 24.06 kB / 493.8 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/0.5953, allocations: 70.55 kB / 493.8 MB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002175/0.5955, allocations: 60.3 kB / 493.9 MB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.5957, allocations: 31.98 kB / 493.9 MB, free: 0.668 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003023/0.5987, allocations: 1.776 MB / 495.7 MB, free: 14.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.5987, allocations: 0 / 495.7 MB, free: 14.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004617/0.6033, allocations: 0.6874 MB / 496.4 MB, free: 14.2 MB / 414.1 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.006905/0.6103, allocations: 5.133 MB / 0.4898 GB, free: 9.012 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006056/0.6163, allocations: 3.44 MB / 0.4931 GB, free: 5.586 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.6164, allocations: 0 / 0.4931 GB, free: 5.586 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001446/0.6179, allocations: 1.032 MB / 0.4941 GB, free: 4.539 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001678/0.6195, allocations: 239.5 kB / 0.4944 GB, free: 4.305 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2684/0.888, allocations: 85.36 MB / 0.5777 GB, free: 110.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00256/0.8906, allocations: 2.286 MB / 0.5799 GB, free: 109.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00337/0.894, allocations: 1.327 MB / 0.5812 GB, free: 109.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001402/0.8954, allocations: 1.098 MB / 0.5823 GB, free: 108.7 MB / 446.1 MB Notification: Performance of SimCode: time 8.62e-07/0.8954, allocations: 1.375 kB / 0.5823 GB, free: 108.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0751/0.9705, allocations: 49.67 MB / 0.6308 GB, free: 65.49 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002254/0.9708, allocations: 240.4 kB / 0.631 GB, free: 65.24 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.078/4.049, allocations: 3.5 kB / 0.631 GB, free: 65.24 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat