Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Thermal.Network.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.Thermal.Network,fileNamePrefix="HanserModelica_HanserModelica_Thermal_Network",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Thermal.Network,fileNamePrefix="HanserModelica_HanserModelica_Thermal_Network",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005191/0.005191, allocations: 102 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 222.9 MB / 239.4 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 188.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04023/0.04023, allocations: 8.788 MB / 348.6 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 83.86 kB / 463.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1189, allocations: 51.55 MB / 0.5029 GB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Network): time 0.003145/0.1221, allocations: 1.732 MB / 0.5046 GB, free: 8.395 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000387/0.1225, allocations: 95.67 kB / 0.5047 GB, free: 8.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.281e-05/0.1226, allocations: 4 kB / 0.5047 GB, free: 8.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.8e-05/0.1227, allocations: 15.86 kB / 0.5047 GB, free: 8.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001083/0.1228, allocations: 35.64 kB / 0.5047 GB, free: 8.246 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001668/0.123, allocations: 23.97 kB / 0.5047 GB, free: 8.223 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001692/0.1232, allocations: 111.4 kB / 0.5048 GB, free: 8.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001954/0.1234, allocations: 55.94 kB / 0.5049 GB, free: 8.059 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.063e-05/0.1234, allocations: 35.86 kB / 0.5049 GB, free: 8.023 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/0.1236, allocations: 43.84 kB / 0.505 GB, free: 7.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.518e-05/0.1236, allocations: 8 kB / 0.505 GB, free: 7.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.463e-05/0.1236, allocations: 16 kB / 0.505 GB, free: 7.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.902e-05/0.1237, allocations: 15.94 kB / 0.505 GB, free: 7.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.037e-05/0.1237, allocations: 55.73 kB / 0.5051 GB, free: 7.887 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001647/0.1239, allocations: 111.9 kB / 0.5052 GB, free: 7.777 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.1239, allocations: 0 / 0.5052 GB, free: 7.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.1239, allocations: 0 / 0.5052 GB, free: 7.777 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.1239, allocations: 0 / 0.5052 GB, free: 7.777 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0005662/0.1245, allocations: 399.2 kB / 0.5056 GB, free: 7.336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.1246, allocations: 12.03 kB / 0.5056 GB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.592e-05/0.1246, allocations: 38.75 kB / 0.5056 GB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.1247, allocations: 12.84 kB / 0.5056 GB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001575/0.1248, allocations: 180.2 kB / 0.5058 GB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.1249, allocations: 4.375 kB / 0.5058 GB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.537e-05/0.1249, allocations: 12.38 kB / 0.5058 GB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.1251, allocations: 90.22 kB / 0.5059 GB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.1251, allocations: 7.938 kB / 0.5059 GB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.1251, allocations: 7.938 kB / 0.5059 GB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.1252, allocations: 0 / 0.5059 GB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001289/0.1253, allocations: 63.91 kB / 0.506 GB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007772/0.1261, allocations: 497.4 kB / 0.5064 GB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002427/0.1263, allocations: 86.55 kB / 0.5065 GB, free: 6.215 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8e-05/0.1264, allocations: 44.77 kB / 0.5066 GB, free: 6.168 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.1265, allocations: 0 / 0.5066 GB, free: 6.168 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.1265, allocations: 46.66 kB / 0.5066 GB, free: 6.113 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.1265, allocations: 0 / 0.5066 GB, free: 6.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005934/0.1271, allocations: 223.4 kB / 0.5068 GB, free: 5.867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.1272, allocations: 51.41 kB / 0.5069 GB, free: 5.805 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.64e-05/0.1273, allocations: 121.8 kB / 0.507 GB, free: 5.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.1273, allocations: 29.7 kB / 0.507 GB, free: 5.641 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.863e-05/0.1274, allocations: 103.9 kB / 0.5071 GB, free: 5.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.801e-05/0.1274, allocations: 27.56 kB / 0.5071 GB, free: 5.508 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.299e-05/0.1274, allocations: 25.7 kB / 0.5072 GB, free: 5.477 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1276, allocations: 314.8 kB / 0.5075 GB, free: 5.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.961e-05/0.1276, allocations: 19.98 kB / 0.5075 GB, free: 5.141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.286e-05/0.1277, allocations: 37.7 kB / 0.5075 GB, free: 5.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.875e-05/0.1278, allocations: 57.66 kB / 0.5076 GB, free: 5.035 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.1278, allocations: 3.938 kB / 0.5076 GB, free: 5.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002326/0.128, allocations: 118.9 kB / 0.5077 GB, free: 4.906 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.1281, allocations: 4 kB / 0.5077 GB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1281, allocations: 0 / 0.5077 GB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001942/0.1283, allocations: 32.88 kB / 0.5077 GB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.985e-05/0.1284, allocations: 19.92 kB / 0.5077 GB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/0.1297, allocations: 1.407 MB / 0.5091 GB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.54e-05/0.1297, allocations: 4 kB / 0.5091 GB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.814e-06/0.1298, allocations: 7.969 kB / 0.5091 GB, free: 3.281 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001079/0.1299, allocations: 129.6 kB / 0.5093 GB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.175e-05/0.1299, allocations: 11.84 kB / 0.5093 GB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.87e-05/0.1299, allocations: 12.52 kB / 0.5093 GB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.13, allocations: 7.984 kB / 0.5093 GB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.13, allocations: 4.062 kB / 0.5093 GB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.13, allocations: 0 / 0.5093 GB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002316/0.1302, allocations: 197.6 kB / 0.5095 GB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.1302, allocations: 0 / 0.5095 GB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.692e-05/0.1303, allocations: 19.88 kB / 0.5095 GB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001158/0.1304, allocations: 24.84 kB / 0.5095 GB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.1305, allocations: 4 kB / 0.5095 GB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.1317, allocations: 1.418 MB / 0.5109 GB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1317, allocations: 0 / 0.5109 GB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002906/0.132, allocations: 232.2 kB / 0.5111 GB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.464e-05/0.132, allocations: 81.14 kB / 0.5112 GB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.15e-05/0.1321, allocations: 3.938 kB / 0.5112 GB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.202e-05/0.1321, allocations: 0 / 0.5112 GB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.09e-05/0.1322, allocations: 11.98 kB / 0.5112 GB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-06/0.1322, allocations: 0 / 0.5112 GB, free: 0.8984 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.223e-05/0.1322, allocations: 91.27 kB / 0.5113 GB, free: 0.8086 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1322, allocations: 8.062 kB / 0.5113 GB, free: 0.8008 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002778/0.1325, allocations: 35.84 kB / 0.5114 GB, free: 0.7656 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (heatCapacitor.T) * 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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005936/0.1331, allocations: 0.7527 MB / 0.5121 GB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003073/0.1334, allocations: 175.1 kB / 0.5123 GB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1335, allocations: 0 / 0.5123 GB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001468/0.1336, allocations: 138.7 kB / 0.5124 GB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.134, allocations: 24.06 kB / 0.5124 GB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001787/0.1358, allocations: 1.577 MB / 0.514 GB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.1361, allocations: 0.6963 MB / 0.5146 GB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.97e-05/0.1361, allocations: 8.656 kB / 0.5146 GB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.229e-05/0.1362, allocations: 27.42 kB / 0.5147 GB, free: 13.2 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1362, allocations: 0 / 0.5147 GB, free: 13.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/0.1607, allocations: 2.44 MB / 0.517 GB, free: 10.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.281/9.442, allocations: 8.031 kB / 0.5171 GB, free: 10.84 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Thermal.Network.pipe ; mkfifo HanserModelica_HanserModelica.Thermal.Network.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Thermal.Network.pipe >> ../files/HanserModelica_HanserModelica.Thermal.Network.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Thermal_Network_fmu --startTime=0 --stopTime=400 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Thermal_Network.fmu > HanserModelica_HanserModelica.Thermal.Network.pipe 2>&1)