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.003852/0.003858, allocations: 185.5 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.161/2.161, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001141/0.001141, allocations: 98.84 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003982/0.0003983, allocations: 12 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3351, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1662/0.5013, allocations: 100.4 MB / 475 MB, free: 12.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003756/0.5018, allocations: 95.95 kB / 475.1 MB, free: 12.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7576/1.259, allocations: 119.2 MB / 0.5804 GB, free: 34.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.267e-06/1.259, allocations: 0 / 0.5804 GB, free: 34.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003341/1.26, allocations: 120 kB / 0.5805 GB, free: 34.24 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.0473/1.307, allocations: 7.074 MB / 0.5875 GB, free: 27.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/1.307, allocations: 8.031 kB / 0.5875 GB, free: 27.08 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005326/1.313, allocations: 1.095 MB / 0.5885 GB, free: 25.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02903/1.342, allocations: 3.472 MB / 0.5919 GB, free: 22.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02844/1.37, allocations: 7.757 MB / 0.5995 GB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006545/1.371, allocations: 464 kB / 0.5999 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003586/1.374, allocations: 0.6012 MB / 0.6005 GB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06421/1.439, allocations: 17.7 MB / 0.6178 GB, free: 10.57 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004631/1.439, allocations: 83.27 kB / 0.6179 GB, free: 10.49 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002896/1.442, allocations: 291.8 kB / 0.6182 GB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005199/1.447, allocations: 1.637 MB / 0.6198 GB, free: 8.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06464/1.512, allocations: 15.35 MB / 0.6348 GB, free: 9.191 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4294/1.941, allocations: 67.55 MB / 0.7007 GB, free: 31.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03116/1.973, allocations: 7.025 MB / 0.7076 GB, free: 30.25 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03626/2.009, allocations: 14.53 MB / 0.7218 GB, free: 25.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.2e-05/2.009, allocations: 65.47 kB / 0.7218 GB, free: 25.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=289): time 7.715e-06/2.009, allocations: 0 / 0.7218 GB, free: 25.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=321): time 0.1231/2.132, allocations: 26.21 MB / 0.7474 GB, free: 16.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004301/2.137, allocations: 4.616 MB / 0.7519 GB, free: 11.61 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01324/2.15, allocations: 4.62 MB / 0.7565 GB, free: 9.863 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001018/2.151, allocations: 72.83 kB / 0.7565 GB, free: 9.789 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003899/2.155, allocations: 4.065 MB / 0.7605 GB, free: 6.195 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002325/2.157, allocations: 1.238 MB / 0.7617 GB, free: 5.098 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001567/2.159, allocations: 174.3 kB / 0.7619 GB, free: 4.93 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0007894/2.16, allocations: 0.688 MB / 0.7625 GB, free: 4.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01057/2.17, allocations: 3.567 MB / 0.766 GB, free: 1.375 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02754/2.198, allocations: 9.153 MB / 0.775 GB, free: 9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01585/2.214, allocations: 5.316 MB / 0.7802 GB, free: 4.488 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00021/2.214, allocations: 55.95 kB / 0.7802 GB, free: 4.434 MB / 426.7 MB Notification: Performance of matching and sorting (n=1158) (initialization): time 0.05184/2.266, allocations: 13.99 MB / 0.7939 GB, free: 8.758 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001667/2.266, allocations: 80 kB / 0.794 GB, free: 8.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0283/2.294, allocations: 6.746 MB / 0.8005 GB, free: 1.844 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01784/2.312, allocations: 2.885 MB / 0.8034 GB, free: 14.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01391/2.326, allocations: 2.07 MB / 0.8054 GB, free: 12.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3482/2.675, allocations: 12.86 MB / 0.8179 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01321/2.688, allocations: 0.8206 MB / 0.8187 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002428/2.69, allocations: 0.519 MB / 0.8192 GB, free: 108.2 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 () * 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.008679/2.699, allocations: 2.739 MB / 0.8219 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001511/2.701, allocations: 492 kB / 0.8224 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02798/2.729, allocations: 7.277 MB / 0.8295 GB, free: 107.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0247/2.753, allocations: 6.479 MB / 0.8358 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-05/2.753, allocations: 6.094 kB / 0.8358 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001193/2.754, allocations: 20.03 kB / 0.8359 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05907/2.813, allocations: 17.06 MB / 0.8525 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.703e-05/2.813, allocations: 11.45 kB / 0.8525 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005546/2.818, allocations: 0.5757 MB / 0.8531 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01676/2.835, allocations: 2.895 MB / 0.8559 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001077/2.836, allocations: 100.2 kB / 0.856 GB, free: 106.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02352/2.86, allocations: 13.95 MB / 0.8696 GB, free: 97.11 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003573/2.863, allocations: 4.475 MB / 0.874 GB, free: 92.85 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03398/2.897, allocations: 12.2 MB / 0.8859 GB, free: 87.82 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00203/2.9, allocations: 0.5374 MB / 0.8864 GB, free: 87.67 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002247/2.902, allocations: 86.3 kB / 0.8865 GB, free: 87.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006779/2.909, allocations: 369.8 kB / 0.8869 GB, free: 87.58 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001491/2.91, allocations: 239.2 kB / 0.8871 GB, free: 87.55 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006462/2.911, allocations: 101.6 kB / 0.8872 GB, free: 87.54 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009628/2.921, allocations: 3.205 MB / 0.8903 GB, free: 86.51 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.11e-07/2.921, allocations: 0 / 0.8903 GB, free: 86.51 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01202/2.933, allocations: 1.741 MB / 0.892 GB, free: 86.33 MB / 458.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.03451/2.967, allocations: 14.39 MB / 0.9061 GB, free: 76.09 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02931/2.997, allocations: 10.38 MB / 0.9162 GB, free: 67.54 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.588e-05/2.997, allocations: 5.969 kB / 0.9162 GB, free: 67.54 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01676/3.013, allocations: 5.096 MB / 0.9212 GB, free: 63.17 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0054/3.019, allocations: 0.5805 MB / 0.9218 GB, free: 62.68 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4804/3.499, allocations: 176.5 MB / 1.094 GB, free: 13.82 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01127/3.511, allocations: 4.417 MB / 1.098 GB, free: 12.97 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00759/3.518, allocations: 2.883 MB / 1.101 GB, free: 12.96 MB / 458.7 MB Notification: Performance of SimCode: time 1.553e-06/3.518, allocations: 0 / 1.101 GB, free: 12.96 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.846/10.36, allocations: 389.8 MB / 1.482 GB, free: 38.39 MB / 490.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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat does not exist to compare? outputFormat=mat