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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.00157/0.00157, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.558/1.558, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001018/0.001018, allocations: 90.62 kB / 292.1 MB, free: 5.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.334e-05/3.362e-05, allocations: 4 kB / 350.6 MB, free: 2.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1265, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4299/0.5564, allocations: 90.6 MB / 492.7 MB, free: 15 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.5568, allocations: 83.7 kB / 492.8 MB, free: 14.95 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1368/0.6936, allocations: 53.58 MB / 0.5336 GB, free: 10.63 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.955e-06/0.6936, allocations: 4 kB / 0.5336 GB, free: 10.63 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001019/0.6937, allocations: 56 kB / 0.5336 GB, free: 10.57 MB / 410.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.006304/0.7, allocations: 2.458 MB / 0.536 GB, free: 8.062 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.7001, allocations: 8.031 kB / 0.536 GB, free: 8.055 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00109/0.7012, allocations: 0.5688 MB / 0.5366 GB, free: 7.473 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008369/0.7096, allocations: 1.961 MB / 0.5385 GB, free: 5.504 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003768/0.7134, allocations: 1.411 MB / 0.5399 GB, free: 4.051 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000175/0.7136, allocations: 234 kB / 0.5401 GB, free: 3.82 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005749/0.7142, allocations: 303.8 kB / 0.5404 GB, free: 3.523 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0207/0.7349, allocations: 8.96 MB / 0.5492 GB, free: 9.613 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001669/0.7351, allocations: 51.53 kB / 0.5492 GB, free: 9.562 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005022/0.7356, allocations: 159.8 kB / 0.5494 GB, free: 9.406 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00136/0.737, allocations: 0.8086 MB / 0.5502 GB, free: 8.594 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01814/0.7552, allocations: 7.143 MB / 0.5571 GB, free: 1.445 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3372/1.092, allocations: 38.39 MB / 0.5946 GB, free: 68.47 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01974/1.112, allocations: 5.355 MB / 0.5999 GB, free: 67.73 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001439/1.114, allocations: 0.9271 MB / 0.6008 GB, free: 67.68 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004986/1.119, allocations: 3.704 MB / 0.6044 GB, free: 65.88 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/1.119, allocations: 48.36 kB / 0.6044 GB, free: 65.84 MB / 442.7 MB Notification: Performance of pre-optimization done (n=111): time 2.806e-06/1.119, allocations: 2.938 kB / 0.6044 GB, free: 65.84 MB / 442.7 MB Notification: Performance of matching and sorting (n=111): time 0.03836/1.157, allocations: 8.203 MB / 0.6124 GB, free: 65.66 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.015e-05/1.157, allocations: 192.9 kB / 0.6126 GB, free: 65.44 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004283/1.161, allocations: 2.686 MB / 0.6152 GB, free: 65.12 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001599/1.162, allocations: 40.58 kB / 0.6153 GB, free: 65.09 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00132/1.163, allocations: 2.429 MB / 0.6177 GB, free: 63.78 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000446/1.163, allocations: 0.491 MB / 0.6181 GB, free: 63.53 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001815/1.164, allocations: 109.8 kB / 0.6182 GB, free: 63.53 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003231/1.164, allocations: 0.5323 MB / 0.6188 GB, free: 63.21 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002251/1.166, allocations: 1.461 MB / 0.6202 GB, free: 63.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004187/1.17, allocations: 5.001 MB / 0.6251 GB, free: 58.56 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004101/1.175, allocations: 2.724 MB / 0.6277 GB, free: 58.43 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.996e-05/1.175, allocations: 35.25 kB / 0.6278 GB, free: 58.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0128/1.187, allocations: 6.146 MB / 0.6338 GB, free: 57.72 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001322/1.188, allocations: 60.38 kB / 0.6338 GB, free: 57.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002626/1.188, allocations: 128 kB / 0.6339 GB, free: 57.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002893/1.188, allocations: 187.6 kB / 0.6341 GB, free: 57.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005653/1.194, allocations: 1.523 MB / 0.6356 GB, free: 57.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002265/1.194, allocations: 246.1 kB / 0.6358 GB, free: 57.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00421/1.198, allocations: 0.7545 MB / 0.6366 GB, free: 57.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008469/1.199, allocations: 344.3 kB / 0.6369 GB, free: 57.16 MB / 442.7 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 () * 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.0007937/1.2, allocations: 0.5392 MB / 0.6374 GB, free: 56.84 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005375/1.201, allocations: 250.3 kB / 0.6377 GB, free: 56.7 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00116/1.202, allocations: 0.737 MB / 0.6384 GB, free: 56.63 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.363e-05/1.202, allocations: 13.66 kB / 0.6384 GB, free: 56.63 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/1.202, allocations: 3.938 kB / 0.6384 GB, free: 56.63 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/1.202, allocations: 3.328 kB / 0.6384 GB, free: 56.63 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005189/1.207, allocations: 3.236 MB / 0.6416 GB, free: 56.24 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/1.207, allocations: 2.625 kB / 0.6416 GB, free: 56.24 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002336/1.209, allocations: 475.7 kB / 0.642 GB, free: 56.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.107e-05/1.209, allocations: 3.812 kB / 0.642 GB, free: 56.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.113e-05/1.209, allocations: 36.61 kB / 0.6421 GB, free: 56.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.993e-06/1.209, allocations: 7.344 kB / 0.6421 GB, free: 56.23 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/1.209, allocations: 0 / 0.6421 GB, free: 56.23 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002348/1.212, allocations: 2.641 MB / 0.6447 GB, free: 55.11 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005189/1.212, allocations: 312.9 kB / 0.645 GB, free: 54.85 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002302/1.213, allocations: 29.2 kB / 0.645 GB, free: 54.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008348/1.213, allocations: 56.25 kB / 0.645 GB, free: 54.82 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/1.214, allocations: 53.52 kB / 0.6451 GB, free: 54.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.802e-05/1.214, allocations: 37.98 kB / 0.6451 GB, free: 54.81 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002026/1.216, allocations: 1.811 MB / 0.6469 GB, free: 54.15 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.216, allocations: 0 / 0.6469 GB, free: 54.15 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004037/1.22, allocations: 0.8413 MB / 0.6477 GB, free: 53.95 MB / 442.7 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 () * 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.00295/1.223, allocations: 3.593 MB / 0.6512 GB, free: 51.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005205/1.228, allocations: 3.362 MB / 0.6545 GB, free: 50.62 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/1.228, allocations: 1.312 kB / 0.6545 GB, free: 50.62 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007228/1.229, allocations: 0.6194 MB / 0.6551 GB, free: 50.42 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001489/1.23, allocations: 241.2 kB / 0.6553 GB, free: 50.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01405/1.244, allocations: 7.231 MB / 0.6624 GB, free: 47.29 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001944/1.246, allocations: 2.455 MB / 0.6648 GB, free: 46.22 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003782/1.25, allocations: 1.641 MB / 0.6664 GB, free: 46.08 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001285/1.251, allocations: 1.216 MB / 0.6676 GB, free: 45.12 MB / 442.7 MB Notification: Performance of SimCode: time 1.012e-06/1.251, allocations: 4 kB / 0.6676 GB, free: 45.12 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07837/1.33, allocations: 51.16 MB / 0.7176 GB, free: 3.863 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001922/1.33, allocations: 188 kB / 0.7177 GB, free: 3.637 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.957/5.287, allocations: 2.344 kB / 0.7177 GB, free: 3.637 MB / 442.7 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