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.001009/0.001009, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.001168/0.001168, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.462/1.462, allocations: 223.2 MB / 241.2 MB, free: 5.258 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002834/0.0002834, allocations: 6.719 kB / 300.9 MB, free: 5.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1215, allocations: 50.44 MB / 351.4 MB, free: 11.3 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01577/0.1373, allocations: 16.27 MB / 367.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01035/0.1477, allocations: 4.737 MB / 372.4 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002616/0.1504, allocations: 71.81 kB / 372.4 MB, free: 6.148 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001955/0.1523, allocations: 0.7853 MB / 373.2 MB, free: 5.359 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007202/0.1596, allocations: 2.647 MB / 375.9 MB, free: 2.703 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001759/0.1613, allocations: 475.2 kB / 376.3 MB, free: 2.238 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004462/0.1658, allocations: 2.803 MB / 379.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003402/0.1692, allocations: 1.565 MB / 380.7 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002042/0.1713, allocations: 0.7588 MB / 381.5 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002387/0.1737, allocations: 1.157 MB / 382.6 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006408/0.1744, allocations: 80 kB / 382.7 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002139/0.1765, allocations: 0.7605 MB / 383.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001658/0.1782, allocations: 0.9778 MB / 384.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001183/0.1794, allocations: 0.5039 MB / 384.9 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004412/0.1838, allocations: 3.071 MB / 388 MB, free: 6.496 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.999e-06/0.1839, allocations: 4 kB / 388 MB, free: 6.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.938e-06/0.1839, allocations: 0 / 388 MB, free: 6.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002025/0.1841, allocations: 0 / 388 MB, free: 6.492 MB / 318.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.006714/0.1908, allocations: 2.543 MB / 390.5 MB, free: 3.891 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.485e-05/0.1909, allocations: 8.031 kB / 390.6 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001414/0.1923, allocations: 466.2 kB / 391 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006007/0.1983, allocations: 1.619 MB / 392.6 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004328/0.2027, allocations: 1.675 MB / 394.3 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001352/0.2028, allocations: 123.1 kB / 394.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003521/0.2032, allocations: 163.9 kB / 394.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01234/0.2155, allocations: 6.534 MB / 401.1 MB, free: 8.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.643e-05/0.2157, allocations: 31.66 kB / 401.2 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004198/0.2161, allocations: 83.89 kB / 401.2 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00271/0.2188, allocations: 1.468 MB / 402.7 MB, free: 7.191 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01296/0.2318, allocations: 5.814 MB / 408.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2747/0.5066, allocations: 25.73 MB / 434.2 MB, free: 47.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005589/0.5122, allocations: 2.571 MB / 436.8 MB, free: 46.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001959/0.5142, allocations: 1.213 MB / 438 MB, free: 46.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007662/0.5219, allocations: 4.806 MB / 442.8 MB, free: 45.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.522, allocations: 47.11 kB / 442.9 MB, free: 45.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 4.579e-06/0.522, allocations: 1.312 kB / 442.9 MB, free: 45.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=105): time 0.02223/0.5442, allocations: 9.751 MB / 452.6 MB, free: 42.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.644e-05/0.5443, allocations: 139.8 kB / 452.8 MB, free: 42.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003377/0.5477, allocations: 2.706 MB / 455.5 MB, free: 40.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001195/0.5478, allocations: 38.06 kB / 455.5 MB, free: 40.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001072/0.5489, allocations: 2.055 MB / 457.6 MB, free: 39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003581/0.5493, allocations: 432 kB / 458 MB, free: 38.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001577/0.5494, allocations: 78.66 kB / 458.1 MB, free: 38.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002103/0.5496, allocations: 483.8 kB / 458.5 MB, free: 38.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001859/0.5515, allocations: 1.425 MB / 460 MB, free: 37.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003121/0.5546, allocations: 4.047 MB / 464 MB, free: 32.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002725/0.5574, allocations: 2.334 MB / 466.3 MB, free: 30.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.385e-05/0.5574, allocations: 28 kB / 466.4 MB, free: 30.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.008675/0.5661, allocations: 5.98 MB / 472.4 MB, free: 24.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.424e-05/0.5662, allocations: 44 kB / 472.4 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.73e-05/0.5663, allocations: 98.58 kB / 472.5 MB, free: 23.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002097/0.5684, allocations: 0.835 MB / 473.3 MB, free: 23.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002424/0.5708, allocations: 0.9396 MB / 474.3 MB, free: 22.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004947/0.5758, allocations: 4.329 MB / 478.6 MB, free: 17.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003076/0.5789, allocations: 252.5 kB / 478.8 MB, free: 17.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000298/0.5792, allocations: 260 kB / 479.1 MB, free: 17.25 MB / 350.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.001998/0.5812, allocations: 1.376 MB / 480.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003647/0.5816, allocations: 221.1 kB / 480.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00366/0.5852, allocations: 2.126 MB / 482.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.998e-05/0.5853, allocations: 12 kB / 482.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.5853, allocations: 4 kB / 482.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.5853, allocations: 3.984 kB / 482.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007783/0.5931, allocations: 5.081 MB / 487.9 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.5931, allocations: 0 / 487.9 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006739/0.5938, allocations: 156.6 kB / 488.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001742/0.5956, allocations: 0.6873 MB / 488.8 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.728e-05/0.5957, allocations: 12 kB / 488.8 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003966/0.5996, allocations: 3.89 MB / 492.7 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.5997, allocations: 4.031 kB / 492.7 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005395/0.6051, allocations: 4.05 MB / 496.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007562/0.6059, allocations: 290.1 kB / 497 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002334/0.6061, allocations: 17.33 kB / 497 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008674/0.607, allocations: 71.89 kB / 497.1 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/0.6071, allocations: 56.31 kB / 497.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.988e-05/0.6072, allocations: 35.77 kB / 497.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002576/0.6098, allocations: 1.682 MB / 498.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.6098, allocations: 0 / 498.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003375/0.6132, allocations: 0.6705 MB / 499.5 MB, free: 12.57 MB / 366.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.006546/0.6198, allocations: 4.701 MB / 0.4924 GB, free: 7.836 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006225/0.626, allocations: 3.45 MB / 0.4958 GB, free: 4.391 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.6261, allocations: 4.188 kB / 0.4958 GB, free: 4.387 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001663/0.6278, allocations: 1.037 MB / 0.4968 GB, free: 3.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.6298, allocations: 255.5 kB / 0.497 GB, free: 3.094 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03813/0.668, allocations: 21.22 MB / 0.5178 GB, free: 11.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002274/0.6703, allocations: 2.233 MB / 0.5199 GB, free: 9.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.003183/0.6735, allocations: 1.316 MB / 0.5212 GB, free: 7.859 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001503/0.675, allocations: 1.101 MB / 0.5223 GB, free: 6.758 MB / 398.1 MB Notification: Performance of SimCode: time 8.71e-07/0.675, allocations: 0 / 0.5223 GB, free: 6.758 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08735/0.7624, allocations: 48.97 MB / 0.5701 GB, free: 6.164 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001803/0.7626, allocations: 244.3 kB / 0.5704 GB, free: 5.922 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.121/3.884, allocations: 0 / 0.5704 GB, free: 5.922 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