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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009632/0.0009631, allocations: 95.88 kB / 16.3 MB, free: 6.121 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.0009547/0.0009547, allocations: 181.8 kB / 17.2 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 223.2 MB / 241.1 MB, free: 14.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002588/0.0002589, allocations: 4 kB / 300.8 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1155, allocations: 50.41 MB / 351.2 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.2018/0.3173, allocations: 24.76 MB / 376 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01287/0.3302, allocations: 5.884 MB / 381.9 MB, free: 8.117 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00454/0.3348, allocations: 113.4 kB / 382 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003395/0.3383, allocations: 1.201 MB / 383.2 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009766/0.348, allocations: 3.526 MB / 386.7 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009618/0.349, allocations: 188.5 kB / 386.9 MB, free: 7.602 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00231/0.3513, allocations: 1.278 MB / 388.2 MB, free: 7.543 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002746/0.3541, allocations: 1.87 MB / 390 MB, free: 7.023 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001112/0.3552, allocations: 0.6091 MB / 390.7 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001334/0.3566, allocations: 0.8325 MB / 391.5 MB, free: 6.379 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003014/0.3569, allocations: 86.06 kB / 391.6 MB, free: 6.379 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001508/0.3584, allocations: 0.5305 MB / 392.1 MB, free: 6.152 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001173/0.3596, allocations: 1.007 MB / 393.1 MB, free: 5.664 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005891/0.3602, allocations: 0.5553 MB / 393.7 MB, free: 5.266 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004178/0.3644, allocations: 3.245 MB / 396.9 MB, free: 3.227 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.3644, allocations: 0 / 396.9 MB, free: 3.227 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3644, allocations: 1.094 kB / 396.9 MB, free: 3.227 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.557e-05/0.3645, allocations: 0 / 396.9 MB, free: 3.227 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: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.00519/0.3697, allocations: 2.449 MB / 399.4 MB, free: 1.426 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.3698, allocations: 9.625 kB / 399.4 MB, free: 1.426 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007664/0.3706, allocations: 0.5218 MB / 399.9 MB, free: 1.086 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01204/0.3826, allocations: 2.116 MB / 402 MB, free: 20 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005632/0.3883, allocations: 1.136 MB / 403.1 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002794/0.3887, allocations: 156 kB / 403.3 MB, free: 15.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001997/0.3907, allocations: 211.4 kB / 403.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02841/0.4191, allocations: 8.658 MB / 412.2 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001519/0.4193, allocations: 43.59 kB / 412.2 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004667/0.4198, allocations: 106.5 kB / 412.3 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004618/0.4245, allocations: 1.661 MB / 414 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02872/0.4532, allocations: 7.223 MB / 421.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05478/0.5081, allocations: 30.21 MB / 451.4 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02273/0.5308, allocations: 5.115 MB / 456.5 MB, free: 8.992 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00631/0.5372, allocations: 3.769 MB / 460.3 MB, free: 5.074 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/0.5373, allocations: 46.83 kB / 460.3 MB, free: 5.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=111): time 3.486e-06/0.5373, allocations: 0 / 460.3 MB, free: 5.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.04503/0.5823, allocations: 9.64 MB / 470 MB, free: 11.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.5825, allocations: 203.8 kB / 470.2 MB, free: 10.99 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004699/0.5872, allocations: 3.019 MB / 473.2 MB, free: 7.953 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002399/0.5875, allocations: 41.7 kB / 473.2 MB, free: 7.906 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001657/0.5891, allocations: 2.425 MB / 475.7 MB, free: 5.441 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006503/0.5898, allocations: 0.4903 MB / 476.1 MB, free: 4.945 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/0.59, allocations: 104 kB / 476.2 MB, free: 4.844 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003577/0.5904, allocations: 0.5333 MB / 476.8 MB, free: 4.305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002351/0.5927, allocations: 1.588 MB / 478.4 MB, free: 2.711 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004879/0.5976, allocations: 5.122 MB / 483.5 MB, free: 11.79 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004001/0.6016, allocations: 2.807 MB / 486.3 MB, free: 8.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.972e-05/0.6017, allocations: 36 kB / 486.3 MB, free: 8.945 MB / 398.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01147/0.6132, allocations: 6.393 MB / 492.7 MB, free: 2.547 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.244e-05/0.6133, allocations: 60 kB / 492.8 MB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001515/0.6135, allocations: 128 kB / 492.9 MB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001801/0.6137, allocations: 184 kB / 493.1 MB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004959/0.6186, allocations: 1.455 MB / 494.5 MB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000191/0.6188, allocations: 251 kB / 494.8 MB, free: 492 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004231/0.6231, allocations: 0.7501 MB / 495.5 MB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006847/0.6238, allocations: 344 kB / 495.9 MB, free: 15.38 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.002686/0.6265, allocations: 1.571 MB / 497.4 MB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000539/0.627, allocations: 252.7 kB / 497.7 MB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001268/0.6283, allocations: 0.8327 MB / 498.5 MB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.716e-05/0.6283, allocations: 12 kB / 498.5 MB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.6284, allocations: 0 / 498.5 MB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.6284, allocations: 7.984 kB / 498.5 MB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006367/0.6347, allocations: 3.384 MB / 0.4902 GB, free: 9.246 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.6348, allocations: 8 kB / 0.4902 GB, free: 9.238 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002211/0.637, allocations: 407.5 kB / 0.4906 GB, free: 8.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-05/0.637, allocations: 11.98 kB / 0.4906 GB, free: 8.828 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.909e-05/0.6371, allocations: 39.95 kB / 0.4906 GB, free: 8.789 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.785e-06/0.6371, allocations: 4 kB / 0.4906 GB, free: 8.785 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/0.6371, allocations: 11.89 kB / 0.4906 GB, free: 8.773 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003859/0.641, allocations: 2.869 MB / 0.4934 GB, free: 5.836 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007063/0.6417, allocations: 309.6 kB / 0.4937 GB, free: 5.512 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002458/0.642, allocations: 39.92 kB / 0.4938 GB, free: 5.473 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009473/0.6429, allocations: 39.95 kB / 0.4938 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.6431, allocations: 63.81 kB / 0.4939 GB, free: 5.371 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.138e-05/0.6432, allocations: 31.98 kB / 0.4939 GB, free: 5.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003192/0.6464, allocations: 1.829 MB / 0.4957 GB, free: 3.508 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6464, allocations: 0 / 0.4957 GB, free: 3.508 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004412/0.6508, allocations: 0.8299 MB / 0.4965 GB, free: 2.676 MB / 414.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.004029/0.6548, allocations: 3.825 MB / 0.5002 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005858/0.6607, allocations: 3.582 MB / 0.5037 GB, free: 11.25 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.6607, allocations: 0 / 0.5037 GB, free: 11.25 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001043/0.6618, allocations: 0.7116 MB / 0.5044 GB, free: 10.54 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001443/0.6632, allocations: 242.3 kB / 0.5046 GB, free: 10.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2594/0.9227, allocations: 111.3 MB / 0.6133 GB, free: 54.24 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002349/0.925, allocations: 2.45 MB / 0.6157 GB, free: 53.49 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003655/0.9287, allocations: 1.641 MB / 0.6173 GB, free: 53.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001357/0.9301, allocations: 1.217 MB / 0.6185 GB, free: 53.35 MB / 446.1 MB Notification: Performance of SimCode: time 9.92e-07/0.9301, allocations: 3.75 kB / 0.6185 GB, free: 53.35 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06426/0.9944, allocations: 50.67 MB / 0.668 GB, free: 9.363 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001707/0.9946, allocations: 212.6 kB / 0.6682 GB, free: 9.125 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.366/4.36, allocations: 0 / 0.6682 GB, free: 9.125 MB / 446.1 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