Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007766/0.0007766, allocations: 97.75 kB / 17 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008438/0.000844, allocations: 193.6 kB / 17.91 MB, free: 5.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003736/0.0003739, allocations: 8 kB / 306.8 MB, free: 1.516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1276, allocations: 51.49 MB / 358.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.2156/0.3432, allocations: 26.18 MB / 384.5 MB, free: 7.812 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0143/0.3576, allocations: 5.69 MB / 390.2 MB, free: 3.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005559/0.3632, allocations: 112.8 kB / 390.3 MB, free: 3.938 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004844/0.3681, allocations: 1.333 MB / 391.6 MB, free: 3.469 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01238/0.3805, allocations: 3.808 MB / 395.4 MB, free: 1.684 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001854/0.3824, allocations: 224.1 kB / 395.6 MB, free: 1.523 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004539/0.3869, allocations: 2.58 MB / 398.2 MB, free: 48 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004153/0.3911, allocations: 1.905 MB / 400.1 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001656/0.3928, allocations: 0.7358 MB / 400.9 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002167/0.395, allocations: 1.2 MB / 402.1 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004138/0.3954, allocations: 86.03 kB / 402.1 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001536/0.397, allocations: 0.548 MB / 402.7 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001117/0.3981, allocations: 1.078 MB / 403.8 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006568/0.3988, allocations: 0.5559 MB / 404.3 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004073/0.4029, allocations: 3.246 MB / 407.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.117e-05/0.4029, allocations: 0 / 407.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.538e-06/0.4029, allocations: 3.938 kB / 407.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001668/0.4031, allocations: 0 / 407.6 MB, free: 10.55 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: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.005522/0.4086, allocations: 2.446 MB / 410 MB, free: 8.039 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/0.4087, allocations: 8.031 kB / 410 MB, free: 8.031 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009263/0.4096, allocations: 0.5258 MB / 410.6 MB, free: 7.492 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006483/0.4161, allocations: 1.813 MB / 412.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002179/0.4183, allocations: 1.153 MB / 413.5 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001287/0.4185, allocations: 151.8 kB / 413.7 MB, free: 4.324 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003513/0.4188, allocations: 207.8 kB / 413.9 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01812/0.4369, allocations: 8.62 MB / 422.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.754e-05/0.4371, allocations: 35.66 kB / 422.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002918/0.4374, allocations: 103.9 kB / 422.6 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002878/0.4403, allocations: 1.671 MB / 424.3 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01832/0.4586, allocations: 7.175 MB / 431.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03877/0.4975, allocations: 30.17 MB / 461.6 MB, free: 2.859 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02054/0.5181, allocations: 5.116 MB / 466.8 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001992/0.5201, allocations: 1.243 MB / 468 MB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006104/0.5262, allocations: 3.835 MB / 471.8 MB, free: 8.297 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.035e-05/0.5263, allocations: 46.83 kB / 471.9 MB, free: 8.242 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 3.667e-06/0.5263, allocations: 0 / 471.9 MB, free: 8.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04133/0.5677, allocations: 9.411 MB / 481.3 MB, free: 14.74 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.5678, allocations: 203.8 kB / 481.5 MB, free: 14.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004231/0.5721, allocations: 3.027 MB / 484.5 MB, free: 11.45 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001904/0.5723, allocations: 37.7 kB / 484.6 MB, free: 11.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001703/0.574, allocations: 2.433 MB / 487 MB, free: 8.938 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005043/0.5745, allocations: 498 kB / 487.5 MB, free: 8.445 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/0.5747, allocations: 108 kB / 487.6 MB, free: 8.34 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003289/0.575, allocations: 0.5255 MB / 488.1 MB, free: 7.809 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002222/0.5772, allocations: 1.592 MB / 489.7 MB, free: 6.211 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00434/0.5816, allocations: 5.153 MB / 494.9 MB, free: 15.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003517/0.5851, allocations: 2.81 MB / 497.7 MB, free: 12.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-05/0.5852, allocations: 40 kB / 497.7 MB, free: 12.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009964/0.5952, allocations: 6.401 MB / 0.4923 GB, free: 6.004 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.322e-05/0.5953, allocations: 61 kB / 0.4923 GB, free: 5.945 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001655/0.5955, allocations: 128 kB / 0.4925 GB, free: 5.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001725/0.5956, allocations: 188 kB / 0.4927 GB, free: 5.637 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004793/0.6004, allocations: 1.458 MB / 0.4941 GB, free: 4.176 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001822/0.6007, allocations: 251 kB / 0.4943 GB, free: 3.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003618/0.6043, allocations: 0.7498 MB / 0.495 GB, free: 3.172 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005003/0.6048, allocations: 348 kB / 0.4954 GB, free: 2.832 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (681): * Single equations (assignments): 678 * 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.002218/0.607, allocations: 1.572 MB / 0.4969 GB, free: 1.246 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003915/0.6074, allocations: 260.7 kB / 0.4972 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005044/0.6079, allocations: 311.5 kB / 0.4975 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.513e-05/0.608, allocations: 16 kB / 0.4975 GB, free: 0.668 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.608, allocations: 0 / 0.4975 GB, free: 0.668 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.608, allocations: 3.984 kB / 0.4975 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005228/0.6132, allocations: 3.399 MB / 0.5008 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.6132, allocations: 0 / 0.5008 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002152/0.6154, allocations: 419.4 kB / 0.5012 GB, free: 12.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.028e-05/0.6154, allocations: 4 kB / 0.5012 GB, free: 12.79 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.562e-05/0.6155, allocations: 43.91 kB / 0.5012 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.873e-06/0.6155, allocations: 4 kB / 0.5012 GB, free: 12.74 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.6155, allocations: 4 kB / 0.5013 GB, free: 12.74 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003676/0.6192, allocations: 2.796 MB / 0.504 GB, free: 9.91 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006541/0.6199, allocations: 305.6 kB / 0.5043 GB, free: 9.59 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002301/0.6201, allocations: 27.98 kB / 0.5043 GB, free: 9.562 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008933/0.621, allocations: 47.91 kB / 0.5043 GB, free: 9.516 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.6212, allocations: 63.84 kB / 0.5044 GB, free: 9.453 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.163e-05/0.6212, allocations: 31.98 kB / 0.5044 GB, free: 9.422 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00293/0.6242, allocations: 1.837 MB / 0.5062 GB, free: 7.582 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6242, allocations: 0 / 0.5062 GB, free: 7.582 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00414/0.6283, allocations: 0.8338 MB / 0.507 GB, free: 6.746 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.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],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]) * 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 (87): * Single equations (assignments): 84 * 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.004253/0.6326, allocations: 3.443 MB / 0.5104 GB, free: 3.277 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006753/0.6394, allocations: 3.588 MB / 0.5139 GB, free: 15.72 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/0.6394, allocations: 1.688 kB / 0.5139 GB, free: 15.72 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.6405, allocations: 0.722 MB / 0.5146 GB, free: 15 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001935/0.6424, allocations: 248.7 kB / 0.5149 GB, free: 14.76 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2436/0.8861, allocations: 24.05 MB / 0.5383 GB, free: 117.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002358/0.8885, allocations: 2.392 MB / 0.5407 GB, free: 116.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004021/0.8925, allocations: 1.645 MB / 0.5423 GB, free: 116.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001844/0.8944, allocations: 1.214 MB / 0.5435 GB, free: 116.4 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.8944, allocations: 1.75 kB / 0.5435 GB, free: 116.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06984/0.9642, allocations: 50.62 MB / 0.5929 GB, free: 72.68 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001597/0.9645, allocations: 227.6 kB / 0.5931 GB, free: 72.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.71/4.674, allocations: 0 / 0.5931 GB, free: 72.43 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat does not exist to compare? outputFormat=mat