Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatFlow.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.SkinHeatFlow,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_SkinHeatFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Thermal.Examples.SkinHeatFlow,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_SkinHeatFlow",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.08526/0.08526, allocations: 15.28 MB / 30.78 MB, free: 4.211 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.001038/0.001038, allocations: 107.1 kB / 35.78 MB, free: 3.234 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.001249/0.001249, allocations: 193.1 kB / 40.88 MB, free: 7.223 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.345/1.345, allocations: 222.9 MB / 268.7 MB, free: 6.922 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1285/0.1285, allocations: 23.35 MB / 346.4 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 107.8 kB / 418.3 MB, free: 30.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08382/0.08581, allocations: 59.37 MB / 477.7 MB, free: 2.926 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.SkinHeatFlow): time 0.02676/0.1126, allocations: 21.67 MB / 499.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007504/0.1134, allocations: 430.8 kB / 499.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.615e-05/0.1135, allocations: 4 kB / 499.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 9.042e-05/0.1136, allocations: 15.8 kB / 499.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.869e-05/0.1136, allocations: 39.62 kB / 499.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.535e-05/0.1137, allocations: 15.98 kB / 499.8 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001362/0.1138, allocations: 107.3 kB / 499.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.886e-05/0.1139, allocations: 33.08 kB / 500 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.367e-05/0.114, allocations: 35.81 kB / 0.4883 GB, free: 12.72 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.629e-05/0.1141, allocations: 39.8 kB / 0.4883 GB, free: 12.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.555e-05/0.1141, allocations: 4 kB / 0.4883 GB, free: 12.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.638e-05/0.1141, allocations: 4 kB / 0.4883 GB, free: 12.67 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.857e-05/0.1141, allocations: 19.86 kB / 0.4884 GB, free: 12.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.359e-05/0.1142, allocations: 47.69 kB / 0.4884 GB, free: 12.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001055/0.1143, allocations: 87.66 kB / 0.4885 GB, free: 12.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1143, allocations: 0 / 0.4885 GB, free: 12.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1143, allocations: 0 / 0.4885 GB, free: 12.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.523e-06/0.1143, 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.0003947/0.1147, allocations: 413.3 kB / 0.4889 GB, free: 12.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.1148, allocations: 12.03 kB / 0.4889 GB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.268e-05/0.1148, allocations: 34.75 kB / 0.4889 GB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.71e-05/0.1148, allocations: 12.84 kB / 0.4889 GB, free: 12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001876/0.115, allocations: 216 kB / 0.4891 GB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.695e-06/0.115, allocations: 384 / 0.4891 GB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.014e-05/0.1151, allocations: 4.375 kB / 0.4891 GB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001021/0.1152, allocations: 65.75 kB / 0.4892 GB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.1152, allocations: 0 / 0.4892 GB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.629e-06/0.1152, allocations: 3.984 kB / 0.4892 GB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1152, allocations: 4 kB / 0.4892 GB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.882e-05/0.1153, allocations: 23.94 kB / 0.4892 GB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004171/0.1157, allocations: 483 kB / 0.4897 GB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.601e-05/0.1158, allocations: 181.1 kB / 0.4899 GB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.465e-05/0.1158, allocations: 80.14 kB / 0.49 GB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.1158, allocations: 75.28 kB / 0.49 GB, free: 10.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.877e-05/0.1159, allocations: 117.8 kB / 0.4901 GB, free: 10.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 9.92e-07/0.1159, allocations: 0 / 0.4901 GB, free: 10.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 6.682e-05/0.1159, allocations: 37.55 kB / 0.4902 GB, free: 10.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.116, allocations: 130.7 kB / 0.4903 GB, free: 10.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000157/0.1162, allocations: 187.7 kB / 0.4905 GB, free: 10.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.043e-05/0.1162, allocations: 25.7 kB / 0.4905 GB, free: 10.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.98e-05/0.1162, allocations: 112 kB / 0.4906 GB, free: 10.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.914e-06/0.1163, allocations: 0 / 0.4906 GB, free: 10.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.599e-05/0.1163, allocations: 9.719 kB / 0.4906 GB, free: 10.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.596e-05/0.1164, allocations: 322.8 kB / 0.4909 GB, free: 9.789 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.948e-06/0.1164, allocations: 0 / 0.4909 GB, free: 9.789 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.1e-05/0.1164, allocations: 12 kB / 0.4909 GB, free: 9.777 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.177e-05/0.1164, allocations: 8.797 kB / 0.4909 GB, free: 9.766 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.1164, allocations: 0 / 0.4909 GB, free: 9.766 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.85e-05/0.1165, allocations: 45.61 kB / 0.491 GB, free: 9.715 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.1166, allocations: 4 kB / 0.491 GB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.1166, allocations: 3.984 kB / 0.491 GB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.1166, allocations: 11.92 kB / 0.491 GB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.789e-05/0.1166, allocations: 0 / 0.491 GB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.1166, allocations: 0 / 0.491 GB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.727e-05/0.1167, allocations: 8.031 kB / 0.491 GB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.617e-06/0.1167, allocations: 0 / 0.491 GB, free: 9.688 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 7.707e-05/0.1168, allocations: 189.1 kB / 0.4912 GB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.964e-05/0.1168, allocations: 120.7 kB / 0.4913 GB, free: 9.367 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.558e-05/0.1169, allocations: 113.5 kB / 0.4914 GB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.922e-05/0.1169, allocations: 184.2 kB / 0.4916 GB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.826e-05/0.117, allocations: 184.3 kB / 0.4918 GB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.737e-05/0.1171, allocations: 184.2 kB / 0.4919 GB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002125/0.1173, allocations: 433.1 kB / 0.4924 GB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.133e-05/0.1173, allocations: 105 kB / 0.4925 GB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.628e-05/0.1173, allocations: 108.9 kB / 0.4926 GB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-05/0.1174, allocations: 176.3 kB / 0.4927 GB, free: 7.805 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.668e-05/0.1175, allocations: 188.3 kB / 0.4929 GB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.688e-05/0.1175, allocations: 184.1 kB / 0.4931 GB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.082e-05/0.1176, allocations: 188.3 kB / 0.4933 GB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001068/0.1177, allocations: 311.7 kB / 0.4936 GB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.099e-05/0.1178, allocations: 197.9 kB / 0.4938 GB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.877e-05/0.1178, allocations: 184.2 kB / 0.4939 GB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-05/0.1179, allocations: 104.9 kB / 0.494 GB, free: 6.391 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.988e-05/0.118, allocations: 180.2 kB / 0.4942 GB, free: 6.207 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.089e-05/0.118, allocations: 105 kB / 0.4943 GB, free: 6.098 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.627e-05/0.1181, allocations: 137.2 kB / 0.4944 GB, free: 5.965 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1181, allocations: 4 kB / 0.4944 GB, free: 5.961 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002264/0.1184, allocations: 16 kB / 0.4944 GB, free: 5.945 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.0003013/0.1187, allocations: 0.8086 MB / 0.4952 GB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.891e-05/0.1187, allocations: 4 kB / 0.4952 GB, free: 5.102 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.1187, allocations: 4.062 kB / 0.4952 GB, free: 5.098 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.613e-06/0.1187, allocations: 0 / 0.4952 GB, free: 5.098 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005276/0.1193, allocations: 0.4995 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.001236/0.1205, allocations: 1.639 MB / 0.4973 GB, free: 2.871 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002064/0.1207, allocations: 0.7002 MB / 0.498 GB, free: 2.145 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.475e-05/0.1208, allocations: 12.64 kB / 0.498 GB, free: 2.133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.085e-05/0.1208, allocations: 23.44 kB / 0.4981 GB, free: 2.109 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1208, allocations: 0 / 0.4981 GB, free: 2.109 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01765/0.1385, allocations: 2.995 MB / 0.501 GB, free: 15.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.291/7.43, allocations: 11.17 kB / 0.501 GB, free: 15.15 MB / 382.1 MB (rm -f Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatFlow.pipe ; mkfifo Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatFlow.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatFlow.pipe >> ../files/Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatFlow.sim & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatFlow_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_SkinHeatFlow.fmu > Physiolibrary_Physiolibrary.Thermal.Examples.SkinHeatFlow.pipe 2>&1)