Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002202/0.002202, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.079/2.079, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001057/0.001057, allocations: 89.56 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.415e-05/2.411e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.3366, allocations: 47.55 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1534/0.4901, allocations: 92.56 MB / 455 MB, free: 9.629 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/0.4904, allocations: 80.98 kB / 455.1 MB, free: 9.551 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5488/1.039, allocations: 65.05 MB / 0.5079 GB, free: 99.12 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.934e-06/1.039, allocations: 0 / 0.5079 GB, free: 99.12 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002772/1.04, allocations: 64.5 kB / 0.508 GB, free: 99.11 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1143 * Number of variables: 1143 Notification: Performance of Generate backend data structure: time 0.01242/1.052, allocations: 3.092 MB / 0.511 GB, free: 97.7 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.732e-05/1.052, allocations: 9.219 kB / 0.511 GB, free: 97.7 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01427/1.066, allocations: 1.897 MB / 0.5129 GB, free: 97.46 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007859/1.074, allocations: 1.975 MB / 0.5148 GB, free: 96.96 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002521/1.075, allocations: 102.9 kB / 0.5149 GB, free: 96.96 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001782/1.076, allocations: 176.3 kB / 0.5151 GB, free: 96.96 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01123/1.088, allocations: 4.187 MB / 0.5192 GB, free: 96.95 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01706/1.105, allocations: 6.916 MB / 0.5259 GB, free: 94.7 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001658/1.105, allocations: 50.47 kB / 0.526 GB, free: 94.7 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00131/1.106, allocations: 25.19 kB / 0.526 GB, free: 94.7 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001485/1.108, allocations: 0.7388 MB / 0.5267 GB, free: 94.7 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04165/1.15, allocations: 33.71 MB / 0.5596 GB, free: 68.05 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002222/1.152, allocations: 1.361 MB / 0.561 GB, free: 67.09 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009088/1.153, allocations: 437.6 kB / 0.5614 GB, free: 66.92 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004142/1.153, allocations: 345.1 kB / 0.5617 GB, free: 66.62 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/1.153, allocations: 40.5 kB / 0.5617 GB, free: 66.57 MB / 395.1 MB Notification: Performance of pre-optimization done (n=87): time 4.869e-06/1.153, allocations: 3.938 kB / 0.5617 GB, free: 66.57 MB / 395.1 MB Notification: Performance of matching and sorting (n=87): time 0.004633/1.158, allocations: 1.239 MB / 0.563 GB, free: 66.17 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.884e-05/1.158, allocations: 188.6 kB / 0.5631 GB, free: 65.95 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007244/1.165, allocations: 2.942 MB / 0.566 GB, free: 64.82 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001635/1.166, allocations: 28.89 kB / 0.566 GB, free: 64.79 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002415/1.168, allocations: 2.707 MB / 0.5687 GB, free: 62.59 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005928/1.169, allocations: 379.6 kB / 0.569 GB, free: 62.33 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005047/1.169, allocations: 3.188 kB / 0.569 GB, free: 62.33 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0003251/1.169, allocations: 0.5203 MB / 0.5696 GB, free: 61.93 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002755/1.172, allocations: 1.157 MB / 0.5707 GB, free: 61.55 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005631/1.178, allocations: 4.613 MB / 0.5752 GB, free: 56.27 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005665/1.184, allocations: 2.327 MB / 0.5775 GB, free: 55.41 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001259/1.184, allocations: 32.91 kB / 0.5775 GB, free: 55.41 MB / 395.1 MB Notification: Performance of matching and sorting (n=651) (initialization): time 0.01339/1.197, allocations: 4.857 MB / 0.5822 GB, free: 51.21 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.609e-05/1.197, allocations: 60 kB / 0.5823 GB, free: 51.15 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001573/1.198, allocations: 124 kB / 0.5824 GB, free: 51.03 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001975/1.198, allocations: 184 kB / 0.5826 GB, free: 50.85 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006561/1.204, allocations: 1.187 MB / 0.5837 GB, free: 49.81 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001971/1.205, allocations: 250.1 kB / 0.584 GB, free: 49.59 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005788/1.21, allocations: 0.6057 MB / 0.5846 GB, free: 48.98 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001224/1.212, allocations: 357.9 kB / 0.5849 GB, free: 48.64 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 575 * Number of states: 0 () * Number of discrete variables: 24 (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],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (627): * Single equations (assignments): 624 * 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.0009558/1.213, allocations: 420.2 kB / 0.5853 GB, free: 48.23 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00245/1.215, allocations: 1.005 MB / 0.5863 GB, free: 47.32 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007377/1.216, allocations: 284.2 kB / 0.5866 GB, free: 47.04 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001549/1.217, allocations: 477.9 kB / 0.587 GB, free: 46.63 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.836e-05/1.218, allocations: 16.81 kB / 0.587 GB, free: 46.62 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/1.218, allocations: 0 / 0.587 GB, free: 46.62 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/1.218, allocations: 12.67 kB / 0.5871 GB, free: 46.61 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007535/1.225, allocations: 2.862 MB / 0.5898 GB, free: 44.2 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.637e-05/1.225, allocations: 4 kB / 0.5899 GB, free: 44.2 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009996/1.226, allocations: 115.1 kB / 0.59 GB, free: 44.1 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.506e-05/1.226, allocations: 8 kB / 0.59 GB, free: 44.09 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.764e-05/1.226, allocations: 12.22 kB / 0.59 GB, free: 44.08 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.448e-06/1.226, allocations: 8 kB / 0.59 GB, free: 44.07 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/1.226, allocations: 11.88 kB / 0.59 GB, free: 44.06 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003071/1.229, allocations: 2.377 MB / 0.5923 GB, free: 41.71 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/1.231, allocations: 445.4 kB / 0.5927 GB, free: 41.28 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000541/1.231, allocations: 8 kB / 0.5928 GB, free: 41.27 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001713/1.233, allocations: 30.5 kB / 0.5928 GB, free: 41.25 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/1.233, allocations: 54.95 kB / 0.5928 GB, free: 41.21 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.767e-05/1.233, allocations: 28.62 kB / 0.5929 GB, free: 41.18 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.004639/1.238, allocations: 2.011 MB / 0.5948 GB, free: 39.45 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.283e-06/1.238, allocations: 0 / 0.5948 GB, free: 39.45 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.005913/1.244, allocations: 0.751 MB / 0.5956 GB, free: 38.7 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (prismatic.v,position.s) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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.003863/1.248, allocations: 3.8 MB / 0.5993 GB, free: 34.94 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.005755/1.254, allocations: 2.644 MB / 0.6019 GB, free: 32.56 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/1.254, allocations: 5.844 kB / 0.6019 GB, free: 32.56 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007952/1.255, allocations: 409.6 kB / 0.6022 GB, free: 32.2 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002699/1.257, allocations: 324.2 kB / 0.6026 GB, free: 31.92 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02129/1.279, allocations: 6.679 MB / 0.6091 GB, free: 25.38 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003873/1.283, allocations: 2.755 MB / 0.6118 GB, free: 22.61 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002901/1.286, allocations: 1.53 MB / 0.6133 GB, free: 21.08 MB / 395.1 MB Notification: Performance of SimCode: time 1.372e-06/1.286, allocations: 0.75 kB / 0.6133 GB, free: 21.08 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.007/5.292, allocations: 63.19 MB / 0.675 GB, free: 84.42 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.mat does not exist to compare? outputFormat=mat