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-master/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-master/package.mo) Running command: translateModel(Physiolibrary.Thermal.Examples.ThermalBody_QHP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP") translateModel(Physiolibrary.Thermal.Examples.ThermalBody_QHP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1135/0.1135, allocations: 15.27 MB / 30.51 MB, free: 4.344 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.001001/0.001, allocations: 108.3 kB / 35.48 MB, free: 3.395 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.00121/0.00121, allocations: 200.5 kB / 40.58 MB, free: 7.457 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.374/1.374, allocations: 222.9 MB / 268.4 MB, free: 7.656 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1326/0.1326, allocations: 23.35 MB / 346.1 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 111.8 kB / 417.7 MB, free: 30.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09931/0.1012, allocations: 59.36 MB / 477 MB, free: 3.363 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.02839/0.1296, allocations: 22.6 MB / 499.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001495/0.1311, allocations: 0.7946 MB / 0.4887 GB, free: 12.08 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000186/0.1313, allocations: 19.88 kB / 0.4887 GB, free: 12.06 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001931/0.1315, allocations: 59.53 kB / 0.4888 GB, free: 12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002701/0.1318, allocations: 174.5 kB / 0.4889 GB, free: 11.83 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002056/0.132, allocations: 75.81 kB / 0.489 GB, free: 11.76 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004681/0.1325, allocations: 0.5598 MB / 0.4895 GB, free: 11.2 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002331/0.1327, allocations: 168.2 kB / 0.4897 GB, free: 11.02 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001627/0.1329, allocations: 183.4 kB / 0.4899 GB, free: 10.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002154/0.1331, allocations: 203.1 kB / 0.4901 GB, free: 10.64 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.144e-05/0.1331, allocations: 35.94 kB / 0.4901 GB, free: 10.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.152e-05/0.1332, allocations: 40 kB / 0.4901 GB, free: 10.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.231e-05/0.1333, allocations: 71.7 kB / 0.4902 GB, free: 10.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001837/0.1335, allocations: 234.9 kB / 0.4904 GB, free: 10.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003684/0.1338, allocations: 454.4 kB / 0.4909 GB, free: 9.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1339, allocations: 0 / 0.4909 GB, free: 9.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1339, allocations: 0 / 0.4909 GB, free: 9.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.1339, allocations: 0 / 0.4909 GB, free: 9.82 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.0009419/0.1348, allocations: 0.7321 MB / 0.4916 GB, free: 9.039 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.1349, allocations: 15.97 kB / 0.4916 GB, free: 9.023 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.878e-05/0.1349, allocations: 48.38 kB / 0.4917 GB, free: 8.977 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003492/0.1353, allocations: 323.8 kB / 0.492 GB, free: 8.617 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.1353, allocations: 28.88 kB / 0.492 GB, free: 8.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.716e-05/0.1354, allocations: 32.38 kB / 0.492 GB, free: 8.559 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004124/0.1358, allocations: 249.2 kB / 0.4923 GB, free: 8.312 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.1358, allocations: 0 / 0.4923 GB, free: 8.312 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.672e-05/0.1359, allocations: 12 kB / 0.4923 GB, free: 8.301 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.1359, allocations: 4 kB / 0.4923 GB, free: 8.297 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003243/0.1362, allocations: 190.2 kB / 0.4925 GB, free: 8.109 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.001541/0.1378, allocations: 1.544 MB / 0.494 GB, free: 6.359 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003582/0.1381, allocations: 219.2 kB / 0.4942 GB, free: 6.137 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001986/0.1383, allocations: 152.8 kB / 0.4943 GB, free: 5.988 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.1384, allocations: 240 / 0.4943 GB, free: 5.988 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/0.1384, allocations: 38.8 kB / 0.4944 GB, free: 5.941 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.132e-06/0.1384, allocations: 0 / 0.4944 GB, free: 5.941 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005598/0.139, allocations: 315.7 kB / 0.4947 GB, free: 5.629 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.783e-05/0.139, allocations: 55.41 kB / 0.4947 GB, free: 5.562 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002837/0.1393, allocations: 325.7 kB / 0.495 GB, free: 5.238 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.047e-05/0.1393, allocations: 37.7 kB / 0.4951 GB, free: 5.195 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.1394, allocations: 184.7 kB / 0.4952 GB, free: 5.008 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.892e-05/0.1395, allocations: 106.6 kB / 0.4953 GB, free: 4.902 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.237e-05/0.1396, allocations: 41.7 kB / 0.4954 GB, free: 4.855 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.1397, allocations: 350.7 kB / 0.4957 GB, free: 4.504 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.1399, allocations: 71.97 kB / 0.4958 GB, free: 4.434 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001211/0.14, allocations: 71.97 kB / 0.4958 GB, free: 4.363 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.1411, allocations: 389.8 kB / 0.4962 GB, free: 3.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.1411, allocations: 7.938 kB / 0.4962 GB, free: 3.973 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003801/0.1415, allocations: 273.4 kB / 0.4965 GB, free: 3.699 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.1415, allocations: 10.5 kB / 0.4965 GB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.1415, allocations: 0 / 0.4965 GB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.1415, allocations: 0 / 0.4965 GB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002606/0.1418, allocations: 51.91 kB / 0.4965 GB, free: 3.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.1418, allocations: 4 kB / 0.4965 GB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.142, allocations: 27.73 kB / 0.4966 GB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.142, allocations: 12 kB / 0.4966 GB, free: 3.598 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.0002003/0.1422, allocations: 167.6 kB / 0.4967 GB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.785e-05/0.1423, allocations: 35.53 kB / 0.4968 GB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.664e-05/0.1424, allocations: 48.14 kB / 0.4968 GB, free: 3.344 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1424, allocations: 4 kB / 0.4968 GB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.1424, allocations: 4 kB / 0.4968 GB, free: 3.336 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.1424, allocations: 0 / 0.4968 GB, free: 3.336 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004259/0.1428, allocations: 405.1 kB / 0.4972 GB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1428, allocations: 4 kB / 0.4972 GB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002725/0.1431, allocations: 47.97 kB / 0.4973 GB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1431, allocations: 0 / 0.4973 GB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.052e-05/0.1432, allocations: 4 kB / 0.4973 GB, free: 2.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.1432, allocations: 7.938 kB / 0.4973 GB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1432, allocations: 0 / 0.4973 GB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005792/0.1438, allocations: 470.9 kB / 0.4977 GB, free: 2.352 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/0.1439, allocations: 128.7 kB / 0.4978 GB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.107e-05/0.1439, allocations: 7.984 kB / 0.4979 GB, free: 2.199 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/0.1441, allocations: 11.94 kB / 0.4979 GB, free: 2.188 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.048e-05/0.1442, allocations: 19.97 kB / 0.4979 GB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.528e-05/0.1442, allocations: 11.98 kB / 0.4979 GB, free: 2.156 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001969/0.1444, allocations: 227.2 kB / 0.4981 GB, free: 1.934 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1444, allocations: 7.938 kB / 0.4981 GB, free: 1.926 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00031/0.1447, allocations: 95.84 kB / 0.4982 GB, free: 1.832 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 9.774e-05/0.1448, allocations: 107.1 kB / 0.4983 GB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003947/0.1452, allocations: 215.8 kB / 0.4985 GB, free: 1.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1452, allocations: 0 / 0.4985 GB, free: 1.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.1454, allocations: 99.92 kB / 0.4986 GB, free: 1.406 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005813/0.146, allocations: 109.2 kB / 0.4987 GB, free: 1.305 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.1472, allocations: 0.9673 MB / 0.4997 GB, free: 316 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.1476, allocations: 0.7949 MB / 0.5004 GB, free: 15.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000153/0.1477, allocations: 38.95 kB / 0.5005 GB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.112e-05/0.1478, allocations: 23.44 kB / 0.5005 GB, free: 15.43 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1478, allocations: 0 / 0.5005 GB, free: 15.43 MB / 382.1 MB Notification: Performance of Templates: time 0.006699/0.1546, allocations: 3.801 MB / 0.5042 GB, free: 11.68 MB / 382.1 MB make -j1 -f Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.makefile (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 & ./Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe 2>&1)