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.001165/0.001165, allocations: 181.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000931/0.0009309, allocations: 97.78 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002981/0.0002982, allocations: 12 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.2994, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1283/0.4277, allocations: 102.1 MB / 0.4919 GB, free: 10.33 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002996/0.4281, allocations: 95.95 kB / 0.492 GB, free: 10.23 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5153/0.9434, allocations: 120.5 MB / 0.6096 GB, free: 2.211 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.667e-06/0.9435, allocations: 3.938 kB / 0.6096 GB, free: 2.207 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003566/0.9438, allocations: 116 kB / 0.6097 GB, free: 2.094 MB / 378.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.03245/0.9763, allocations: 7.035 MB / 0.6166 GB, free: 10.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.582e-05/0.9764, allocations: 8.031 kB / 0.6166 GB, free: 10.97 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006175/0.9826, allocations: 1.091 MB / 0.6177 GB, free: 9.871 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01795/1.001, allocations: 3.471 MB / 0.6211 GB, free: 6.387 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02228/1.023, allocations: 7.324 MB / 0.6282 GB, free: 15 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006229/1.024, allocations: 464 kB / 0.6287 GB, free: 14.54 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003391/1.027, allocations: 0.6051 MB / 0.6293 GB, free: 13.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04563/1.073, allocations: 17.71 MB / 0.6466 GB, free: 10.89 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004515/1.073, allocations: 75.28 kB / 0.6466 GB, free: 10.82 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002808/1.076, allocations: 291.8 kB / 0.6469 GB, free: 10.54 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003074/1.079, allocations: 1.637 MB / 0.6485 GB, free: 8.895 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3202/1.399, allocations: 15.35 MB / 0.6635 GB, free: 68.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08599/1.485, allocations: 67.48 MB / 0.7294 GB, free: 29.67 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01693/1.502, allocations: 7.033 MB / 0.7363 GB, free: 26.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02737/1.53, allocations: 14.51 MB / 0.7504 GB, free: 19.54 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.968e-05/1.53, allocations: 63.5 kB / 0.7505 GB, free: 19.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=289): time 9.438e-06/1.53, allocations: 0 / 0.7505 GB, free: 19.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=321): time 0.07011/1.6, allocations: 26.05 MB / 0.7759 GB, free: 6.445 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0024/1.602, allocations: 4.615 MB / 0.7804 GB, free: 1.562 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01339/1.616, allocations: 4.961 MB / 0.7853 GB, free: 14.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009131/1.617, allocations: 70.72 kB / 0.7854 GB, free: 14.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00358/1.62, allocations: 4.173 MB / 0.7894 GB, free: 10.85 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001985/1.622, allocations: 1.243 MB / 0.7906 GB, free: 9.75 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001482/1.624, allocations: 177.9 kB / 0.7908 GB, free: 9.578 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001135/1.625, allocations: 0.6779 MB / 0.7915 GB, free: 9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007033/1.632, allocations: 3.571 MB / 0.795 GB, free: 6.035 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01093/1.643, allocations: 8.491 MB / 0.8033 GB, free: 12 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01049/1.654, allocations: 5.32 MB / 0.8084 GB, free: 7.383 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002291/1.654, allocations: 48 kB / 0.8085 GB, free: 7.336 MB / 458.7 MB Notification: Performance of matching and sorting (n=1158) (initialization): time 0.0373/1.691, allocations: 14.32 MB / 0.8225 GB, free: 10.49 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002292/1.691, allocations: 80 kB / 0.8226 GB, free: 10.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01641/1.708, allocations: 6.746 MB / 0.8291 GB, free: 3.574 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01003/1.718, allocations: 2.884 MB / 0.832 GB, free: 0.6523 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2764/1.994, allocations: 2.073 MB / 0.834 GB, free: 106.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01162/2.006, allocations: 12.87 MB / 0.8466 GB, free: 98.61 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009173/2.015, allocations: 0.8181 MB / 0.8473 GB, free: 98.61 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002782/2.018, allocations: 0.5189 MB / 0.8479 GB, free: 98.61 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 790 * 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 (1092): * Single equations (assignments): 1071 * 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.00718/2.025, allocations: 2.734 MB / 0.8505 GB, free: 98.49 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00122/2.027, allocations: 486.2 kB / 0.851 GB, free: 98.49 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01527/2.042, allocations: 7.28 MB / 0.8581 GB, free: 98.18 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01242/2.054, allocations: 6.478 MB / 0.8644 GB, free: 97.94 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-05/2.054, allocations: 7.516 kB / 0.8644 GB, free: 97.94 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.087e-05/2.054, allocations: 17.22 kB / 0.8644 GB, free: 97.94 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03303/2.088, allocations: 17.06 MB / 0.8811 GB, free: 96.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.561e-05/2.088, allocations: 10.38 kB / 0.8811 GB, free: 96.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002947/2.091, allocations: 0.5741 MB / 0.8817 GB, free: 96.71 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008313/2.099, allocations: 2.895 MB / 0.8845 GB, free: 96.24 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008471/2.1, allocations: 99.02 kB / 0.8846 GB, free: 96.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01165/2.111, allocations: 13.95 MB / 0.8982 GB, free: 87.06 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002122/2.114, allocations: 4.475 MB / 0.9026 GB, free: 82.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01742/2.131, allocations: 12.19 MB / 0.9145 GB, free: 77.78 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001739/2.133, allocations: 0.5358 MB / 0.915 GB, free: 77.52 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001142/2.134, allocations: 76.17 kB / 0.9151 GB, free: 77.48 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003319/2.137, allocations: 370 kB / 0.9154 GB, free: 77.44 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007081/2.138, allocations: 246.4 kB / 0.9157 GB, free: 77.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002684/2.138, allocations: 100.1 kB / 0.9158 GB, free: 77.39 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005545/2.144, allocations: 3.179 MB / 0.9189 GB, free: 76.38 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.072e-06/2.144, allocations: 0 / 0.9189 GB, free: 76.38 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008996/2.153, allocations: 1.726 MB / 0.9206 GB, free: 76.2 MB / 474.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 (267): * Single equations (assignments): 252 * 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.01771/2.171, allocations: 14.39 MB / 0.9346 GB, free: 63.96 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01942/2.19, allocations: 10.37 MB / 0.9448 GB, free: 55.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.574e-05/2.19, allocations: 0 / 0.9448 GB, free: 55.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009148/2.199, allocations: 5.081 MB / 0.9497 GB, free: 50.89 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004237/2.204, allocations: 0.5681 MB / 0.9503 GB, free: 50.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.356/2.56, allocations: 175.6 MB / 1.122 GB, free: 27.45 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006083/2.566, allocations: 4.402 MB / 1.126 GB, free: 26.61 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006106/2.572, allocations: 2.573 MB / 1.129 GB, free: 26.55 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003456/2.575, allocations: 2.806 MB / 1.131 GB, free: 26.55 MB / 490.7 MB Notification: Performance of SimCode: time 8.82e-07/2.575, allocations: 0 / 1.131 GB, free: 26.55 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4429/3.018, allocations: 118.5 MB / 1.247 GB, free: 114.8 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001625/3.018, allocations: 222.1 kB / 1.247 GB, free: 114.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.957/8.976, allocations: 3.938 kB / 1.247 GB, free: 114.6 MB / 490.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