Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Thermal.Network.conf.json 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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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) Running command: "" <> buildModelFMU(HanserModelica.Thermal.Network,fileNamePrefix="HanserModelica_HanserModelica_Thermal_Network",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Thermal.Network,fileNamePrefix="HanserModelica_HanserModelica_Thermal_Network",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 239.4 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 184.5 kB / 289.7 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03564/0.03564, allocations: 8.798 MB / 348.6 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 83.88 kB / 463.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1026, allocations: 51.55 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Network): time 0.003015/0.1056, allocations: 1.729 MB / 0.5046 GB, free: 8.266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003197/0.106, allocations: 95.61 kB / 0.5047 GB, free: 8.172 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.108e-05/0.1061, allocations: 8 kB / 0.5047 GB, free: 8.164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.356e-05/0.1061, allocations: 11.86 kB / 0.5047 GB, free: 8.152 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001018/0.1063, allocations: 39.62 kB / 0.5047 GB, free: 8.113 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001534/0.1064, allocations: 23.97 kB / 0.5047 GB, free: 8.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001508/0.1066, allocations: 119.4 kB / 0.5048 GB, free: 7.973 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.1067, allocations: 47.91 kB / 0.5049 GB, free: 7.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.248e-05/0.1068, allocations: 39.86 kB / 0.5049 GB, free: 7.887 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.1069, allocations: 43.83 kB / 0.505 GB, free: 7.844 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.1069, allocations: 12 kB / 0.505 GB, free: 7.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.362e-05/0.107, allocations: 12 kB / 0.505 GB, free: 7.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.697e-05/0.107, allocations: 27.86 kB / 0.505 GB, free: 7.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.078e-05/0.1071, allocations: 47.81 kB / 0.5051 GB, free: 7.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001569/0.1072, allocations: 111.5 kB / 0.5052 GB, free: 7.637 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.1072, allocations: 0 / 0.5052 GB, free: 7.637 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1072, allocations: 4 kB / 0.5052 GB, free: 7.633 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1073, allocations: 0 / 0.5052 GB, free: 7.633 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0005609/0.1078, allocations: 395.1 kB / 0.5056 GB, free: 7.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.1079, allocations: 8.031 kB / 0.5056 GB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.249e-05/0.1079, allocations: 42.75 kB / 0.5056 GB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.44e-05/0.108, allocations: 12.89 kB / 0.5056 GB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.1081, allocations: 176.2 kB / 0.5058 GB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.1081, allocations: 12.31 kB / 0.5058 GB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/0.1082, allocations: 12.33 kB / 0.5058 GB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001775/0.1084, allocations: 94.22 kB / 0.5059 GB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.1084, allocations: 3.938 kB / 0.5059 GB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.1084, allocations: 0 / 0.5059 GB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.972e-06/0.1084, allocations: 4 kB / 0.5059 GB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001195/0.1085, allocations: 55.97 kB / 0.506 GB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006713/0.1092, allocations: 0.4975 MB / 0.5064 GB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002263/0.1094, allocations: 82.5 kB / 0.5065 GB, free: 6.074 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.245e-05/0.1095, allocations: 36.84 kB / 0.5066 GB, free: 6.035 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.298e-05/0.1095, allocations: 7.938 kB / 0.5066 GB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.1096, allocations: 42.56 kB / 0.5066 GB, free: 5.977 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.1096, allocations: 0 / 0.5066 GB, free: 5.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005171/0.1101, allocations: 223.6 kB / 0.5068 GB, free: 5.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.39e-05/0.1101, allocations: 51.41 kB / 0.5069 GB, free: 5.668 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.98e-05/0.1102, allocations: 125.8 kB / 0.507 GB, free: 5.535 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.1103, allocations: 25.7 kB / 0.507 GB, free: 5.504 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.587e-05/0.1103, allocations: 108 kB / 0.5071 GB, free: 5.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.559e-05/0.1104, allocations: 31.73 kB / 0.5071 GB, free: 5.363 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.852e-05/0.1104, allocations: 21.72 kB / 0.5072 GB, free: 5.336 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.1105, allocations: 318.8 kB / 0.5075 GB, free: 5.016 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.595e-05/0.1105, allocations: 16 kB / 0.5075 GB, free: 5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.789e-05/0.1106, allocations: 33.7 kB / 0.5075 GB, free: 4.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.244e-05/0.1107, allocations: 61.66 kB / 0.5076 GB, free: 4.895 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.1107, allocations: 3.938 kB / 0.5076 GB, free: 4.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002166/0.1109, allocations: 114.4 kB / 0.5077 GB, free: 4.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.1109, allocations: 4 kB / 0.5077 GB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.1109, allocations: 4 kB / 0.5077 GB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001589/0.1111, allocations: 28.88 kB / 0.5077 GB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.006e-05/0.1112, allocations: 15.98 kB / 0.5077 GB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/0.1123, allocations: 1.422 MB / 0.5091 GB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.143e-05/0.1123, allocations: 8.031 kB / 0.5091 GB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.1123, allocations: 0 / 0.5091 GB, free: 3.137 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000101/0.1125, allocations: 122.5 kB / 0.5093 GB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.978e-05/0.1125, allocations: 15.88 kB / 0.5093 GB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.565e-05/0.1125, allocations: 16.38 kB / 0.5093 GB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.1125, allocations: 0 / 0.5093 GB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.1125, allocations: 4.062 kB / 0.5093 GB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.1125, allocations: 0 / 0.5093 GB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001954/0.1127, allocations: 197.6 kB / 0.5095 GB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1128, allocations: 3.938 kB / 0.5095 GB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.162e-05/0.1128, allocations: 15.94 kB / 0.5095 GB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.396e-05/0.1129, allocations: 32.77 kB / 0.5095 GB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.113, allocations: 4 kB / 0.5095 GB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009451/0.1139, allocations: 1.415 MB / 0.5109 GB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1139, allocations: 3.938 kB / 0.5109 GB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002666/0.1142, allocations: 228.4 kB / 0.5111 GB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.788e-05/0.1142, allocations: 85.11 kB / 0.5112 GB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.1143, allocations: 3.938 kB / 0.5112 GB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.118e-05/0.1143, allocations: 0 / 0.5112 GB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.179e-05/0.1144, allocations: 12.06 kB / 0.5112 GB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-06/0.1144, allocations: 7.984 kB / 0.5112 GB, free: 0.7461 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.757e-05/0.1144, allocations: 95.27 kB / 0.5113 GB, free: 0.6523 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1144, allocations: 4.062 kB / 0.5113 GB, free: 0.6484 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002604/0.1147, allocations: 31.89 kB / 0.5114 GB, free: 0.6172 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (heatCapacitor.T) * 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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005996/0.1153, allocations: 0.7523 MB / 0.5121 GB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000332/0.1157, allocations: 166.7 kB / 0.5123 GB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1157, allocations: 4 kB / 0.5123 GB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.1158, allocations: 142.6 kB / 0.5124 GB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003584/0.1162, allocations: 21.7 kB / 0.5124 GB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001781/0.118, allocations: 1.583 MB / 0.514 GB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003007/0.1183, allocations: 0.6963 MB / 0.5146 GB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.334e-05/0.1183, allocations: 4.672 kB / 0.5146 GB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.028e-05/0.1184, allocations: 23.42 kB / 0.5147 GB, free: 13.06 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1184, allocations: 0 / 0.5147 GB, free: 13.06 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03026/0.1487, allocations: 2.423 MB / 0.517 GB, free: 10.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.28/9.428, allocations: 9.328 kB / 0.517 GB, free: 10.72 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Thermal.Network.pipe ; mkfifo HanserModelica_HanserModelica.Thermal.Network.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Thermal.Network.pipe >> ../files/HanserModelica_HanserModelica.Thermal.Network.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Thermal.Network_res.csv --start-time 0 --stop-time 400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 HanserModelica_HanserModelica_Thermal_Network.fmu > HanserModelica_HanserModelica.Thermal.Network.pipe 2>&1)