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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 95.27 kB / 16.94 MB, free: 5.98 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.001151/0.001152, allocations: 183.7 kB / 17.82 MB, free: 5.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.448/1.448, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004789/0.0004791, allocations: 12 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1024, allocations: 47.59 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01719/0.1197, allocations: 15.47 MB / 343.9 MB, free: 4.477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01142/0.1311, allocations: 4.806 MB / 348.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00288/0.1341, allocations: 71.81 kB / 348.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001982/0.1361, allocations: 0.7115 MB / 349.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00703/0.1432, allocations: 2.404 MB / 351.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001401/0.1446, allocations: 463.2 kB / 352.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002709/0.1473, allocations: 1.474 MB / 353.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002178/0.1495, allocations: 1.569 MB / 355.4 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009044/0.1504, allocations: 0.6307 MB / 356 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009972/0.1514, allocations: 0.8488 MB / 356.9 MB, free: 7.445 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000189/0.1516, allocations: 84 kB / 357 MB, free: 7.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00136/0.153, allocations: 0.7333 MB / 357.7 MB, free: 6.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008219/0.1538, allocations: 0.9195 MB / 358.6 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004377/0.1543, allocations: 0.4923 MB / 359.1 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003018/0.1573, allocations: 3.079 MB / 362.2 MB, free: 2.121 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1573, allocations: 3.938 kB / 362.2 MB, free: 2.117 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.1573, allocations: 4 kB / 362.2 MB, free: 2.113 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.846e-05/0.1574, allocations: 3.938 kB / 362.2 MB, free: 2.109 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.004725/0.1621, allocations: 2.602 MB / 364.8 MB, free: 15.45 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.1622, allocations: 12.03 kB / 364.8 MB, free: 15.44 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005657/0.1627, allocations: 454.2 kB / 365.2 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006028/0.1688, allocations: 1.9 MB / 367.1 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003438/0.1722, allocations: 1.621 MB / 368.8 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/0.1724, allocations: 123 kB / 368.9 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000313/0.1727, allocations: 163.9 kB / 369 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01128/0.184, allocations: 6.569 MB / 375.6 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.838e-05/0.1841, allocations: 31.66 kB / 375.6 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002648/0.1844, allocations: 87.89 kB / 375.7 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002541/0.1869, allocations: 1.464 MB / 377.2 MB, free: 2.496 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2024/0.3894, allocations: 5.865 MB / 383.1 MB, free: 48.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02832/0.4177, allocations: 25.83 MB / 408.9 MB, free: 29.99 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005304/0.4231, allocations: 2.598 MB / 411.5 MB, free: 28.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007288/0.4304, allocations: 4.846 MB / 416.3 MB, free: 24.79 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.4305, allocations: 45.03 kB / 416.4 MB, free: 24.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.056e-06/0.4305, allocations: 0 / 416.4 MB, free: 24.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=105): time 0.02115/0.4516, allocations: 10.09 MB / 426.5 MB, free: 14.45 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.4517, allocations: 152.9 kB / 426.6 MB, free: 14.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003387/0.4551, allocations: 2.821 MB / 429.4 MB, free: 11.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001822/0.4553, allocations: 37.69 kB / 429.5 MB, free: 11.39 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009506/0.4563, allocations: 2.066 MB / 431.5 MB, free: 9.328 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003492/0.4567, allocations: 428.3 kB / 432 MB, free: 8.914 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.4568, allocations: 80 kB / 432 MB, free: 8.836 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.457, allocations: 483 kB / 432.5 MB, free: 8.355 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001735/0.4587, allocations: 1.429 MB / 433.9 MB, free: 6.922 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002744/0.4615, allocations: 4.026 MB / 438 MB, free: 1.578 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00275/0.4643, allocations: 2.338 MB / 440.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.93e-05/0.4643, allocations: 28 kB / 440.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.0104/0.4747, allocations: 5.967 MB / 446.3 MB, free: 9.234 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.036e-05/0.4749, allocations: 48 kB / 446.3 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001075/0.475, allocations: 92 kB / 446.4 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002493/0.4775, allocations: 0.8267 MB / 447.3 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003427/0.4809, allocations: 0.9474 MB / 448.2 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005926/0.4869, allocations: 4.434 MB / 452.6 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003357/0.4902, allocations: 236.2 kB / 452.9 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004273/0.4907, allocations: 263.9 kB / 453.1 MB, free: 2.281 MB / 334.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.002319/0.493, allocations: 1.376 MB / 454.5 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004223/0.4934, allocations: 233 kB / 454.7 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004214/0.4977, allocations: 2.133 MB / 456.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.551e-05/0.4977, allocations: 12 kB / 456.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.4977, allocations: 4 kB / 456.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.4977, allocations: 3.984 kB / 456.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009823/0.5076, allocations: 5.082 MB / 462 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.739e-05/0.5076, allocations: 4 kB / 462 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008821/0.5085, allocations: 155.7 kB / 462.1 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002263/0.5108, allocations: 0.6835 MB / 462.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001627/0.511, allocations: 21.33 kB / 462.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005396/0.5164, allocations: 3.983 MB / 466.8 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.5164, allocations: 0 / 466.8 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006611/0.523, allocations: 4.153 MB / 471 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001325/0.5244, allocations: 470 kB / 471.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002476/0.5247, allocations: 13.33 kB / 471.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009399/0.5256, allocations: 71.89 kB / 471.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/0.5258, allocations: 60.28 kB / 471.6 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.015e-05/0.5259, allocations: 37.55 kB / 471.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002726/0.5286, allocations: 1.78 MB / 473.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5286, allocations: 0 / 473.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00372/0.5324, allocations: 0.6976 MB / 474.1 MB, free: 13.03 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.007356/0.5397, allocations: 5.117 MB / 479.2 MB, free: 7.871 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00605/0.5458, allocations: 3.443 MB / 482.6 MB, free: 4.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.5458, allocations: 0 / 482.6 MB, free: 4.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/0.5473, allocations: 1.037 MB / 483.7 MB, free: 3.379 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001403/0.5487, allocations: 231.6 kB / 483.9 MB, free: 3.152 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2411/0.7898, allocations: 85.43 MB / 0.556 GB, free: 106.6 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002081/0.792, allocations: 2.287 MB / 0.5582 GB, free: 105.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002933/0.7949, allocations: 1.33 MB / 0.5595 GB, free: 105.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001137/0.7961, allocations: 1.101 MB / 0.5606 GB, free: 104.6 MB / 414.1 MB Notification: Performance of SimCode: time 1.103e-06/0.7961, allocations: 2.781 kB / 0.5606 GB, free: 104.6 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06924/0.8653, allocations: 49.79 MB / 0.6092 GB, free: 59.11 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001598/0.8655, allocations: 229.6 kB / 0.6094 GB, free: 58.87 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.114/3.979, allocations: 0 / 0.6094 GB, free: 58.87 MB / 414.1 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) Environment - environmentSimulation: 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