Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.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.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",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.001572/0.001572, allocations: 176.4 kB / 8.349 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.439/1.439, allocations: 221.5 MB / 230.3 MB, free: 7.547 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.0009837/0.0009837, allocations: 94.19 kB / 281.2 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.502e-05/1.503e-05, allocations: 4 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09875/0.09878, allocations: 50.41 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3626/0.4615, allocations: 101.4 MB / 488.9 MB, free: 9.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/0.4618, allocations: 87.95 kB / 489 MB, free: 9.254 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5368/0.9986, allocations: 118 MB / 0.5928 GB, free: 96.89 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.9987, allocations: 0 / 0.5928 GB, free: 96.89 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000297/0.999, allocations: 118.1 kB / 0.5929 GB, free: 96.88 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: 2151 * Number of variables: 2151 Notification: Performance of Generate backend data structure: time 0.03267/1.032, allocations: 6.738 MB / 0.5995 GB, free: 94.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/1.032, allocations: 6.781 kB / 0.5995 GB, free: 94.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01715/1.049, allocations: 3.472 MB / 0.6029 GB, free: 94.04 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02086/1.07, allocations: 7.289 MB / 0.61 GB, free: 91.67 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004054/1.07, allocations: 197.9 kB / 0.6102 GB, free: 91.67 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00358/1.074, allocations: 359.6 kB / 0.6106 GB, free: 91.66 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01789/1.092, allocations: 9.233 MB / 0.6196 GB, free: 86.04 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03118/1.123, allocations: 13.24 MB / 0.6325 GB, free: 71.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004315/1.124, allocations: 75.33 kB / 0.6326 GB, free: 71.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002537/1.126, allocations: 43.94 kB / 0.6326 GB, free: 71.39 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002792/1.129, allocations: 1.633 MB / 0.6342 GB, free: 69.75 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07509/1.204, allocations: 66.33 MB / 0.699 GB, free: 1.773 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006574/1.211, allocations: 4.876 MB / 0.7037 GB, free: 12.69 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00436/1.215, allocations: 2.955 MB / 0.7066 GB, free: 9.73 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2999/1.515, allocations: 13.37 MB / 0.7197 GB, free: 103.4 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.065e-05/1.515, allocations: 64.38 kB / 0.7197 GB, free: 103.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 7.454e-06/1.515, allocations: 0 / 0.7197 GB, free: 103.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=307): time 0.04986/1.565, allocations: 18.98 MB / 0.7383 GB, free: 100 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/1.565, allocations: 163.1 kB / 0.7384 GB, free: 99.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006919/1.572, allocations: 3.86 MB / 0.7422 GB, free: 99.45 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001099/1.573, allocations: 25.7 kB / 0.7422 GB, free: 99.42 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002903/1.576, allocations: 4.248 MB / 0.7464 GB, free: 96.98 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002117/1.578, allocations: 1.165 MB / 0.7475 GB, free: 96.29 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006956/1.579, allocations: 0 / 0.7475 GB, free: 96.29 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005044/1.579, allocations: 0.6828 MB / 0.7482 GB, free: 95.92 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004593/1.584, allocations: 3.257 MB / 0.7514 GB, free: 94.81 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007141/1.591, allocations: 8.288 MB / 0.7595 GB, free: 86.94 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008182/1.599, allocations: 5.049 MB / 0.7644 GB, free: 85.46 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002203/1.6, allocations: 50.06 kB / 0.7644 GB, free: 85.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.03076/1.631, allocations: 12.73 MB / 0.7769 GB, free: 81.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001757/1.631, allocations: 81.41 kB / 0.777 GB, free: 81.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01389/1.645, allocations: 6.453 MB / 0.7833 GB, free: 79.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009225/1.654, allocations: 2.835 MB / 0.786 GB, free: 79.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007889/1.662, allocations: 2.106 MB / 0.7881 GB, free: 79.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01025/1.672, allocations: 12.18 MB / 0.8 GB, free: 68.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01057/1.683, allocations: 0.6575 MB / 0.8006 GB, free: 68.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002877/1.686, allocations: 0.5328 MB / 0.8011 GB, free: 67.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 818 * Number of states: 0 () * Number of discrete variables: 66 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],springDamperSeries.color[3],springDamperSeries.color[2],springDamperSeries.color[1],springDamperSeries.color_b[3],springDamperSeries.color_b[2],springDamperSeries.color_b[1],springDamperSeries.color_a[3],springDamperSeries.color_a[2],springDamperSeries.color_a[1],bar3.color[3],bar3.color[2],bar3.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (1108): * Single equations (assignments): 1087 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003954/1.69, allocations: 0.5723 MB / 0.8017 GB, free: 66.93 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01445/1.704, allocations: 6.941 MB / 0.8085 GB, free: 61.41 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002389/1.707, allocations: 442.3 kB / 0.8089 GB, free: 60.97 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01475/1.721, allocations: 6.89 MB / 0.8156 GB, free: 55.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01198/1.733, allocations: 6.171 MB / 0.8216 GB, free: 50.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.731e-05/1.733, allocations: 15.89 kB / 0.8217 GB, free: 50.91 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.326e-05/1.734, allocations: 15 kB / 0.8217 GB, free: 50.91 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03412/1.768, allocations: 15.26 MB / 0.8366 GB, free: 36.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-05/1.768, allocations: 4 kB / 0.8366 GB, free: 36.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00302/1.771, allocations: 0.5461 MB / 0.8371 GB, free: 35.97 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008251/1.779, allocations: 2.841 MB / 0.8399 GB, free: 33.09 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001154/1.78, allocations: 43.94 kB / 0.8399 GB, free: 33.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/1.792, allocations: 13.37 MB / 0.853 GB, free: 19.01 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001949/1.794, allocations: 4.254 MB / 0.8571 GB, free: 14.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01821/1.812, allocations: 11.11 MB / 0.868 GB, free: 3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00172/1.814, allocations: 487.2 kB / 0.8685 GB, free: 2.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001381/1.815, allocations: 27.97 kB / 0.8685 GB, free: 2.473 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003747/1.819, allocations: 315.4 kB / 0.8688 GB, free: 2.164 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007461/1.82, allocations: 221.5 kB / 0.869 GB, free: 1.949 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002488/1.82, allocations: 92.95 kB / 0.8691 GB, free: 1.859 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004326/1.824, allocations: 2.524 MB / 0.8715 GB, free: 15.34 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.824, allocations: 0 / 0.8715 GB, free: 15.34 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01013/1.835, allocations: 1.557 MB / 0.8731 GB, free: 13.79 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 37 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],springDamperSeries.s_damper,body3.frame_a.r_0[1],body3.frame_a.r_0[2],body3.frame_a.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body3.w_a[1],body3.w_a[2],body3.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 238 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2978/2.132, allocations: 12.56 MB / 0.8853 GB, free: 106 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02215/2.155, allocations: 9.669 MB / 0.8948 GB, free: 104.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/2.155, allocations: 0.75 kB / 0.8948 GB, free: 104.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009828/2.164, allocations: 4.882 MB / 0.8995 GB, free: 103.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003637/2.168, allocations: 447 kB / 0.9 GB, free: 103.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0346/2.203, allocations: 14.65 MB / 0.9143 GB, free: 99.37 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004721/2.207, allocations: 4.387 MB / 0.9186 GB, free: 97.9 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.006597/2.214, allocations: 2.591 MB / 0.9211 GB, free: 97.69 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003464/2.218, allocations: 2.797 MB / 0.9238 GB, free: 95.41 MB / 458.7 MB Notification: Performance of SimCode: time 1.933e-06/2.218, allocations: 0 / 0.9238 GB, free: 95.41 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1608/2.378, allocations: 109.8 MB / 1.031 GB, free: 10.11 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002477/2.379, allocations: 157.4 kB / 1.031 GB, free: 9.91 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.684/8.063, allocations: 0 / 1.031 GB, free: 9.91 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat does not exist to compare? outputFormat=mat