Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.002215/0.002215, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009199/0.0009199, allocations: 87.41 kB / 292.1 MB, free: 5.973 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.565e-05/4.569e-05, allocations: 4 kB / 350.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1283, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4045/0.5328, allocations: 102.7 MB / 0.493 GB, free: 3.027 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003072/0.5332, allocations: 85.95 kB / 0.4931 GB, free: 2.984 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6251/1.158, allocations: 124.3 MB / 0.6145 GB, free: 79.5 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.657e-06/1.158, allocations: 0 / 0.6145 GB, free: 79.5 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004815/1.159, allocations: 117.7 kB / 0.6146 GB, free: 79.5 MB / 442.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.04872/1.208, allocations: 7.031 MB / 0.6214 GB, free: 77.19 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.249e-05/1.208, allocations: 8.594 kB / 0.6214 GB, free: 77.19 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006518/1.214, allocations: 1.093 MB / 0.6225 GB, free: 77.1 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01983/1.234, allocations: 3.641 MB / 0.6261 GB, free: 76.68 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01901/1.253, allocations: 6.54 MB / 0.6325 GB, free: 75.89 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006414/1.254, allocations: 456.6 kB / 0.6329 GB, free: 75.87 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003945/1.258, allocations: 0.606 MB / 0.6335 GB, free: 75.86 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04697/1.305, allocations: 17.5 MB / 0.6506 GB, free: 70.63 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004561/1.305, allocations: 77.62 kB / 0.6506 GB, free: 70.59 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003634/1.309, allocations: 298.3 kB / 0.6509 GB, free: 70.43 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003401/1.312, allocations: 1.633 MB / 0.6525 GB, free: 70.16 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03507/1.347, allocations: 14.98 MB / 0.6671 GB, free: 66.44 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08133/1.429, allocations: 67.5 MB / 0.7331 GB, free: 232 kB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01877/1.448, allocations: 6.983 MB / 0.7399 GB, free: 9.008 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005641/1.453, allocations: 3.132 MB / 0.7429 GB, free: 5.855 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3541/1.808, allocations: 14.51 MB / 0.7571 GB, free: 86.19 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.126e-05/1.808, allocations: 69.73 kB / 0.7572 GB, free: 86.15 MB / 458.7 MB Notification: Performance of pre-optimization done (n=289): time 1.252e-05/1.808, allocations: 0 / 0.7572 GB, free: 86.15 MB / 458.7 MB Notification: Performance of matching and sorting (n=321): time 0.06227/1.87, allocations: 21.1 MB / 0.7778 GB, free: 82.78 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003137/1.873, allocations: 4.586 MB / 0.7823 GB, free: 78.48 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01229/1.885, allocations: 4.443 MB / 0.7866 GB, free: 78.04 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001088/1.887, allocations: 73.39 kB / 0.7867 GB, free: 78.01 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003969/1.891, allocations: 4.174 MB / 0.7907 GB, free: 75.76 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002489/1.893, allocations: 1.245 MB / 0.792 GB, free: 75.04 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001403/1.895, allocations: 174.3 kB / 0.7921 GB, free: 75.04 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008535/1.895, allocations: 0.6774 MB / 0.7928 GB, free: 74.71 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007856/1.903, allocations: 3.416 MB / 0.7961 GB, free: 74.69 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01044/1.914, allocations: 8.339 MB / 0.8043 GB, free: 67.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008862/1.923, allocations: 5.214 MB / 0.8094 GB, free: 65.82 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002429/1.923, allocations: 49.72 kB / 0.8094 GB, free: 65.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=1158) (initialization): time 0.0333/1.956, allocations: 13.84 MB / 0.8229 GB, free: 61.49 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001407/1.956, allocations: 81 kB / 0.823 GB, free: 61.49 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01446/1.971, allocations: 6.694 MB / 0.8295 GB, free: 59.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009642/1.981, allocations: 2.883 MB / 0.8323 GB, free: 59.15 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007596/1.988, allocations: 2.075 MB / 0.8344 GB, free: 58.91 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/1.999, allocations: 12.64 MB / 0.8467 GB, free: 49.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01176/2.011, allocations: 0.824 MB / 0.8475 GB, free: 49.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002374/2.014, allocations: 0.5116 MB / 0.848 GB, free: 49.59 MB / 458.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 () * 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.003173/2.017, allocations: 0.7782 MB / 0.8488 GB, free: 48.96 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001624/2.019, allocations: 490.2 kB / 0.8492 GB, free: 48.69 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01537/2.034, allocations: 7.228 MB / 0.8563 GB, free: 46.46 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0137/2.048, allocations: 6.425 MB / 0.8626 GB, free: 41.92 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.303e-05/2.048, allocations: 4 kB / 0.8626 GB, free: 41.91 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.719e-05/2.048, allocations: 18.91 kB / 0.8626 GB, free: 41.91 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03743/2.085, allocations: 16.99 MB / 0.8792 GB, free: 28.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.641e-05/2.085, allocations: 8 kB / 0.8792 GB, free: 28.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002999/2.088, allocations: 0.5773 MB / 0.8798 GB, free: 28.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008213/2.097, allocations: 2.89 MB / 0.8826 GB, free: 26.15 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008788/2.098, allocations: 92.34 kB / 0.8827 GB, free: 26.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01177/2.109, allocations: 13.71 MB / 0.8961 GB, free: 13.25 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002214/2.112, allocations: 4.431 MB / 0.9004 GB, free: 8.566 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02061/2.132, allocations: 12.11 MB / 0.9122 GB, free: 12.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002466/2.135, allocations: 0.5338 MB / 0.9127 GB, free: 11.54 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002321/2.137, allocations: 86.86 kB / 0.9128 GB, free: 11.46 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005117/2.142, allocations: 363.4 kB / 0.9132 GB, free: 11.11 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001388/2.144, allocations: 245.4 kB / 0.9134 GB, free: 10.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004172/2.144, allocations: 95.95 kB / 0.9135 GB, free: 10.77 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.3568/2.501, allocations: 3.04 MB / 0.9165 GB, free: 89.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.71e-07/2.501, allocations: 0 / 0.9165 GB, free: 89.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01182/2.513, allocations: 1.735 MB / 0.9181 GB, free: 89.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 () * 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.02437/2.537, allocations: 14.31 MB / 0.9321 GB, free: 85.32 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02077/2.558, allocations: 10.17 MB / 0.942 GB, free: 83.96 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.345e-05/2.558, allocations: 1.938 kB / 0.9421 GB, free: 83.96 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01212/2.57, allocations: 5.032 MB / 0.947 GB, free: 82.59 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00603/2.576, allocations: 0.5828 MB / 0.9475 GB, free: 82.57 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04574/2.622, allocations: 15.23 MB / 0.9624 GB, free: 78.94 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009874/2.632, allocations: 4.401 MB / 0.9667 GB, free: 78.08 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.009412/2.642, allocations: 2.572 MB / 0.9692 GB, free: 77.87 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006097/2.648, allocations: 2.808 MB / 0.972 GB, free: 76.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.272e-06/2.648, allocations: 0 / 0.972 GB, free: 76.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1836/2.831, allocations: 118.8 MB / 1.088 GB, free: 11.98 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001983/2.832, allocations: 210.8 kB / 1.088 GB, free: 11.75 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.954/9.786, allocations: 0 / 1.088 GB, free: 11.75 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat does not exist to compare? outputFormat=mat