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.001437/0.001436, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.911/1.911, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001087/0.001087, allocations: 97.38 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.263e-05/2.271e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3303, allocations: 47.56 MB / 362.4 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1631/0.4934, allocations: 99.65 MB / 462.1 MB, free: 2.602 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003231/0.4938, allocations: 88.8 kB / 462.2 MB, free: 2.516 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.773/1.267, allocations: 116.8 MB / 0.5654 GB, free: 77.5 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.795e-06/1.267, allocations: 0 / 0.5654 GB, free: 77.5 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003205/1.267, allocations: 118.8 kB / 0.5655 GB, free: 77.38 MB / 395.1 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.04623/1.313, allocations: 6.756 MB / 0.5721 GB, free: 70.57 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/1.314, allocations: 8.031 kB / 0.5721 GB, free: 70.57 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02797/1.342, allocations: 3.476 MB / 0.5755 GB, free: 67.08 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02854/1.37, allocations: 7.72 MB / 0.583 GB, free: 59.36 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004286/1.371, allocations: 196 kB / 0.5832 GB, free: 59.17 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003276/1.374, allocations: 367.8 kB / 0.5835 GB, free: 58.81 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02248/1.396, allocations: 9.231 MB / 0.5926 GB, free: 49.57 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03306/1.43, allocations: 13.24 MB / 0.6055 GB, free: 35.04 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000377/1.43, allocations: 79.28 kB / 0.6056 GB, free: 34.96 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00291/1.433, allocations: 40 kB / 0.6056 GB, free: 34.92 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004455/1.437, allocations: 1.645 MB / 0.6072 GB, free: 33.28 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4309/1.868, allocations: 66.38 MB / 0.672 GB, free: 52.14 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01022/1.879, allocations: 4.869 MB / 0.6768 GB, free: 51.16 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006903/1.886, allocations: 2.951 MB / 0.6797 GB, free: 51.12 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03746/1.923, allocations: 13.4 MB / 0.6928 GB, free: 48.07 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.209e-05/1.923, allocations: 70.06 kB / 0.6928 GB, free: 48.03 MB / 411.1 MB Notification: Performance of pre-optimization done (n=280): time 7.153e-06/1.923, allocations: 2 kB / 0.6928 GB, free: 48.03 MB / 411.1 MB Notification: Performance of matching and sorting (n=307): time 0.07492/1.998, allocations: 19.13 MB / 0.7115 GB, free: 42.06 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.268e-05/1.998, allocations: 158.7 kB / 0.7117 GB, free: 41.91 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01014/2.008, allocations: 3.895 MB / 0.7155 GB, free: 40.48 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008736/2.009, allocations: 25.7 kB / 0.7155 GB, free: 40.45 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003324/2.013, allocations: 4.195 MB / 0.7196 GB, free: 37.11 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001978/2.015, allocations: 1.171 MB / 0.7207 GB, free: 36.24 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001033/2.016, allocations: 3.906 kB / 0.7207 GB, free: 36.24 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0006096/2.016, allocations: 0.6884 MB / 0.7214 GB, free: 35.76 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007904/2.024, allocations: 3.255 MB / 0.7246 GB, free: 34.66 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01128/2.036, allocations: 8.283 MB / 0.7327 GB, free: 26.77 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01104/2.047, allocations: 5.047 MB / 0.7376 GB, free: 25.29 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001996/2.047, allocations: 52.62 kB / 0.7376 GB, free: 25.29 MB / 411.1 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.03991/2.087, allocations: 12.63 MB / 0.75 GB, free: 15.39 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001258/2.087, allocations: 85.31 kB / 0.7501 GB, free: 15.31 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02153/2.109, allocations: 6.434 MB / 0.7563 GB, free: 10.18 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01579/2.124, allocations: 2.84 MB / 0.7591 GB, free: 8.234 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01263/2.137, allocations: 2.104 MB / 0.7612 GB, free: 6.414 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.019/2.156, allocations: 12.17 MB / 0.7731 GB, free: 10.85 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01318/2.169, allocations: 0.6523 MB / 0.7737 GB, free: 10.41 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002624/2.172, allocations: 0.5307 MB / 0.7742 GB, free: 9.898 MB / 427.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 818 * 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 (1108): * Single equations (assignments): 1087 * 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.003012/2.175, allocations: 0.5712 MB / 0.7748 GB, free: 9.324 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03141/2.207, allocations: 6.945 MB / 0.7816 GB, free: 3.801 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002639/2.209, allocations: 446.2 kB / 0.782 GB, free: 3.359 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03867/2.248, allocations: 6.897 MB / 0.7887 GB, free: 12.94 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03375/2.282, allocations: 6.176 MB / 0.7947 GB, free: 6.719 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.223e-05/2.282, allocations: 4 kB / 0.7947 GB, free: 6.715 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001084/2.282, allocations: 15.95 kB / 0.7948 GB, free: 6.699 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06288/2.345, allocations: 15.28 MB / 0.8097 GB, free: 7.324 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.429e-05/2.345, allocations: 4 kB / 0.8097 GB, free: 7.32 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005772/2.351, allocations: 0.5461 MB / 0.8102 GB, free: 6.773 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0168/2.368, allocations: 2.834 MB / 0.813 GB, free: 3.902 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00111/2.369, allocations: 55.92 kB / 0.813 GB, free: 3.848 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02636/2.395, allocations: 13.37 MB / 0.8261 GB, free: 5.809 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004788/2.4, allocations: 4.259 MB / 0.8303 GB, free: 1.184 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3668/2.767, allocations: 11.1 MB / 0.8411 GB, free: 136 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001779/2.769, allocations: 498.7 kB / 0.8416 GB, free: 135.9 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001887/2.771, allocations: 26.5 kB / 0.8416 GB, free: 135.9 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006649/2.777, allocations: 320.4 kB / 0.8419 GB, free: 135.9 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001507/2.779, allocations: 217.2 kB / 0.8421 GB, free: 135.9 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006326/2.779, allocations: 91.95 kB / 0.8422 GB, free: 135.9 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.008018/2.788, allocations: 2.556 MB / 0.8447 GB, free: 135.7 MB / 475.1 MB Notification: Performance of sort global known variables: time 2.144e-06/2.788, allocations: 1.781 kB / 0.8447 GB, free: 135.7 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.0126/2.8, allocations: 1.562 MB / 0.8462 GB, free: 135.7 MB / 475.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (253): * Single equations (assignments): 238 * 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.03429/2.835, allocations: 12.57 MB / 0.8585 GB, free: 133.2 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.02674/2.861, allocations: 9.677 MB / 0.868 GB, free: 131.8 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 1.235e-05/2.861, allocations: 0 / 0.868 GB, free: 131.8 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01665/2.878, allocations: 4.888 MB / 0.8727 GB, free: 129.6 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004968/2.883, allocations: 454.2 kB / 0.8732 GB, free: 129.4 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05042/2.934, allocations: 15.32 MB / 0.8881 GB, free: 123.8 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01037/2.944, allocations: 4.406 MB / 0.8924 GB, free: 122.3 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007579/2.952, allocations: 2.868 MB / 0.8952 GB, free: 120 MB / 475.1 MB Notification: Performance of SimCode: time 3.536e-06/2.952, allocations: 0 / 0.8952 GB, free: 120 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.614/9.565, allocations: 385.7 MB / 1.272 GB, free: 64.14 MB / 475.1 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