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.001311/0.001311, allocations: 201.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009671/0.000967, allocations: 99.36 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.337e-05/2.318e-05, allocations: 4 kB / 343.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1267, allocations: 51.48 MB / 395.3 MB, free: 4.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4123/0.5391, allocations: 89.93 MB / 485.2 MB, free: 3.418 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002911/0.5395, allocations: 85.52 kB / 485.3 MB, free: 3.375 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1428/0.6822, allocations: 52.35 MB / 0.525 GB, free: 3.691 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.438e-06/0.6823, allocations: 3.984 kB / 0.525 GB, free: 3.688 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001524/0.6824, allocations: 55.94 kB / 0.5251 GB, free: 3.633 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.007686/0.6901, allocations: 2.454 MB / 0.5275 GB, free: 1.121 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.6902, allocations: 12.03 kB / 0.5275 GB, free: 1.109 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009309/0.6995, allocations: 1.961 MB / 0.5294 GB, free: 15.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003996/0.7035, allocations: 1.414 MB / 0.5308 GB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002113/0.7038, allocations: 103.6 kB / 0.5309 GB, free: 13.58 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001462/0.7053, allocations: 183.9 kB / 0.5311 GB, free: 13.4 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0094/0.7147, allocations: 4.22 MB / 0.5352 GB, free: 9.176 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01757/0.7323, allocations: 6.922 MB / 0.5419 GB, free: 1.352 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004023/0.7328, allocations: 59.47 kB / 0.542 GB, free: 1.293 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001674/0.7345, allocations: 24 kB / 0.542 GB, free: 1.27 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001771/0.7363, allocations: 0.8094 MB / 0.5428 GB, free: 460 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3634/1.1, allocations: 36 MB / 0.578 GB, free: 75.14 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002954/1.103, allocations: 1.968 MB / 0.5799 GB, free: 74.41 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/1.104, allocations: 0.8945 MB / 0.5808 GB, free: 74.35 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000384/1.104, allocations: 348 kB / 0.5811 GB, free: 74.07 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.31e-05/1.105, allocations: 53.22 kB / 0.5811 GB, free: 74.03 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 4.949e-06/1.105, allocations: 1.406 kB / 0.5811 GB, free: 74.03 MB / 442.7 MB Notification: Performance of matching and sorting (n=119): time 0.02135/1.126, allocations: 5.261 MB / 0.5863 GB, free: 73.96 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.763e-05/1.126, allocations: 227.8 kB / 0.5865 GB, free: 73.71 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004015/1.13, allocations: 2.395 MB / 0.5888 GB, free: 73.42 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002619/1.13, allocations: 27.8 kB / 0.5889 GB, free: 73.39 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00159/1.132, allocations: 2.458 MB / 0.5913 GB, free: 72.11 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007012/1.133, allocations: 0.512 MB / 0.5918 GB, free: 71.84 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002175/1.133, allocations: 3.188 kB / 0.5918 GB, free: 71.84 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003798/1.133, allocations: 0.5701 MB / 0.5923 GB, free: 71.52 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001986/1.135, allocations: 1.416 MB / 0.5937 GB, free: 71.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004111/1.139, allocations: 5.057 MB / 0.5987 GB, free: 66.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003785/1.143, allocations: 2.691 MB / 0.6013 GB, free: 66.71 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000101/1.143, allocations: 39.31 kB / 0.6013 GB, free: 66.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.01071/1.154, allocations: 5.561 MB / 0.6067 GB, free: 66.19 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001079/1.154, allocations: 62.75 kB / 0.6068 GB, free: 66.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002095/1.154, allocations: 132.3 kB / 0.6069 GB, free: 66.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002092/1.155, allocations: 191.3 kB / 0.6071 GB, free: 66.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005687/1.16, allocations: 1.568 MB / 0.6086 GB, free: 66.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002047/1.161, allocations: 260.2 kB / 0.6089 GB, free: 66.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004853/1.165, allocations: 0.6473 MB / 0.6095 GB, free: 65.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001289/1.167, allocations: 361.2 kB / 0.6099 GB, free: 65.62 MB / 442.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.00117/1.168, allocations: 423 kB / 0.6103 GB, free: 65.31 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002377/1.17, allocations: 1.342 MB / 0.6116 GB, free: 65.13 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004675/1.171, allocations: 236.7 kB / 0.6118 GB, free: 65 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00165/1.172, allocations: 0.7177 MB / 0.6125 GB, free: 64.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.06e-05/1.173, allocations: 14.09 kB / 0.6125 GB, free: 64.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.113e-05/1.173, allocations: 5.734 kB / 0.6125 GB, free: 64.91 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/1.173, allocations: 8.781 kB / 0.6125 GB, free: 64.91 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007526/1.18, allocations: 3.097 MB / 0.6156 GB, free: 64.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.246e-05/1.18, allocations: 2.062 kB / 0.6156 GB, free: 64.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002801/1.183, allocations: 487.9 kB / 0.616 GB, free: 64.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.513e-05/1.183, allocations: 5.219 kB / 0.616 GB, free: 64.37 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001567/1.183, allocations: 30.19 kB / 0.6161 GB, free: 64.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.224e-05/1.183, allocations: 7.969 kB / 0.6161 GB, free: 64.36 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/1.183, allocations: 2.094 kB / 0.6161 GB, free: 64.36 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003778/1.187, allocations: 2.697 MB / 0.6187 GB, free: 63.51 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008378/1.188, allocations: 299.6 kB / 0.619 GB, free: 63.27 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002957/1.188, allocations: 12.81 kB / 0.619 GB, free: 63.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/1.189, allocations: 42.45 kB / 0.619 GB, free: 63.26 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/1.189, allocations: 62.42 kB / 0.6191 GB, free: 63.26 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.4e-05/1.189, allocations: 33.95 kB / 0.6191 GB, free: 63.26 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002689/1.192, allocations: 1.542 MB / 0.6206 GB, free: 63.12 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.194e-06/1.192, allocations: 0 / 0.6206 GB, free: 63.12 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006279/1.198, allocations: 0.7434 MB / 0.6214 GB, free: 63 MB / 442.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.003744/1.202, allocations: 3.706 MB / 0.625 GB, free: 60.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00662/1.209, allocations: 3.205 MB / 0.6281 GB, free: 59.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/1.209, allocations: 4.062 kB / 0.6281 GB, free: 59.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001068/1.21, allocations: 0.632 MB / 0.6287 GB, free: 59.49 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/1.212, allocations: 192.8 kB / 0.6289 GB, free: 59.39 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01863/1.23, allocations: 7.133 MB / 0.6359 GB, free: 56.48 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002763/1.233, allocations: 2.456 MB / 0.6383 GB, free: 55.41 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004667/1.238, allocations: 1.725 MB / 0.64 GB, free: 55.27 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001884/1.24, allocations: 1.208 MB / 0.6412 GB, free: 54.31 MB / 442.7 MB Notification: Performance of SimCode: time 1.062e-06/1.24, allocations: 4 kB / 0.6412 GB, free: 54.31 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09323/1.333, allocations: 48.43 MB / 0.6885 GB, free: 28.55 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001746/1.333, allocations: 181.9 kB / 0.6886 GB, free: 28.35 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.599/4.932, allocations: 0 / 0.6886 GB, free: 28.35 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