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.001521/0.001525, allocations: 180.6 kB / 13.66 MB, free: 1.664 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.024/2.024, allocations: 205.2 MB / 219.4 MB, free: 14.23 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.001087/0.001087, allocations: 90.69 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.021e-05/4.04e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09895/0.09903, allocations: 47.57 MB / 369.2 MB, free: 2.129 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5162/0.6153, allocations: 100.3 MB / 469.5 MB, free: 8.816 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/0.6157, allocations: 80.77 kB / 469.6 MB, free: 8.777 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8293/1.445, allocations: 119.3 MB / 0.5751 GB, free: 91.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.439e-06/1.445, allocations: 0 / 0.5751 GB, free: 91.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004548/1.446, allocations: 124.5 kB / 0.5752 GB, free: 91.09 MB / 410.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.06467/1.51, allocations: 6.742 MB / 0.5818 GB, free: 88.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.357e-05/1.51, allocations: 10.59 kB / 0.5818 GB, free: 88.75 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007315/1.518, allocations: 1.098 MB / 0.5829 GB, free: 88.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04024/1.558, allocations: 3.476 MB / 0.5863 GB, free: 88.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04115/1.599, allocations: 7.735 MB / 0.5938 GB, free: 86.18 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001004/1.6, allocations: 461.1 kB / 0.5943 GB, free: 86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004829/1.605, allocations: 0.6033 MB / 0.5949 GB, free: 85.83 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08556/1.691, allocations: 17.5 MB / 0.6119 GB, free: 68.2 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006705/1.692, allocations: 75.27 kB / 0.612 GB, free: 68.12 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004368/1.696, allocations: 296.6 kB / 0.6123 GB, free: 67.88 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006358/1.702, allocations: 1.633 MB / 0.6139 GB, free: 66.24 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07579/1.778, allocations: 14.98 MB / 0.6285 GB, free: 51.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5349/2.313, allocations: 67.56 MB / 0.6945 GB, free: 87.81 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03952/2.353, allocations: 6.966 MB / 0.7013 GB, free: 86.52 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008089/2.361, allocations: 3.122 MB / 0.7044 GB, free: 86.47 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04007/2.401, allocations: 14.56 MB / 0.7186 GB, free: 82.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.666e-05/2.401, allocations: 69.27 kB / 0.7186 GB, free: 82.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=289): time 6.983e-06/2.401, allocations: 0 / 0.7186 GB, free: 82.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=321): time 0.1004/2.502, allocations: 21.26 MB / 0.7394 GB, free: 78.01 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003514/2.505, allocations: 4.586 MB / 0.7439 GB, free: 73.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009633/2.515, allocations: 4.472 MB / 0.7483 GB, free: 71.95 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009457/2.516, allocations: 80 kB / 0.7483 GB, free: 71.88 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003394/2.519, allocations: 4.053 MB / 0.7523 GB, free: 68.67 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002133/2.522, allocations: 1.249 MB / 0.7535 GB, free: 67.76 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001046/2.523, allocations: 175.9 kB / 0.7537 GB, free: 67.62 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006125/2.523, allocations: 0.688 MB / 0.7543 GB, free: 67.14 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008686/2.532, allocations: 3.413 MB / 0.7577 GB, free: 66.04 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01243/2.544, allocations: 8.345 MB / 0.7658 GB, free: 58.36 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01273/2.557, allocations: 5.207 MB / 0.7709 GB, free: 56.89 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002217/2.557, allocations: 53.84 kB / 0.771 GB, free: 56.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=1158) (initialization): time 0.04612/2.604, allocations: 13.68 MB / 0.7843 GB, free: 50.07 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00015/2.604, allocations: 80 kB / 0.7844 GB, free: 50 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0268/2.631, allocations: 6.699 MB / 0.7909 GB, free: 44.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01669/2.647, allocations: 2.871 MB / 0.7937 GB, free: 42.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01319/2.661, allocations: 2.083 MB / 0.7958 GB, free: 40.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01809/2.679, allocations: 12.63 MB / 0.8081 GB, free: 28.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01365/2.692, allocations: 0.8254 MB / 0.8089 GB, free: 28.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002462/2.695, allocations: 0.5111 MB / 0.8094 GB, free: 27.66 MB / 426.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.003386/2.698, allocations: 0.7747 MB / 0.8102 GB, free: 26.89 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001494/2.7, allocations: 489.7 kB / 0.8106 GB, free: 26.41 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02563/2.726, allocations: 7.225 MB / 0.8177 GB, free: 20.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02283/2.748, allocations: 6.433 MB / 0.824 GB, free: 13.63 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.691e-05/2.749, allocations: 4 kB / 0.824 GB, free: 13.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.925e-05/2.749, allocations: 19.94 kB / 0.824 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05848/2.807, allocations: 17.02 MB / 0.8406 GB, free: 12.44 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.403e-05/2.807, allocations: 8.844 kB / 0.8406 GB, free: 12.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005946/2.813, allocations: 0.5811 MB / 0.8412 GB, free: 11.85 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01734/2.831, allocations: 2.881 MB / 0.844 GB, free: 8.93 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001166/2.832, allocations: 95.92 kB / 0.8441 GB, free: 8.836 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3491/3.181, allocations: 13.69 MB / 0.8575 GB, free: 96.71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00392/3.185, allocations: 4.437 MB / 0.8618 GB, free: 92.66 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0385/3.223, allocations: 12.11 MB / 0.8736 GB, free: 90.65 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002286/3.226, allocations: 0.5373 MB / 0.8742 GB, free: 90.55 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002599/3.228, allocations: 84.48 kB / 0.8742 GB, free: 90.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007298/3.236, allocations: 370.1 kB / 0.8746 GB, free: 90.55 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001534/3.237, allocations: 239.9 kB / 0.8748 GB, free: 90.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004975/3.238, allocations: 100 kB / 0.8749 GB, free: 90.54 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008703/3.247, allocations: 3.067 MB / 0.8779 GB, free: 90.34 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.312e-06/3.247, allocations: 0 / 0.8779 GB, free: 90.34 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01217/3.259, allocations: 1.739 MB / 0.8796 GB, free: 90.34 MB / 442.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.03677/3.296, allocations: 14.31 MB / 0.8936 GB, free: 86.18 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02988/3.326, allocations: 10.18 MB / 0.9035 GB, free: 82.51 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.649e-05/3.326, allocations: 4 kB / 0.9035 GB, free: 82.51 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01743/3.343, allocations: 5.046 MB / 0.9084 GB, free: 80.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005922/3.349, allocations: 0.5826 MB / 0.909 GB, free: 79.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05102/3.4, allocations: 15.9 MB / 0.9245 GB, free: 73.71 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01035/3.411, allocations: 4.422 MB / 0.9289 GB, free: 72.24 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007445/3.418, allocations: 2.884 MB / 0.9317 GB, free: 69.95 MB / 442.7 MB Notification: Performance of SimCode: time 2.084e-06/3.418, allocations: 0 / 0.9317 GB, free: 69.95 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.927/10.34, allocations: 390.1 MB / 1.313 GB, free: 44.11 MB / 474.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