Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 86.3 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.182e-05/2.211e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.129, allocations: 50.42 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4111/0.5403, allocations: 89.11 MB / 476.7 MB, free: 5.578 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003766/0.5407, allocations: 83.95 kB / 476.8 MB, free: 5.496 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1625/0.7032, allocations: 52.31 MB / 0.5167 GB, free: 0.707 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.7033, allocations: 0 / 0.5167 GB, free: 0.707 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001017/0.7034, allocations: 55.98 kB / 0.5167 GB, free: 0.6523 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.006995/0.7104, allocations: 2.459 MB / 0.5191 GB, free: 14.13 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.039e-05/0.7105, allocations: 12.03 kB / 0.5191 GB, free: 14.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009058/0.7195, allocations: 1.961 MB / 0.521 GB, free: 12.15 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003851/0.7234, allocations: 1.413 MB / 0.5224 GB, free: 10.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001556/0.7236, allocations: 96 kB / 0.5225 GB, free: 10.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001228/0.7248, allocations: 187.9 kB / 0.5227 GB, free: 10.42 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008716/0.7336, allocations: 4.212 MB / 0.5268 GB, free: 6.199 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01369/0.7473, allocations: 6.923 MB / 0.5336 GB, free: 14.38 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001493/0.7475, allocations: 59.45 kB / 0.5336 GB, free: 14.32 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005222/0.748, allocations: 28 kB / 0.5337 GB, free: 14.29 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001415/0.7495, allocations: 0.8055 MB / 0.5344 GB, free: 13.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3437/1.093, allocations: 35.99 MB / 0.5696 GB, free: 87.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003184/1.096, allocations: 1.964 MB / 0.5715 GB, free: 86.59 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001573/1.098, allocations: 0.8931 MB / 0.5724 GB, free: 86.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003886/1.098, allocations: 351.8 kB / 0.5727 GB, free: 86.26 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.727e-05/1.098, allocations: 52.98 kB / 0.5728 GB, free: 86.22 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 3.967e-06/1.098, allocations: 1.031 kB / 0.5728 GB, free: 86.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=119): time 0.02428/1.123, allocations: 5.271 MB / 0.5779 GB, free: 86.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.806e-05/1.123, allocations: 220.4 kB / 0.5781 GB, free: 85.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004851/1.128, allocations: 2.404 MB / 0.5805 GB, free: 85.46 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002908/1.128, allocations: 26.77 kB / 0.5805 GB, free: 85.43 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001909/1.13, allocations: 2.45 MB / 0.5829 GB, free: 84.14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007954/1.131, allocations: 0.5141 MB / 0.5834 GB, free: 83.86 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001845/1.131, allocations: 0 / 0.5834 GB, free: 83.86 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.00035/1.131, allocations: 0.5855 MB / 0.584 GB, free: 83.54 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002334/1.134, allocations: 1.408 MB / 0.5853 GB, free: 83.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003804/1.138, allocations: 5.055 MB / 0.5903 GB, free: 78.74 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003732/1.141, allocations: 2.688 MB / 0.5929 GB, free: 78.45 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.822e-05/1.141, allocations: 37.56 kB / 0.5929 GB, free: 78.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.01/1.151, allocations: 5.568 MB / 0.5984 GB, free: 76.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.571e-05/1.152, allocations: 59.66 kB / 0.5984 GB, free: 76.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001736/1.152, allocations: 131.5 kB / 0.5986 GB, free: 76.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001681/1.152, allocations: 191.9 kB / 0.5987 GB, free: 76.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005591/1.157, allocations: 1.569 MB / 0.6003 GB, free: 76.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002465/1.158, allocations: 257 kB / 0.6005 GB, free: 76.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005631/1.163, allocations: 0.6497 MB / 0.6012 GB, free: 76.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0011/1.165, allocations: 354.5 kB / 0.6015 GB, free: 75.98 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 601 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (708): * Single equations (assignments): 705 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009234/1.166, allocations: 431.2 kB / 0.6019 GB, free: 75.63 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002012/1.168, allocations: 1.34 MB / 0.6032 GB, free: 75.15 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003523/1.168, allocations: 243.2 kB / 0.6034 GB, free: 75.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001359/1.169, allocations: 0.724 MB / 0.6041 GB, free: 74.71 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.568e-05/1.169, allocations: 14.08 kB / 0.6042 GB, free: 74.71 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.66e-05/1.169, allocations: 3.625 kB / 0.6042 GB, free: 74.71 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/1.169, allocations: 3.797 kB / 0.6042 GB, free: 74.71 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005763/1.175, allocations: 3.096 MB / 0.6072 GB, free: 73.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/1.175, allocations: 3.375 kB / 0.6072 GB, free: 73.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002588/1.178, allocations: 482.9 kB / 0.6077 GB, free: 73.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.721e-05/1.178, allocations: 7.719 kB / 0.6077 GB, free: 73.42 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/1.178, allocations: 22.3 kB / 0.6077 GB, free: 73.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.195e-06/1.178, allocations: 7.719 kB / 0.6077 GB, free: 73.42 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/1.178, allocations: 0 / 0.6077 GB, free: 73.42 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002823/1.181, allocations: 2.706 MB / 0.6103 GB, free: 71.99 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007112/1.181, allocations: 296.4 kB / 0.6106 GB, free: 71.75 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002505/1.182, allocations: 14.12 kB / 0.6106 GB, free: 71.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009095/1.183, allocations: 37.39 kB / 0.6107 GB, free: 71.75 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/1.183, allocations: 62.88 kB / 0.6107 GB, free: 71.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.662e-05/1.183, allocations: 43.06 kB / 0.6108 GB, free: 71.72 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002163/1.185, allocations: 1.545 MB / 0.6123 GB, free: 71.13 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.185, allocations: 3.938 kB / 0.6123 GB, free: 71.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004676/1.19, allocations: 0.7398 MB / 0.613 GB, free: 71.01 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 24 (body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 91 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003008/1.193, allocations: 3.703 MB / 0.6166 GB, free: 68.71 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005132/1.198, allocations: 3.218 MB / 0.6198 GB, free: 67.64 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.513e-06/1.198, allocations: 0 / 0.6198 GB, free: 67.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007396/1.199, allocations: 0.6389 MB / 0.6204 GB, free: 67.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001301/1.2, allocations: 190.7 kB / 0.6206 GB, free: 67.12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01497/1.215, allocations: 7.112 MB / 0.6275 GB, free: 61.06 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002129/1.217, allocations: 2.45 MB / 0.6299 GB, free: 59.14 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004059/1.221, allocations: 1.729 MB / 0.6316 GB, free: 58.06 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001786/1.223, allocations: 1.206 MB / 0.6328 GB, free: 56.95 MB / 426.7 MB Notification: Performance of SimCode: time 1.864e-06/1.223, allocations: 0 / 0.6328 GB, free: 56.95 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09403/1.317, allocations: 48.45 MB / 0.6801 GB, free: 12.23 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002499/1.318, allocations: 166.8 kB / 0.6802 GB, free: 12.04 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.601/4.918, allocations: 0 / 0.6802 GB, free: 12.04 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat does not exist to compare? outputFormat=mat