Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo", uses=false) 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/Complex 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/Physiolibrary 3.0.0/package.mo", uses=false) Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) Running command: "" <> buildModelFMU(Physiolibrary.Thermal.Examples.ThermalBody_QHP,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_ThermalBody_QHP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Thermal.Examples.ThermalBody_QHP,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_ThermalBody_QHP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.07633/0.07633, allocations: 15.29 MB / 30.79 MB, free: 4.078 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008883/0.0008884, allocations: 104 kB / 35.78 MB, free: 3.266 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009728/0.0009728, allocations: 193.1 kB / 40.88 MB, free: 7.207 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.166/1.166, allocations: 222.9 MB / 268.7 MB, free: 6.906 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1097/0.1097, allocations: 23.35 MB / 346.4 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001786, allocations: 119.8 kB / 418.3 MB, free: 30.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07394/0.07573, allocations: 59.36 MB / 477.7 MB, free: 2.895 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Thermal.mo:312:7-312:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Thermal.mo:312:7-312:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Physiolibrary.Thermal.Examples.ThermalBody_QHP): time 0.02722/0.103, allocations: 23.63 MB / 0.4896 GB, free: 11.4 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001243/0.1042, allocations: 0.7789 MB / 0.4903 GB, free: 10.62 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001511/0.1044, allocations: 11.94 kB / 0.4903 GB, free: 10.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001791/0.1046, allocations: 79.2 kB / 0.4904 GB, free: 10.53 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002543/0.1048, allocations: 194.3 kB / 0.4906 GB, free: 10.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001743/0.105, allocations: 83.88 kB / 0.4907 GB, free: 10.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004157/0.1054, allocations: 0.552 MB / 0.4912 GB, free: 9.699 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002244/0.1057, allocations: 176.1 kB / 0.4914 GB, free: 9.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.1058, allocations: 179.3 kB / 0.4916 GB, free: 9.344 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002112/0.106, allocations: 199.1 kB / 0.4917 GB, free: 9.148 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.39e-05/0.1061, allocations: 32 kB / 0.4918 GB, free: 9.117 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.802e-05/0.1062, allocations: 36 kB / 0.4918 GB, free: 9.082 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.592e-05/0.1062, allocations: 75.69 kB / 0.4919 GB, free: 9.008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001814/0.1064, allocations: 234.9 kB / 0.4921 GB, free: 8.777 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003426/0.1068, allocations: 466.3 kB / 0.4925 GB, free: 8.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1068, allocations: 0 / 0.4925 GB, free: 8.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 6.82e-07/0.1068, allocations: 0 / 0.4925 GB, free: 8.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.1068, allocations: 0 / 0.4925 GB, free: 8.32 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0009074/0.1077, allocations: 0.7307 MB / 0.4933 GB, free: 7.543 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.918e-05/0.1077, allocations: 12.03 kB / 0.4933 GB, free: 7.531 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.329e-05/0.1078, allocations: 62.72 kB / 0.4933 GB, free: 7.461 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.876e-05/0.1079, allocations: 48.38 kB / 0.4934 GB, free: 7.414 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/0.1082, allocations: 327.8 kB / 0.4937 GB, free: 7.055 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.1082, allocations: 20.94 kB / 0.4937 GB, free: 7.035 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.051e-05/0.1083, allocations: 32.38 kB / 0.4937 GB, free: 7.004 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003749/0.1087, allocations: 256.9 kB / 0.494 GB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.1087, allocations: 0 / 0.494 GB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.328e-05/0.1087, allocations: 12 kB / 0.494 GB, free: 6.734 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.1087, allocations: 8 kB / 0.494 GB, free: 6.727 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003044/0.109, allocations: 186.2 kB / 0.4942 GB, free: 6.543 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001465/0.1105, allocations: 1.555 MB / 0.4957 GB, free: 4.777 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003426/0.1108, allocations: 219.1 kB / 0.4959 GB, free: 4.555 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001896/0.111, allocations: 149.3 kB / 0.4961 GB, free: 4.406 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.1111, allocations: 8.219 kB / 0.4961 GB, free: 4.398 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.1111, allocations: 30.8 kB / 0.4961 GB, free: 4.359 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.293e-06/0.1111, allocations: 0 / 0.4961 GB, free: 4.359 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005093/0.1116, allocations: 315.7 kB / 0.4964 GB, free: 4.047 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.766e-05/0.1117, allocations: 59.34 kB / 0.4964 GB, free: 3.977 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002682/0.1119, allocations: 321.7 kB / 0.4968 GB, free: 3.652 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.112, allocations: 41.64 kB / 0.4968 GB, free: 3.605 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.1121, allocations: 192.7 kB / 0.497 GB, free: 3.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.385e-05/0.1121, allocations: 94.56 kB / 0.4971 GB, free: 3.316 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.02e-05/0.1122, allocations: 45.7 kB / 0.4971 GB, free: 3.266 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1123, allocations: 350.7 kB / 0.4974 GB, free: 2.914 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.1124, allocations: 63.98 kB / 0.4975 GB, free: 2.852 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001095/0.1126, allocations: 71.97 kB / 0.4976 GB, free: 2.781 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009988/0.1136, allocations: 400.9 kB / 0.498 GB, free: 2.387 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1136, allocations: 4 kB / 0.498 GB, free: 2.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003499/0.1139, allocations: 257.1 kB / 0.4982 GB, free: 2.125 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.1139, allocations: 7.984 kB / 0.4982 GB, free: 2.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.496e-06/0.114, allocations: 0 / 0.4982 GB, free: 2.117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.197e-06/0.114, allocations: 0 / 0.4982 GB, free: 2.117 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002309/0.1142, allocations: 43.98 kB / 0.4983 GB, free: 2.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.1142, allocations: 7.938 kB / 0.4983 GB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001332/0.1144, allocations: 23.69 kB / 0.4983 GB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.1144, allocations: 8 kB / 0.4983 GB, free: 2.035 MB / 366.1 MB Warning: Assuming fixed start value for the following 4 variables: core.relativeHeat:VARIABLE(flow=false start = core.relativeHeat_start unit = "J" fixed = true nominal = 4186800.0 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real GILumen.relativeHeat:VARIABLE(flow=false start = GILumen.relativeHeat_start unit = "J" fixed = true nominal = 4186800.0 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real skeletalMuscle.relativeHeat:VARIABLE(flow=false start = skeletalMuscle.relativeHeat_start unit = "J" fixed = true nominal = 4186800.0 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real skin.relativeHeat:VARIABLE(flow=false start = skin.relativeHeat_start unit = "J" fixed = true nominal = 4186800.0 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000176/0.1146, allocations: 163.8 kB / 0.4985 GB, free: 1.867 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.221e-05/0.1146, allocations: 35.53 kB / 0.4985 GB, free: 1.832 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.277e-05/0.1147, allocations: 52.14 kB / 0.4985 GB, free: 1.781 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.1147, allocations: 0 / 0.4985 GB, free: 1.781 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.1147, allocations: 0 / 0.4985 GB, free: 1.781 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.423e-06/0.1147, allocations: 4 kB / 0.4985 GB, free: 1.777 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003864/0.1151, allocations: 417.2 kB / 0.4989 GB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1151, allocations: 3.938 kB / 0.4989 GB, free: 1.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002439/0.1154, allocations: 43.97 kB / 0.499 GB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1154, allocations: 0 / 0.499 GB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.1154, allocations: 8 kB / 0.499 GB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1154, allocations: 0 / 0.499 GB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1154, allocations: 0 / 0.499 GB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005423/0.116, allocations: 476 kB / 0.4994 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.1161, allocations: 140.6 kB / 0.4996 GB, free: 0.6289 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.471e-05/0.1161, allocations: 4 kB / 0.4996 GB, free: 0.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001548/0.1163, allocations: 8 kB / 0.4996 GB, free: 0.6172 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.408e-05/0.1163, allocations: 15.97 kB / 0.4996 GB, free: 0.6016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.1164, allocations: 12 kB / 0.4996 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001795/0.1165, allocations: 227.2 kB / 0.4998 GB, free: 376 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1166, allocations: 0 / 0.4998 GB, free: 376 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002832/0.1168, allocations: 99.78 kB / 0.4999 GB, free: 276 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (core.relativeHeat,GILumen.relativeHeat,skeletalMuscle.relativeHeat,skin.relativeHeat) * 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 (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007468/0.1176, allocations: 1.009 MB / 0.5009 GB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003576/0.118, allocations: 220 kB / 0.5011 GB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.118, allocations: 0 / 0.5011 GB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001391/0.1181, allocations: 103.9 kB / 0.5012 GB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005092/0.1186, allocations: 97.47 kB / 0.5013 GB, free: 14.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00311/0.1217, allocations: 3.187 MB / 0.5044 GB, free: 11.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.1221, allocations: 0.7989 MB / 0.5052 GB, free: 10.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001246/0.1222, allocations: 34.97 kB / 0.5052 GB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/0.1223, allocations: 115.4 kB / 0.5053 GB, free: 10.59 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1223, allocations: 0 / 0.5053 GB, free: 10.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02241/0.1447, allocations: 7.353 MB / 0.5125 GB, free: 3.301 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.327/6.472, allocations: 11.8 kB / 0.5125 GB, free: 3.293 MB / 382.1 MB (rm -f Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe ; mkfifo Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe >> ../files/Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Thermal_Examples_ThermalBody_QHP_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Thermal_Examples_ThermalBody_QHP.fmu > Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe 2>&1)