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.001107/0.001107, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.2 MB / 245 MB, free: 7.613 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009077/0.0009076, allocations: 102 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002145/0.0002145, allocations: 4 kB / 358 MB, free: 9.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2056/0.2058, allocations: 51.48 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1083/0.3142, allocations: 102.8 MB / 0.5002 GB, free: 3.816 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.3144, allocations: 91.95 kB / 0.5003 GB, free: 3.727 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4624/0.7769, allocations: 124.2 MB / 0.6216 GB, free: 3.707 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.225e-06/0.7769, allocations: 0 / 0.6216 GB, free: 3.707 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000201/0.7771, allocations: 112 kB / 0.6217 GB, free: 3.598 MB / 394.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.02836/0.8055, allocations: 7.347 MB / 0.6289 GB, free: 12.17 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.8056, allocations: 12.03 kB / 0.6289 GB, free: 12.16 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005413/0.811, allocations: 1.099 MB / 0.63 GB, free: 11.05 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01722/0.8283, allocations: 3.642 MB / 0.6336 GB, free: 7.395 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0166/0.8449, allocations: 6.556 MB / 0.64 GB, free: 0.7734 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005474/0.8455, allocations: 460 kB / 0.6404 GB, free: 328 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00282/0.8483, allocations: 0.6052 MB / 0.641 GB, free: 15.71 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03984/0.8882, allocations: 17.7 MB / 0.6583 GB, free: 12.68 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002246/0.8884, allocations: 83.27 kB / 0.6584 GB, free: 12.59 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009634/0.8894, allocations: 291.8 kB / 0.6586 GB, free: 12.31 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002386/0.8918, allocations: 1.633 MB / 0.6602 GB, free: 10.68 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2526/1.144, allocations: 15.35 MB / 0.6752 GB, free: 76.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07973/1.224, allocations: 67.49 MB / 0.7411 GB, free: 38.68 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01665/1.241, allocations: 7.019 MB / 0.748 GB, free: 35.93 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02516/1.266, allocations: 14.52 MB / 0.7622 GB, free: 28.55 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.533e-05/1.266, allocations: 60.38 kB / 0.7622 GB, free: 28.49 MB / 442.7 MB Notification: Performance of pre-optimization done (n=289): time 6.742e-06/1.266, allocations: 2.969 kB / 0.7622 GB, free: 28.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=321): time 0.06348/1.33, allocations: 26.05 MB / 0.7877 GB, free: 18.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002351/1.332, allocations: 4.615 MB / 0.7922 GB, free: 13.38 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007338/1.339, allocations: 4.571 MB / 0.7966 GB, free: 9.609 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009675/1.34, allocations: 75.03 kB / 0.7967 GB, free: 9.531 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002398/1.343, allocations: 4.173 MB / 0.8008 GB, free: 5.793 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001906/1.345, allocations: 1.247 MB / 0.802 GB, free: 4.695 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004954/1.345, allocations: 174.4 kB / 0.8022 GB, free: 4.527 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003921/1.346, allocations: 0.6836 MB / 0.8028 GB, free: 3.941 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00499/1.351, allocations: 3.576 MB / 0.8063 GB, free: 0.9727 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02096/1.372, allocations: 9.308 MB / 0.8154 GB, free: 9 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009448/1.381, allocations: 5.313 MB / 0.8206 GB, free: 4.441 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001383/1.381, allocations: 52 kB / 0.8207 GB, free: 4.391 MB / 458.7 MB Notification: Performance of matching and sorting (n=1158) (initialization): time 0.03359/1.415, allocations: 14.15 MB / 0.8345 GB, free: 7.246 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002671/1.415, allocations: 80 kB / 0.8346 GB, free: 7.168 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01637/1.432, allocations: 6.744 MB / 0.8411 GB, free: 344 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.274/1.706, allocations: 2.879 MB / 0.844 GB, free: 99.67 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007981/1.714, allocations: 2.078 MB / 0.846 GB, free: 99.67 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01246/1.726, allocations: 12.87 MB / 0.8586 GB, free: 92.02 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009429/1.736, allocations: 0.8238 MB / 0.8594 GB, free: 92.02 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002234/1.738, allocations: 0.5123 MB / 0.8599 GB, free: 92.02 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.007077/1.745, allocations: 2.731 MB / 0.8625 GB, free: 91.89 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001455/1.747, allocations: 488.5 kB / 0.863 GB, free: 91.89 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01462/1.761, allocations: 7.282 MB / 0.8701 GB, free: 91.59 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01259/1.774, allocations: 6.479 MB / 0.8764 GB, free: 91.34 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.106e-05/1.774, allocations: 6.469 kB / 0.8764 GB, free: 91.34 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.882e-05/1.774, allocations: 18.17 kB / 0.8764 GB, free: 91.34 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02848/1.803, allocations: 17.06 MB / 0.8931 GB, free: 90.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.905e-05/1.803, allocations: 6.781 kB / 0.8931 GB, free: 90.08 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002875/1.806, allocations: 0.5799 MB / 0.8937 GB, free: 90.06 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008055/1.814, allocations: 2.895 MB / 0.8965 GB, free: 89.59 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007747/1.814, allocations: 91.39 kB / 0.8966 GB, free: 89.55 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01161/1.826, allocations: 13.97 MB / 0.9102 GB, free: 80.41 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002048/1.828, allocations: 4.467 MB / 0.9146 GB, free: 76.15 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0171/1.845, allocations: 12.18 MB / 0.9265 GB, free: 71.12 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001594/1.847, allocations: 0.5343 MB / 0.927 GB, free: 70.87 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006648/1.848, allocations: 78.77 kB / 0.9271 GB, free: 70.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00269/1.85, allocations: 367.1 kB / 0.9274 GB, free: 70.79 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005387/1.851, allocations: 241.4 kB / 0.9277 GB, free: 70.76 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002453/1.851, allocations: 102.8 kB / 0.9278 GB, free: 70.74 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005359/1.856, allocations: 3.184 MB / 0.9309 GB, free: 69.72 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.1e-07/1.856, allocations: 0 / 0.9309 GB, free: 69.72 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008504/1.865, allocations: 1.74 MB / 0.9326 GB, free: 69.1 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.01767/1.883, allocations: 14.38 MB / 0.9466 GB, free: 56.46 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01675/1.899, allocations: 10.36 MB / 0.9567 GB, free: 47.68 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.268e-05/1.9, allocations: 7.938 kB / 0.9568 GB, free: 47.67 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008459/1.908, allocations: 5.086 MB / 0.9617 GB, free: 43.27 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003628/1.912, allocations: 0.5802 MB / 0.9623 GB, free: 42.78 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.382/2.294, allocations: 175.6 MB / 1.134 GB, free: 29.97 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004993/2.299, allocations: 4.403 MB / 1.138 GB, free: 29.12 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006442/2.305, allocations: 2.575 MB / 1.141 GB, free: 29.07 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003549/2.309, allocations: 2.809 MB / 1.143 GB, free: 29.06 MB / 0.4948 GB Notification: Performance of SimCode: time 9.82e-07/2.309, allocations: 0 / 1.143 GB, free: 29.06 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3632/2.672, allocations: 118.5 MB / 1.259 GB, free: 121 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001764/2.672, allocations: 215.5 kB / 1.259 GB, free: 120.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.619/8.291, allocations: 0 / 1.259 GB, free: 120.7 MB / 0.4948 GB (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