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.005559/0.005559, allocations: 99.52 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001328/0.001328, allocations: 188.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03404/0.03404, allocations: 8.803 MB / 348.7 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001716/0.001716, allocations: 79.88 kB / 463.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1131, allocations: 51.54 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Network): time 0.003123/0.1163, allocations: 1.727 MB / 0.5046 GB, free: 8.281 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003626/0.1167, allocations: 107.6 kB / 0.5047 GB, free: 8.176 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.478e-05/0.1168, allocations: 0 / 0.5047 GB, free: 8.176 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.144e-05/0.1169, allocations: 15.86 kB / 0.5047 GB, free: 8.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.992e-05/0.117, allocations: 31.7 kB / 0.5047 GB, free: 8.129 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001507/0.1171, allocations: 19.97 kB / 0.5047 GB, free: 8.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001496/0.1173, allocations: 115.4 kB / 0.5048 GB, free: 7.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001672/0.1175, allocations: 55.88 kB / 0.5049 GB, free: 7.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.866e-05/0.1175, allocations: 35.88 kB / 0.5049 GB, free: 7.906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.1176, allocations: 47.83 kB / 0.505 GB, free: 7.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.833e-05/0.1177, allocations: 12 kB / 0.505 GB, free: 7.848 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.412e-05/0.1177, allocations: 12 kB / 0.505 GB, free: 7.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.935e-05/0.1177, allocations: 15.94 kB / 0.505 GB, free: 7.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.773e-05/0.1178, allocations: 55.73 kB / 0.5051 GB, free: 7.766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000182/0.118, allocations: 107.6 kB / 0.5052 GB, free: 7.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.118, allocations: 0 / 0.5052 GB, free: 7.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.118, allocations: 3.984 kB / 0.5052 GB, free: 7.656 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.118, allocations: 0 / 0.5052 GB, free: 7.656 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.0006579/0.1187, allocations: 403.1 kB / 0.5056 GB, free: 7.211 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/0.1188, allocations: 11.97 kB / 0.5056 GB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.496e-05/0.1188, allocations: 38.75 kB / 0.5056 GB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.003e-05/0.1189, allocations: 12.89 kB / 0.5056 GB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002404/0.1191, allocations: 176.2 kB / 0.5058 GB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.1191, allocations: 4.375 kB / 0.5058 GB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.595e-05/0.1192, allocations: 16.33 kB / 0.5058 GB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002505/0.1195, allocations: 90.17 kB / 0.5059 GB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.1195, allocations: 3.938 kB / 0.5059 GB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.767e-05/0.1195, allocations: 11.98 kB / 0.5059 GB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.1195, allocations: 4 kB / 0.5059 GB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001333/0.1197, allocations: 51.98 kB / 0.506 GB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008066/0.1205, allocations: 0.4935 MB / 0.5064 GB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002444/0.1207, allocations: 82.53 kB / 0.5065 GB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.722e-05/0.1208, allocations: 48.78 kB / 0.5066 GB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.217e-06/0.1208, allocations: 4 kB / 0.5066 GB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.1209, allocations: 38.56 kB / 0.5066 GB, free: 5.992 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.072e-06/0.1209, allocations: 0 / 0.5066 GB, free: 5.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005818/0.1214, allocations: 223.6 kB / 0.5068 GB, free: 5.746 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/0.1215, allocations: 59.39 kB / 0.5069 GB, free: 5.676 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.1216, allocations: 117.8 kB / 0.507 GB, free: 5.551 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.1217, allocations: 25.7 kB / 0.507 GB, free: 5.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.749e-05/0.1217, allocations: 108 kB / 0.5071 GB, free: 5.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.1218, allocations: 23.75 kB / 0.5071 GB, free: 5.387 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.261e-05/0.1218, allocations: 29.7 kB / 0.5072 GB, free: 5.352 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.122, allocations: 310.8 kB / 0.5075 GB, free: 5.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.274e-05/0.122, allocations: 23.98 kB / 0.5075 GB, free: 5.016 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.421e-05/0.1221, allocations: 33.72 kB / 0.5075 GB, free: 4.977 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.534e-05/0.1222, allocations: 61.64 kB / 0.5076 GB, free: 4.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.1222, allocations: 3.938 kB / 0.5076 GB, free: 4.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002121/0.1224, allocations: 110.4 kB / 0.5077 GB, free: 4.789 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.1224, allocations: 4.656 kB / 0.5077 GB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.1224, allocations: 0 / 0.5077 GB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001838/0.1226, allocations: 32.81 kB / 0.5077 GB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.663e-05/0.1227, allocations: 23.98 kB / 0.5078 GB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001284/0.124, allocations: 1.414 MB / 0.5091 GB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.422e-05/0.1241, allocations: 4 kB / 0.5091 GB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-06/0.1241, allocations: 4.031 kB / 0.5091 GB, free: 3.156 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 9.397e-05/0.1242, allocations: 129.6 kB / 0.5093 GB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.084e-05/0.1242, allocations: 11.89 kB / 0.5093 GB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.395e-05/0.1242, allocations: 16.58 kB / 0.5093 GB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1242, allocations: 3.984 kB / 0.5093 GB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.1242, allocations: 4 kB / 0.5093 GB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.1243, allocations: 0 / 0.5093 GB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002447/0.1245, allocations: 201.5 kB / 0.5095 GB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.1245, allocations: 0 / 0.5095 GB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.186e-05/0.1246, allocations: 15.94 kB / 0.5095 GB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.201e-05/0.1247, allocations: 28.78 kB / 0.5095 GB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.1247, allocations: 4 kB / 0.5095 GB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001/0.1257, allocations: 1.414 MB / 0.5109 GB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1257, allocations: 0 / 0.5109 GB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002607/0.126, allocations: 236.6 kB / 0.5111 GB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.861e-05/0.1261, allocations: 85.14 kB / 0.5112 GB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.1261, allocations: 3.938 kB / 0.5112 GB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.069e-05/0.1261, allocations: 0 / 0.5112 GB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.203e-05/0.1262, allocations: 7.984 kB / 0.5112 GB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-06/0.1262, allocations: 4 kB / 0.5112 GB, free: 0.7656 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.236e-05/0.1262, allocations: 95.33 kB / 0.5113 GB, free: 0.6719 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1262, allocations: 3.938 kB / 0.5113 GB, free: 0.668 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002558/0.1265, allocations: 35.89 kB / 0.5114 GB, free: 0.6328 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.0005639/0.1271, allocations: 0.768 MB / 0.5121 GB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003205/0.1274, allocations: 162.7 kB / 0.5123 GB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1274, allocations: 480 / 0.5123 GB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.1276, allocations: 142.6 kB / 0.5124 GB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003624/0.1279, allocations: 17.34 kB / 0.5124 GB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001731/0.1297, allocations: 1.579 MB / 0.514 GB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003016/0.13, allocations: 0.6963 MB / 0.5147 GB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.21e-05/0.13, allocations: 8.656 kB / 0.5147 GB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.142e-05/0.1301, allocations: 19.44 kB / 0.5147 GB, free: 13.07 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1301, allocations: 0 / 0.5147 GB, free: 13.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03167/0.1618, allocations: 2.429 MB / 0.517 GB, free: 10.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.255/9.416, allocations: 7.188 kB / 0.5171 GB, free: 10.73 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)