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.00159/0.00159, allocations: 182.2 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.054/2.054, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001158/0.001157, allocations: 93.48 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004056/0.000406, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3417, allocations: 47.57 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.0208/0.3625, allocations: 15.47 MB / 390.1 MB, free: 33.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0124/0.375, allocations: 4.806 MB / 394.9 MB, free: 28.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003182/0.3782, allocations: 79.75 kB / 395 MB, free: 28.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002661/0.3809, allocations: 0.7076 MB / 395.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008869/0.3898, allocations: 2.415 MB / 398.1 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002191/0.3921, allocations: 471 kB / 398.6 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003617/0.3957, allocations: 1.459 MB / 400 MB, free: 23.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002787/0.3986, allocations: 1.566 MB / 401.6 MB, free: 21.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001139/0.3998, allocations: 0.6306 MB / 402.2 MB, free: 21.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001256/0.401, allocations: 0.8488 MB / 403.1 MB, free: 20.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003523/0.4014, allocations: 80 kB / 403.1 MB, free: 20.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001815/0.4032, allocations: 0.7255 MB / 403.9 MB, free: 19.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009916/0.4043, allocations: 0.9233 MB / 404.8 MB, free: 18.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005168/0.4048, allocations: 0.5039 MB / 405.3 MB, free: 18.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004116/0.4089, allocations: 3.08 MB / 408.4 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.409, allocations: 0 / 408.4 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.727e-06/0.409, allocations: 0 / 408.4 MB, free: 14.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001146/0.4091, allocations: 0 / 408.4 MB, free: 14.97 MB / 298.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.007069/0.4162, allocations: 2.602 MB / 411 MB, free: 12.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.4163, allocations: 8.031 kB / 411 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001091/0.4174, allocations: 462.2 kB / 411.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01071/0.4281, allocations: 1.899 MB / 413.3 MB, free: 9.934 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004257/0.4324, allocations: 1.621 MB / 415 MB, free: 8.266 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.4326, allocations: 130.9 kB / 415.1 MB, free: 8.137 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006391/0.4332, allocations: 163.9 kB / 415.3 MB, free: 7.977 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01415/0.4474, allocations: 6.573 MB / 421.8 MB, free: 0.918 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001098/0.4476, allocations: 35.64 kB / 421.9 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004249/0.448, allocations: 79.89 kB / 421.9 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004444/0.4524, allocations: 1.464 MB / 423.4 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01849/0.471, allocations: 5.881 MB / 429.3 MB, free: 9.457 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0486/0.5196, allocations: 25.81 MB / 455.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0101/0.5298, allocations: 2.6 MB / 457.7 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01376/0.5436, allocations: 4.85 MB / 462.5 MB, free: 7.188 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.88e-05/0.5437, allocations: 42.5 kB / 462.6 MB, free: 7.137 MB / 346.7 MB Notification: Performance of pre-optimization done (n=97): time 4.338e-06/0.5437, allocations: 4 kB / 462.6 MB, free: 7.133 MB / 346.7 MB Notification: Performance of matching and sorting (n=105): time 0.04417/0.5879, allocations: 10.09 MB / 472.7 MB, free: 12.85 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.588, allocations: 144.9 kB / 472.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006303/0.5944, allocations: 2.829 MB / 475.6 MB, free: 9.828 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003254/0.5947, allocations: 41.7 kB / 475.7 MB, free: 9.781 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002331/0.5971, allocations: 2.035 MB / 477.7 MB, free: 7.719 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008122/0.5979, allocations: 430.6 kB / 478.1 MB, free: 7.293 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004242/0.5984, allocations: 83.94 kB / 478.2 MB, free: 7.211 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000444/0.5988, allocations: 499.8 kB / 478.7 MB, free: 6.711 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00421/0.6031, allocations: 1.417 MB / 480.1 MB, free: 5.289 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006991/0.6101, allocations: 4.034 MB / 484.2 MB, free: 15.94 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006017/0.6162, allocations: 2.335 MB / 486.5 MB, free: 13.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.036e-05/0.6163, allocations: 28 kB / 486.5 MB, free: 13.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01885/0.6351, allocations: 5.907 MB / 492.4 MB, free: 7.664 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001001/0.6353, allocations: 44 kB / 492.5 MB, free: 7.621 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000162/0.6354, allocations: 96 kB / 492.6 MB, free: 7.527 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004461/0.6399, allocations: 0.8389 MB / 493.4 MB, free: 6.688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005636/0.6456, allocations: 0.9396 MB / 494.3 MB, free: 5.746 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01013/0.6557, allocations: 4.427 MB / 498.8 MB, free: 1.188 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004517/0.6603, allocations: 239.7 kB / 499 MB, free: 0.9531 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000778/0.6611, allocations: 267.9 kB / 499.3 MB, free: 0.6914 MB / 378.7 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.003584/0.6647, allocations: 1.364 MB / 0.4889 GB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006331/0.6654, allocations: 233.1 kB / 0.4891 GB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007716/0.6731, allocations: 2.126 MB / 0.4912 GB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.585e-05/0.6732, allocations: 15.98 kB / 0.4912 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/0.6732, allocations: 4 kB / 0.4912 GB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.441e-05/0.6733, allocations: 7.984 kB / 0.4912 GB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01612/0.6894, allocations: 5.092 MB / 0.4962 GB, free: 7.738 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.232e-05/0.6895, allocations: 0 / 0.4962 GB, free: 7.738 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001609/0.6911, allocations: 159.7 kB / 0.4963 GB, free: 7.582 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004087/0.6952, allocations: 0.6835 MB / 0.497 GB, free: 6.895 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002644/0.6955, allocations: 16 kB / 0.497 GB, free: 6.879 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009258/0.7048, allocations: 3.975 MB / 0.5009 GB, free: 2.766 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.7048, allocations: 0.5625 kB / 0.5009 GB, free: 2.766 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2909/0.9957, allocations: 4.15 MB / 0.505 GB, free: 120 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001544/0.9973, allocations: 460.2 kB / 0.5054 GB, free: 119.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006479/0.998, allocations: 21.25 kB / 0.5054 GB, free: 119.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00191/0.9999, allocations: 66.09 kB / 0.5055 GB, free: 119.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003551/1, allocations: 62.67 kB / 0.5055 GB, free: 119.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001363/1, allocations: 33.84 kB / 0.5056 GB, free: 119.9 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004371/1.005, allocations: 1.776 MB / 0.5073 GB, free: 119.6 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.005, allocations: 2.156 kB / 0.5073 GB, free: 119.6 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005329/1.01, allocations: 0.6887 MB / 0.508 GB, free: 119.5 MB / 394.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.01202/1.022, allocations: 5.123 MB / 0.513 GB, free: 117.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008337/1.031, allocations: 3.45 MB / 0.5164 GB, free: 116 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/1.031, allocations: 0 / 0.5164 GB, free: 116 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002115/1.033, allocations: 1.035 MB / 0.5174 GB, free: 115.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002151/1.035, allocations: 238.4 kB / 0.5176 GB, free: 115.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06498/1.1, allocations: 85.72 MB / 0.6013 GB, free: 31.39 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003179/1.103, allocations: 2.306 MB / 0.6036 GB, free: 29.05 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002464/1.106, allocations: 1.132 MB / 0.6047 GB, free: 27.93 MB / 394.7 MB Notification: Performance of SimCode: time 1.603e-06/1.106, allocations: 0 / 0.6047 GB, free: 27.93 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.187/5.293, allocations: 63 MB / 0.6662 GB, free: 139.9 MB / 426.7 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