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.114/0.114, allocations: 15.28 MB / 30.51 MB, free: 4.355 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.001155/0.001155, allocations: 101.8 kB / 35.48 MB, free: 3.398 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.001421/0.001421, allocations: 200.5 kB / 40.58 MB, free: 7.465 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.497/1.497, allocations: 222.9 MB / 268.4 MB, free: 7.578 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1743/0.1743, allocations: 23.36 MB / 346.1 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002298/0.002299, allocations: 103.8 kB / 417.8 MB, free: 30.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.1546, allocations: 59.36 MB / 477.1 MB, free: 3.281 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.03619/0.1909, allocations: 22.64 MB / 499.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001901/0.1928, allocations: 0.8062 MB / 0.4888 GB, free: 11.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000487/0.1934, allocations: 11.94 kB / 0.4888 GB, free: 11.95 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003656/0.1937, allocations: 71.39 kB / 0.4889 GB, free: 11.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005238/0.1943, allocations: 162.6 kB / 0.4891 GB, free: 11.71 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002616/0.1945, allocations: 75.92 kB / 0.4891 GB, free: 11.64 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000585/0.1951, allocations: 0.5559 MB / 0.4897 GB, free: 11.08 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002818/0.1954, allocations: 172.1 kB / 0.4898 GB, free: 10.9 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.1956, allocations: 187.3 kB / 0.49 GB, free: 10.72 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002306/0.1959, allocations: 203.1 kB / 0.4902 GB, free: 10.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.786e-05/0.1959, allocations: 32 kB / 0.4902 GB, free: 10.49 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.033e-05/0.196, allocations: 32 kB / 0.4903 GB, free: 10.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.315e-05/0.1961, allocations: 79.69 kB / 0.4904 GB, free: 10.38 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.1963, allocations: 230.9 kB / 0.4906 GB, free: 10.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004074/0.1967, allocations: 458.5 kB / 0.491 GB, free: 9.703 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1967, allocations: 0 / 0.491 GB, free: 9.703 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.128e-06/0.1967, allocations: 0 / 0.491 GB, free: 9.703 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.1967, allocations: 3.938 kB / 0.491 GB, free: 9.699 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.001033/0.1977, allocations: 0.738 MB / 0.4917 GB, free: 8.914 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.1978, allocations: 8.031 kB / 0.4917 GB, free: 8.906 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.765e-05/0.1979, allocations: 62.72 kB / 0.4918 GB, free: 8.836 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.669e-05/0.198, allocations: 48.38 kB / 0.4918 GB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003721/0.1983, allocations: 331.8 kB / 0.4922 GB, free: 8.422 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.543e-05/0.1984, allocations: 20.94 kB / 0.4922 GB, free: 8.402 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.075e-05/0.1984, allocations: 24.38 kB / 0.4922 GB, free: 8.379 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004348/0.1989, allocations: 253 kB / 0.4924 GB, free: 8.129 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.1989, allocations: 4 kB / 0.4925 GB, free: 8.125 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.443e-05/0.1989, allocations: 11.94 kB / 0.4925 GB, free: 8.113 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.199, allocations: 12 kB / 0.4925 GB, free: 8.102 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003439/0.1993, allocations: 194.1 kB / 0.4927 GB, free: 7.91 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.001659/0.201, allocations: 1.547 MB / 0.4942 GB, free: 6.156 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003688/0.2013, allocations: 219.2 kB / 0.4944 GB, free: 5.934 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002167/0.2016, allocations: 153.2 kB / 0.4945 GB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.2016, allocations: 4.234 kB / 0.4945 GB, free: 5.777 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.71e-05/0.2016, allocations: 34.8 kB / 0.4946 GB, free: 5.734 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 3.226e-06/0.2016, allocations: 4 kB / 0.4946 GB, free: 5.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005837/0.2022, allocations: 315.7 kB / 0.4949 GB, free: 5.418 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.712e-05/0.2023, allocations: 55.39 kB / 0.4949 GB, free: 5.352 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000301/0.2026, allocations: 321.7 kB / 0.4952 GB, free: 5.031 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.2026, allocations: 29.7 kB / 0.4953 GB, free: 4.996 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.2028, allocations: 192.7 kB / 0.4954 GB, free: 4.801 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.829e-05/0.2029, allocations: 94.56 kB / 0.4955 GB, free: 4.707 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.947e-05/0.2029, allocations: 45.7 kB / 0.4956 GB, free: 4.656 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.2031, allocations: 358.7 kB / 0.4959 GB, free: 4.297 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.2033, allocations: 71.91 kB / 0.496 GB, free: 4.227 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.2034, allocations: 67.97 kB / 0.496 GB, free: 4.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.2045, allocations: 393.8 kB / 0.4964 GB, free: 3.773 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2045, allocations: 0 / 0.4964 GB, free: 3.773 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003974/0.2049, allocations: 261.4 kB / 0.4967 GB, free: 3.512 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.2049, allocations: 4 kB / 0.4967 GB, free: 3.508 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.2049, allocations: 0 / 0.4967 GB, free: 3.508 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.205, allocations: 4 kB / 0.4967 GB, free: 3.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000265/0.2052, allocations: 55.91 kB / 0.4967 GB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.2053, allocations: 4 kB / 0.4967 GB, free: 3.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.2055, allocations: 27.69 kB / 0.4968 GB, free: 3.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/0.2055, allocations: 8 kB / 0.4968 GB, free: 3.41 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.0002616/0.2058, allocations: 163.7 kB / 0.4969 GB, free: 3.242 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.287e-05/0.2058, allocations: 39.53 kB / 0.497 GB, free: 3.203 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.657e-05/0.2059, allocations: 52.14 kB / 0.497 GB, free: 3.152 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.2059, allocations: 4 kB / 0.497 GB, free: 3.148 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.2059, allocations: 0 / 0.497 GB, free: 3.148 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.206, allocations: 0 / 0.497 GB, free: 3.148 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004993/0.2065, allocations: 405.2 kB / 0.4974 GB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2065, allocations: 0 / 0.4974 GB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002816/0.2068, allocations: 51.84 kB / 0.4975 GB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.2068, allocations: 4 kB / 0.4975 GB, free: 2.648 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/0.2068, allocations: 8 kB / 0.4975 GB, free: 2.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.2068, allocations: 4 kB / 0.4975 GB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2068, allocations: 0 / 0.4975 GB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006726/0.2075, allocations: 474.9 kB / 0.4979 GB, free: 2.156 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001459/0.2077, allocations: 136.6 kB / 0.4981 GB, free: 2.004 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.587e-05/0.2077, allocations: 8 kB / 0.4981 GB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001866/0.2079, allocations: 8 kB / 0.4981 GB, free: 1.988 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.341e-05/0.208, allocations: 27.89 kB / 0.4981 GB, free: 1.961 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.208, allocations: 8 kB / 0.4981 GB, free: 1.953 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002104/0.2082, allocations: 227.2 kB / 0.4983 GB, free: 1.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2082, allocations: 0 / 0.4983 GB, free: 1.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003529/0.2086, allocations: 91.84 kB / 0.4984 GB, free: 1.641 MB / 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.0009218/0.2095, allocations: 1.005 MB / 0.4994 GB, free: 0.6055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004372/0.2099, allocations: 215.8 kB / 0.4996 GB, free: 404 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.21, allocations: 0 / 0.4996 GB, free: 404 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001517/0.2101, allocations: 108.4 kB / 0.4997 GB, free: 296 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006316/0.2108, allocations: 109.5 kB / 0.4998 GB, free: 188 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003836/0.2146, allocations: 3.308 MB / 0.503 GB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/0.2149, allocations: 0.7989 MB / 0.5038 GB, free: 11.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001928/0.2151, allocations: 26.97 kB / 0.5038 GB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001724/0.2153, allocations: 119.4 kB / 0.504 GB, free: 11.83 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2153, allocations: 4 kB / 0.504 GB, free: 11.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02518/0.2405, allocations: 7.252 MB / 0.511 GB, free: 4.695 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001916/0.2408, allocations: 200.3 kB / 0.5112 GB, free: 4.434 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.034/2.275, allocations: 0 / 0.5112 GB, free: 4.434 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)