Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.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.PointGravityWithPointMasses2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2",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.001809/0.001809, allocations: 176.4 kB / 8.348 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.418/1.418, allocations: 221.5 MB / 230.3 MB, free: 7.562 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.0009566/0.0009565, allocations: 95.14 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.898e-05/1.901e-05, allocations: 4 kB / 337.2 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1295, allocations: 50.41 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3993/0.5289, allocations: 93.14 MB / 480.7 MB, free: 1.543 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002996/0.5292, allocations: 85.8 kB / 480.8 MB, free: 1.461 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7227/1.252, allocations: 182.1 MB / 0.6474 GB, free: 56.99 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.214e-06/1.252, allocations: 0 / 0.6474 GB, free: 56.99 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004842/1.253, allocations: 156 kB / 0.6475 GB, free: 56.84 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2889 * Number of variables: 2889 Notification: Performance of Generate backend data structure: time 0.03241/1.285, allocations: 8.302 MB / 0.6556 GB, free: 48.48 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.905e-05/1.285, allocations: 8.031 kB / 0.6557 GB, free: 48.47 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02729/1.312, allocations: 4.688 MB / 0.6602 GB, free: 43.76 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02712/1.339, allocations: 12.27 MB / 0.6722 GB, free: 31.52 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005657/1.34, allocations: 272 kB / 0.6725 GB, free: 31.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004769/1.345, allocations: 0.5113 MB / 0.673 GB, free: 30.74 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0288/1.374, allocations: 17.73 MB / 0.6903 GB, free: 13.04 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05393/1.428, allocations: 23.18 MB / 0.7129 GB, free: 4.16 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001058/1.429, allocations: 134.8 kB / 0.7131 GB, free: 4.027 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0053/1.434, allocations: 52 kB / 0.7131 GB, free: 3.977 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00479/1.439, allocations: 2.097 MB / 0.7152 GB, free: 1.879 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5124/1.951, allocations: 108.7 MB / 0.8213 GB, free: 13.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01265/1.964, allocations: 10.26 MB / 0.8313 GB, free: 8.996 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01055/1.975, allocations: 9.208 MB / 0.8403 GB, free: 4.918 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006324/1.975, allocations: 379 kB / 0.8407 GB, free: 4.617 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/1.975, allocations: 65.56 kB / 0.8407 GB, free: 4.555 MB / 442.7 MB Notification: Performance of pre-optimization done (n=305): time 6.913e-06/1.975, allocations: 3.656 kB / 0.8407 GB, free: 4.555 MB / 442.7 MB Notification: Performance of matching and sorting (n=403): time 0.6005/2.576, allocations: 106.9 MB / 0.9451 GB, free: 102.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.873e-05/2.576, allocations: 196.8 kB / 0.9453 GB, free: 102.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01181/2.588, allocations: 5.439 MB / 0.9506 GB, free: 101.1 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002061/2.59, allocations: 31.67 kB / 0.9507 GB, free: 101.1 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004307/2.594, allocations: 5.826 MB / 0.9564 GB, free: 96.78 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002761/2.597, allocations: 1.489 MB / 0.9578 GB, free: 95.67 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001313/2.598, allocations: 0 / 0.9578 GB, free: 95.67 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005199/2.599, allocations: 0.7669 MB / 0.9586 GB, free: 95.17 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009506/2.609, allocations: 7.363 MB / 0.9657 GB, free: 92.28 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01448/2.623, allocations: 13.49 MB / 0.9789 GB, free: 81.17 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01291/2.636, allocations: 9.612 MB / 0.9883 GB, free: 77.8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002401/2.636, allocations: 61.84 kB / 0.9884 GB, free: 77.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=1430) (initialization): time 0.08312/2.719, allocations: 32.88 MB / 1.02 GB, free: 54.95 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001627/2.72, allocations: 100 kB / 1.021 GB, free: 54.85 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0304/2.75, allocations: 14.8 MB / 1.035 GB, free: 42.65 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04617/2.796, allocations: 13.64 MB / 1.048 GB, free: 28.99 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01032/2.807, allocations: 2.628 MB / 1.051 GB, free: 26.36 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3874/3.194, allocations: 49.01 MB / 1.099 GB, free: 87.81 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0141/3.208, allocations: 1.222 MB / 1.1 GB, free: 87.81 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004227/3.212, allocations: 0.6537 MB / 1.101 GB, free: 87.73 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 996 * Number of states: 0 () * Number of discrete variables: 89 (referenceSystem.fixedTranslation5.color[3],referenceSystem.fixedTranslation5.color[2],referenceSystem.fixedTranslation5.color[1],referenceSystem.fixedTranslation4.color[3],referenceSystem.fixedTranslation4.color[2],referenceSystem.fixedTranslation4.color[1],referenceSystem.fixedTranslation3.color[3],referenceSystem.fixedTranslation3.color[2],referenceSystem.fixedTranslation3.color[1],referenceSystem.fixedTranslation2.color[3],referenceSystem.fixedTranslation2.color[2],referenceSystem.fixedTranslation2.color[1],referenceSystem.fixedTranslation1.color[3],referenceSystem.fixedTranslation1.color[2],referenceSystem.fixedTranslation1.color[1],referenceSystem.fixedTranslation.color[3],referenceSystem.fixedTranslation.color[2],referenceSystem.fixedTranslation.color[1],referenceSystem.pointMass6.sphereColor[3],referenceSystem.pointMass6.sphereColor[2],referenceSystem.pointMass6.sphereColor[1],referenceSystem.pointMass5.sphereColor[3],referenceSystem.pointMass5.sphereColor[2],referenceSystem.pointMass5.sphereColor[1],referenceSystem.pointMass4.sphereColor[3],referenceSystem.pointMass4.sphereColor[2],referenceSystem.pointMass4.sphereColor[1],referenceSystem.pointMass3.sphereColor[3],referenceSystem.pointMass3.sphereColor[2],referenceSystem.pointMass3.sphereColor[1],referenceSystem.pointMass2.sphereColor[3],referenceSystem.pointMass2.sphereColor[2],referenceSystem.pointMass2.sphereColor[1],referenceSystem.pointMass1.sphereColor[3],referenceSystem.pointMass1.sphereColor[2],referenceSystem.pointMass1.sphereColor[1],freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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],fixedTranslation5.color[3],fixedTranslation5.color[2],fixedTranslation5.color[1],fixedTranslation4.color[3],fixedTranslation4.color[2],fixedTranslation4.color[1],fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],pointMass6.sphereColor[3],pointMass6.sphereColor[2],pointMass6.sphereColor[1],pointMass5.sphereColor[3],pointMass5.sphereColor[2],pointMass5.sphereColor[1],pointMass4.sphereColor[3],pointMass4.sphereColor[2],pointMass4.sphereColor[1],pointMass3.sphereColor[3],pointMass3.sphereColor[2],pointMass3.sphereColor[1],pointMass2.sphereColor[3],pointMass2.sphereColor[2],pointMass2.sphereColor[1],pointMass1.sphereColor[3],pointMass1.sphereColor[2],pointMass1.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1263): * Single equations (assignments): 1249 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,100.0%) 66,(6,100.0%) 36,(3,100.0%) 2} * Non-linear torn systems: 1 {4 7} Notification: Performance of prepare postOptimizeDAE: time 0.005161/3.218, allocations: 0.6753 MB / 1.101 GB, free: 87.54 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0658/3.283, allocations: 25.75 MB / 1.126 GB, free: 81.33 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003538/3.287, allocations: 0.6246 MB / 1.127 GB, free: 81.33 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005554/3.293, allocations: 1.207 MB / 1.128 GB, free: 80.46 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.06262/3.355, allocations: 24.73 MB / 1.152 GB, free: 74.33 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.249e-05/3.355, allocations: 33.66 kB / 1.152 GB, free: 74.33 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001279/3.356, allocations: 14.62 kB / 1.152 GB, free: 74.33 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1008/3.456, allocations: 45.51 MB / 1.197 GB, free: 35.87 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.493e-05/3.456, allocations: 4 kB / 1.197 GB, free: 35.87 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003883/3.46, allocations: 0.7034 MB / 1.198 GB, free: 35.19 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04409/3.504, allocations: 13.12 MB / 1.21 GB, free: 22.14 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001585/3.506, allocations: 59.88 kB / 1.21 GB, free: 22.08 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.346/3.852, allocations: 45.94 MB / 1.255 GB, free: 103.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001469/3.854, allocations: 2.829 MB / 1.258 GB, free: 100.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07352/3.927, allocations: 35.65 MB / 1.293 GB, free: 95.83 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001663/3.929, allocations: 0.631 MB / 1.293 GB, free: 95.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001849/3.931, allocations: 29.47 kB / 1.293 GB, free: 95.69 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006605/3.937, allocations: 0.7526 MB / 1.294 GB, free: 95.69 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001442/3.939, allocations: 311.9 kB / 1.295 GB, free: 95.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005518/3.939, allocations: 129.9 kB / 1.295 GB, free: 95.63 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006077/3.946, allocations: 3.655 MB / 1.298 GB, free: 94.29 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.5e-07/3.946, allocations: 0 / 1.298 GB, free: 94.29 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0125/3.958, allocations: 2.649 MB / 1.301 GB, free: 94.29 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 24 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3],$STATESET0.x[3],$STATESET0.x[2],$STATESET0.x[1],referenceSystem.pointMass1.frame_a.r_0[1],referenceSystem.pointMass1.frame_a.r_0[2],referenceSystem.pointMass1.frame_a.r_0[3],referenceSystem.pointMass1.v_0[1],referenceSystem.pointMass1.v_0[2],referenceSystem.pointMass1.v_0[3],referenceSystem.pointMass6.w_a[1],referenceSystem.pointMass6.w_a[2],referenceSystem.pointMass6.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (255): * Single equations (assignments): 246 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,100.0%) 36,(6,100.0%) 66} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.07462/4.033, allocations: 36.89 MB / 1.337 GB, free: 76.97 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02325/4.056, allocations: 17.87 MB / 1.354 GB, free: 61.41 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/4.056, allocations: 4 kB / 1.354 GB, free: 61.41 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009897/4.066, allocations: 8.201 MB / 1.362 GB, free: 54.09 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005452/4.071, allocations: 0.6656 MB / 1.363 GB, free: 53.54 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06131/4.133, allocations: 25.01 MB / 1.387 GB, free: 31.41 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009045/4.142, allocations: 6.236 MB / 1.393 GB, free: 25.17 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.009795/4.152, allocations: 3.391 MB / 1.397 GB, free: 21.78 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006204/4.158, allocations: 3.99 MB / 1.401 GB, free: 17.79 MB / 490.7 MB Notification: Performance of SimCode: time 1.733e-06/4.158, allocations: 0 / 1.401 GB, free: 17.79 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8935/5.051, allocations: 212 MB / 1.608 GB, free: 89.76 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001601/5.052, allocations: 174.3 kB / 1.608 GB, free: 89.57 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.913/12.96, allocations: 0 / 1.608 GB, free: 89.57 MB / 0.4948 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat does not exist to compare? outputFormat=mat