Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.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.HeatLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.0008091/0.0008092, allocations: 175 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.158/1.158, allocations: 205.4 MB / 222.9 MB, free: 9.039 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006679/0.0006681, allocations: 103.8 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002831/0.0002831, allocations: 12 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1929/0.1932, allocations: 47.58 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses): time 0.0355/0.2288, allocations: 54.97 MB / 430.2 MB, free: 9.602 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0239/0.2527, allocations: 11.56 MB / 441.7 MB, free: 14 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00928/0.262, allocations: 259.3 kB / 442 MB, free: 13.75 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007903/0.27, allocations: 2.819 MB / 444.8 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02009/0.2901, allocations: 8.427 MB / 453.2 MB, free: 2.457 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00379/0.2939, allocations: 0.9245 MB / 454.2 MB, free: 1.531 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.008438/0.3023, allocations: 6.912 MB / 461.1 MB, free: 10.6 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007719/0.3101, allocations: 6.068 MB / 467.1 MB, free: 4.426 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00306/0.3132, allocations: 1.802 MB / 468.9 MB, free: 2.617 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003426/0.3167, allocations: 2.819 MB / 471.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006923/0.3174, allocations: 208 kB / 472 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00234/0.3197, allocations: 1.174 MB / 473.1 MB, free: 14.41 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002151/0.3219, allocations: 2.447 MB / 475.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002736/0.3246, allocations: 2.685 MB / 478.3 MB, free: 9.25 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007062/0.3317, allocations: 7.131 MB / 485.4 MB, free: 2.102 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3317, allocations: 0 / 485.4 MB, free: 2.102 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.3318, allocations: 8 kB / 485.4 MB, free: 2.094 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002391/0.332, allocations: 0 / 485.4 MB, free: 2.094 MB / 362.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.01121/0.3432, allocations: 5.707 MB / 491.1 MB, free: 12.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.3433, allocations: 8.031 kB / 491.1 MB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001857/0.3451, allocations: 1.017 MB / 492.1 MB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009927/0.3551, allocations: 2.699 MB / 494.8 MB, free: 8.559 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007545/0.3627, allocations: 4.553 MB / 499.4 MB, free: 3.945 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002648/0.363, allocations: 356.8 kB / 499.7 MB, free: 3.594 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001879/0.3649, allocations: 0.6788 MB / 0.4887 GB, free: 2.914 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1801/0.5449, allocations: 17.42 MB / 0.5057 GB, free: 100.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002432/0.5452, allocations: 56.58 kB / 0.5058 GB, free: 100.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001318/0.5465, allocations: 220.8 kB / 0.506 GB, free: 100.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003749/0.5503, allocations: 2.842 MB / 0.5087 GB, free: 99.49 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02864/0.579, allocations: 15.26 MB / 0.5236 GB, free: 84.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05854/0.6375, allocations: 58.8 MB / 0.5811 GB, free: 24.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01519/0.6528, allocations: 7.128 MB / 0.588 GB, free: 17.58 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003747/0.6566, allocations: 3.238 MB / 0.5912 GB, free: 14.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01854/0.6751, allocations: 14.37 MB / 0.6052 GB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.19e-05/0.6752, allocations: 64.56 kB / 0.6053 GB, free: 15.5 MB / 394.7 MB Notification: Performance of pre-optimization done (n=289): time 5.09e-06/0.6752, allocations: 0 / 0.6053 GB, free: 15.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=321): time 0.06928/0.7445, allocations: 26.24 MB / 0.6309 GB, free: 4.965 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003183/0.7477, allocations: 4.597 MB / 0.6354 GB, free: 15.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009199/0.757, allocations: 5.124 MB / 0.6404 GB, free: 10.78 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006603/0.7577, allocations: 75.73 kB / 0.6405 GB, free: 10.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002917/0.7606, allocations: 4.185 MB / 0.6446 GB, free: 6.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001615/0.7622, allocations: 1.241 MB / 0.6458 GB, free: 5.223 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008877/0.7631, allocations: 184 kB / 0.6459 GB, free: 5.043 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006408/0.7638, allocations: 0.6782 MB / 0.6466 GB, free: 4.355 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005861/0.7697, allocations: 3.531 MB / 0.65 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1699/0.9396, allocations: 8.496 MB / 0.6583 GB, free: 135 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01422/0.9539, allocations: 12.83 MB / 0.6709 GB, free: 125 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001405/0.954, allocations: 53.66 kB / 0.6709 GB, free: 125 MB / 426.7 MB Notification: Performance of matching and sorting (n=1160) (initialization): time 0.02455/0.9786, allocations: 14.1 MB / 0.6847 GB, free: 120.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000203/0.9788, allocations: 81.84 kB / 0.6848 GB, free: 120.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0124/0.9913, allocations: 6.838 MB / 0.6915 GB, free: 115.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008208/0.9995, allocations: 2.876 MB / 0.6943 GB, free: 112.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006047/1.006, allocations: 2.035 MB / 0.6962 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009865/1.015, allocations: 12.65 MB / 0.7086 GB, free: 97.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007492/1.023, allocations: 0.6914 MB / 0.7093 GB, free: 96.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001567/1.025, allocations: 0.5203 MB / 0.7098 GB, free: 96.02 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1094): * Single equations (assignments): 1073 * 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.004954/1.03, allocations: 2.737 MB / 0.7125 GB, free: 93.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/1.031, allocations: 489.1 kB / 0.7129 GB, free: 93.12 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0139/1.045, allocations: 7.409 MB / 0.7202 GB, free: 85.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01116/1.056, allocations: 6.576 MB / 0.7266 GB, free: 78.95 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.182e-05/1.056, allocations: 12 kB / 0.7266 GB, free: 78.94 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.819e-05/1.056, allocations: 15.94 kB / 0.7266 GB, free: 78.93 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02817/1.084, allocations: 17.16 MB / 0.7434 GB, free: 61.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-05/1.084, allocations: 8 kB / 0.7434 GB, free: 61.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002423/1.087, allocations: 0.5893 MB / 0.744 GB, free: 61.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007663/1.094, allocations: 2.912 MB / 0.7468 GB, free: 58.14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000528/1.095, allocations: 95.94 kB / 0.7469 GB, free: 58.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01123/1.106, allocations: 13.72 MB / 0.7603 GB, free: 43.62 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002021/1.108, allocations: 4.451 MB / 0.7646 GB, free: 38.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01776/1.126, allocations: 11.31 MB / 0.7757 GB, free: 27.38 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/1.127, allocations: 0.5376 MB / 0.7762 GB, free: 26.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001159/1.128, allocations: 86.08 kB / 0.7763 GB, free: 26.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003217/1.132, allocations: 327.4 kB / 0.7766 GB, free: 26.41 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009329/1.133, allocations: 253.4 kB / 0.7768 GB, free: 26.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003536/1.133, allocations: 99.95 kB / 0.7769 GB, free: 26.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004757/1.138, allocations: 3.153 MB / 0.78 GB, free: 22.93 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.138, allocations: 0 / 0.78 GB, free: 22.93 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00702/1.145, allocations: 1.726 MB / 0.7817 GB, free: 21.21 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (273): * Single equations (assignments): 258 * 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 {(4,100.0%),(3,100.0%),(3,100.0%),(4,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 Backend phase and start with SimCode phase: time 0.01706/1.162, allocations: 12.05 MB / 0.7935 GB, free: 8.922 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01592/1.178, allocations: 10.37 MB / 0.8036 GB, free: 14.36 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.328e-06/1.178, allocations: 0 / 0.8036 GB, free: 14.36 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1638/1.342, allocations: 5.121 MB / 0.8086 GB, free: 148.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008169/1.35, allocations: 0.6307 MB / 0.8092 GB, free: 148.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08194/1.432, allocations: 57.8 MB / 0.8657 GB, free: 104.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00511/1.437, allocations: 4.301 MB / 0.8699 GB, free: 100.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00335/1.44, allocations: 2.877 MB / 0.8727 GB, free: 97.31 MB / 442.7 MB Notification: Performance of SimCode: time 8.81e-07/1.44, allocations: 0 / 0.8727 GB, free: 97.31 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.87/13.31, allocations: 397.4 MB / 1.261 GB, free: 38.58 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe 2>&1)