Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatTransferOnBloodFlow.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.SkinHeatTransferOnBloodFlow,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_SkinHeatTransferOnBloodFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Thermal.Examples.SkinHeatTransferOnBloodFlow,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_SkinHeatTransferOnBloodFlow",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.1058/0.1058, allocations: 15.28 MB / 30.78 MB, free: 4.082 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.001042/0.001043, allocations: 107.7 kB / 35.77 MB, free: 3.281 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.00132/0.00132, allocations: 189.1 kB / 40.88 MB, free: 7.199 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.385/1.385, allocations: 222.9 MB / 268.7 MB, free: 6.863 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1292/0.1292, allocations: 23.36 MB / 346.4 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002065/0.002065, allocations: 115.8 kB / 418.3 MB, free: 30.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08878/0.09087, allocations: 59.36 MB / 477.7 MB, free: 2.914 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.SkinHeatTransferOnBloodFlow): time 0.02947/0.1204, allocations: 21.67 MB / 499.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008126/0.1212, allocations: 438.8 kB / 499.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.1213, allocations: 0 / 499.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001139/0.1214, allocations: 23.78 kB / 499.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.918e-05/0.1215, allocations: 39.64 kB / 499.8 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.023e-05/0.1216, allocations: 15.98 kB / 499.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001474/0.1218, allocations: 107.3 kB / 500 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.852e-05/0.1219, allocations: 25.11 kB / 500 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.193e-05/0.1219, allocations: 35.84 kB / 0.4883 GB, free: 12.71 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.735e-05/0.122, allocations: 35.75 kB / 0.4883 GB, free: 12.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.689e-05/0.122, allocations: 4 kB / 0.4883 GB, free: 12.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.703e-05/0.122, allocations: 4 kB / 0.4883 GB, free: 12.67 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.172e-05/0.1221, allocations: 23.92 kB / 0.4884 GB, free: 12.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.125e-05/0.1221, allocations: 43.69 kB / 0.4884 GB, free: 12.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001229/0.1222, allocations: 91.66 kB / 0.4885 GB, free: 12.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1223, allocations: 0 / 0.4885 GB, free: 12.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1223, allocations: 0 / 0.4885 GB, free: 12.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.1223, allocations: 0 / 0.4885 GB, free: 12.52 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004186/0.1227, allocations: 406.7 kB / 0.4889 GB, free: 12.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.1227, allocations: 12.03 kB / 0.4889 GB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.198e-05/0.1228, allocations: 38.73 kB / 0.4889 GB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.132e-05/0.1228, allocations: 16.84 kB / 0.4889 GB, free: 12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002091/0.123, allocations: 208 kB / 0.4891 GB, free: 11.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.014e-06/0.1231, allocations: 8.312 kB / 0.4891 GB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.1231, allocations: 4.375 kB / 0.4892 GB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.1232, allocations: 69.73 kB / 0.4892 GB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.1232, allocations: 0 / 0.4892 GB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.1232, allocations: 0 / 0.4892 GB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.1232, allocations: 3.984 kB / 0.4892 GB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.932e-05/0.1233, allocations: 23.94 kB / 0.4892 GB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000449/0.1237, allocations: 491 kB / 0.4897 GB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.564e-05/0.1238, allocations: 177.1 kB / 0.4899 GB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.948e-05/0.1238, allocations: 80.14 kB / 0.49 GB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.1239, allocations: 79.28 kB / 0.49 GB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/0.1239, allocations: 109.8 kB / 0.4901 GB, free: 10.65 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 1.012e-06/0.1239, allocations: 3.938 kB / 0.4901 GB, free: 10.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.066e-05/0.124, allocations: 37.55 kB / 0.4902 GB, free: 10.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/0.124, allocations: 126.7 kB / 0.4903 GB, free: 10.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.1242, allocations: 183.7 kB / 0.4905 GB, free: 10.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.898e-06/0.1242, allocations: 25.7 kB / 0.4905 GB, free: 10.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.674e-05/0.1243, allocations: 116 kB / 0.4906 GB, free: 10.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.585e-06/0.1243, allocations: 0 / 0.4906 GB, free: 10.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.938e-05/0.1244, allocations: 13.72 kB / 0.4906 GB, free: 10.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.411e-05/0.1245, allocations: 322.8 kB / 0.4909 GB, free: 9.781 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.012e-05/0.1245, allocations: 0 / 0.4909 GB, free: 9.781 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.066e-06/0.1245, allocations: 4 kB / 0.4909 GB, free: 9.777 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.44e-05/0.1245, allocations: 12.8 kB / 0.4909 GB, free: 9.762 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.1245, allocations: 4.062 kB / 0.4909 GB, free: 9.758 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001003/0.1246, allocations: 45.59 kB / 0.491 GB, free: 9.707 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.1247, allocations: 4 kB / 0.491 GB, free: 9.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.1247, allocations: 0 / 0.491 GB, free: 9.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.1247, allocations: 3.938 kB / 0.491 GB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.214e-05/0.1247, allocations: 4 kB / 0.491 GB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.1247, allocations: 0 / 0.491 GB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.964e-05/0.1248, allocations: 3.906 kB / 0.491 GB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-06/0.1248, allocations: 0 / 0.491 GB, free: 9.691 MB / 366.1 MB 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 (1): * Single equations (assignments): 1 * 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 8.594e-05/0.1249, allocations: 193.2 kB / 0.4912 GB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.462e-05/0.125, allocations: 116.8 kB / 0.4913 GB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.86e-05/0.125, allocations: 117.5 kB / 0.4914 GB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-05/0.1251, allocations: 180.3 kB / 0.4916 GB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.136e-05/0.1251, allocations: 184.1 kB / 0.4918 GB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.428e-05/0.1252, allocations: 188.2 kB / 0.4919 GB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002305/0.1254, allocations: 441.1 kB / 0.4924 GB, free: 8.199 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.681e-05/0.1254, allocations: 101 kB / 0.4925 GB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.183e-05/0.1255, allocations: 105 kB / 0.4926 GB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.85e-05/0.1255, allocations: 184.1 kB / 0.4927 GB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.27e-05/0.1256, allocations: 176.3 kB / 0.4929 GB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.398e-05/0.1257, allocations: 192.1 kB / 0.4931 GB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.588e-05/0.1257, allocations: 188.3 kB / 0.4933 GB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000116/0.1258, allocations: 307.7 kB / 0.4936 GB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.897e-05/0.1259, allocations: 193.9 kB / 0.4937 GB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.285e-05/0.126, allocations: 188.2 kB / 0.4939 GB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.884e-05/0.1261, allocations: 104.9 kB / 0.494 GB, free: 6.391 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.009e-05/0.1262, allocations: 180.2 kB / 0.4942 GB, free: 6.207 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.949e-05/0.1262, allocations: 109 kB / 0.4943 GB, free: 6.094 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001032/0.1263, allocations: 133.2 kB / 0.4944 GB, free: 5.965 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1263, allocations: 0 / 0.4944 GB, free: 5.965 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002277/0.1265, allocations: 12 kB / 0.4944 GB, free: 5.953 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (0): * Single equations (assignments): 0 * 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.0003363/0.1269, allocations: 0.8125 MB / 0.4952 GB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 5.6e-05/0.127, allocations: 8 kB / 0.4952 GB, free: 5.102 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.127, allocations: 0 / 0.4952 GB, free: 5.102 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.633e-06/0.127, allocations: 0 / 0.4952 GB, free: 5.102 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005308/0.1275, allocations: 0.5035 MB / 0.4957 GB, free: 4.594 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.1288, allocations: 1.643 MB / 0.4973 GB, free: 2.867 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002302/0.1291, allocations: 0.6963 MB / 0.498 GB, free: 2.145 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.152e-05/0.1291, allocations: 20.64 kB / 0.498 GB, free: 2.125 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.773e-05/0.1292, allocations: 31.42 kB / 0.4981 GB, free: 2.094 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1292, allocations: 0 / 0.4981 GB, free: 2.094 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01931/0.1485, allocations: 2.989 MB / 0.501 GB, free: 15.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.38/7.528, allocations: 7.844 kB / 0.501 GB, free: 15.15 MB / 382.1 MB (rm -f Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatTransferOnBloodFlow.pipe ; mkfifo Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatTransferOnBloodFlow.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatTransferOnBloodFlow.pipe >> ../files/Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatTransferOnBloodFlow.sim & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatTransferOnBloodFlow_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4 Physiolibrary_Physiolibrary_Thermal_Examples_SkinHeatTransferOnBloodFlow.fmu > Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatTransferOnBloodFlow.pipe 2>&1)