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.001598/0.001598, allocations: 108 kB / 15.61 MB, free: 152 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.433/1.433, allocations: 222.9 MB / 239.2 MB, free: 4.59 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.001429/0.001429, allocations: 199.7 kB / 289.6 MB, free: 2.297 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03653/0.03653, allocations: 8.805 MB / 348.5 MB, free: 4.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001596, allocations: 78.61 kB / 411.2 MB, free: 42.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09253/0.09414, allocations: 51.56 MB / 462.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Network): time 0.003697/0.09789, allocations: 1.717 MB / 464.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003585/0.09828, allocations: 107.6 kB / 464.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.786e-05/0.09838, allocations: 0 / 464.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.778e-05/0.09849, allocations: 15.8 kB / 464.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.0986, allocations: 35.7 kB / 464.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001649/0.09877, allocations: 19.97 kB / 464.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000172/0.09895, allocations: 115.4 kB / 464.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001701/0.09913, allocations: 59.89 kB / 464.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.041e-05/0.0992, allocations: 35.86 kB / 464.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.967e-05/0.09929, allocations: 47.84 kB / 464.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.08e-05/0.09932, allocations: 8 kB / 464.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.386e-05/0.09935, allocations: 12 kB / 464.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.503e-05/0.09938, allocations: 15.92 kB / 464.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.787e-05/0.09944, allocations: 47.81 kB / 465 MB, free: 12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001428/0.09959, allocations: 115.9 kB / 465.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.0996, allocations: 0 / 465.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.09961, allocations: 0 / 465.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.09962, allocations: 4 kB / 465.1 MB, free: 11.88 MB / 302.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.0004955/0.1001, allocations: 401.8 kB / 465.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.1002, allocations: 8.031 kB / 465.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.48e-05/0.1002, allocations: 42.75 kB / 465.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.233e-05/0.1003, allocations: 8.844 kB / 465.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001357/0.1004, allocations: 180.2 kB / 465.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.1004, allocations: 8.375 kB / 465.7 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.761e-05/0.1005, allocations: 8.375 kB / 465.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001821/0.1006, allocations: 94.22 kB / 465.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.1007, allocations: 3.938 kB / 465.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.1007, allocations: 8 kB / 465.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.1007, allocations: 0 / 465.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001216/0.1008, allocations: 59.83 kB / 465.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008184/0.1016, allocations: 0.4975 MB / 466.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002479/0.1019, allocations: 86.48 kB / 466.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.39e-05/0.102, allocations: 36.84 kB / 466.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.596e-05/0.102, allocations: 4 kB / 466.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.102, allocations: 30.56 kB / 466.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.102, allocations: 0 / 466.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005544/0.1026, allocations: 227.6 kB / 466.8 MB, free: 9.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.691e-05/0.1026, allocations: 55.34 kB / 466.8 MB, free: 9.914 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.739e-05/0.1028, allocations: 121.8 kB / 466.9 MB, free: 9.785 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.1028, allocations: 25.7 kB / 467 MB, free: 9.754 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.736e-05/0.1028, allocations: 107.9 kB / 467.1 MB, free: 9.645 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.63e-05/0.1029, allocations: 31.56 kB / 467.1 MB, free: 9.613 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.106e-05/0.1029, allocations: 21.7 kB / 467.1 MB, free: 9.586 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.103, allocations: 318.8 kB / 467.4 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.506e-05/0.1031, allocations: 15.98 kB / 467.5 MB, free: 9.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.466e-05/0.1031, allocations: 37.64 kB / 467.5 MB, free: 9.207 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.945e-05/0.1032, allocations: 53.72 kB / 467.5 MB, free: 9.148 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.1032, allocations: 7.938 kB / 467.6 MB, free: 9.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002056/0.1034, allocations: 114.3 kB / 467.7 MB, free: 9.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.1034, allocations: 4 kB / 467.7 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.1035, allocations: 4 kB / 467.7 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001633/0.1036, allocations: 24.84 kB / 467.7 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.746e-05/0.1037, allocations: 15.98 kB / 467.7 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001111/0.1048, allocations: 1.426 MB / 469.1 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.219e-05/0.1049, allocations: 11.92 kB / 469.1 MB, free: 7.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.1049, allocations: 0.6562 kB / 469.1 MB, free: 7.387 MB / 302.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.04e-05/0.105, allocations: 135.5 kB / 469.3 MB, free: 7.246 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.844e-05/0.105, allocations: 7.938 kB / 469.3 MB, free: 7.238 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.184e-05/0.105, allocations: 8.375 kB / 469.3 MB, free: 7.234 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.1051, allocations: 4 kB / 469.3 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.1051, allocations: 0 / 469.3 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1051, allocations: 64 / 469.3 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001962/0.1053, allocations: 209.5 kB / 469.5 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1053, allocations: 0 / 469.5 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.841e-05/0.1054, allocations: 19.88 kB / 469.5 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001021/0.1055, allocations: 24.84 kB / 469.5 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.1055, allocations: 4 kB / 469.6 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009434/0.1064, allocations: 1.41 MB / 471 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1065, allocations: 4.031 kB / 471 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002677/0.1067, allocations: 228.6 kB / 471.2 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.135e-05/0.1068, allocations: 81.28 kB / 471.3 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.1068, allocations: 11.86 kB / 471.3 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.822e-05/0.1069, allocations: 3.938 kB / 471.3 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.073e-05/0.1069, allocations: 11.98 kB / 471.3 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-06/0.1069, allocations: 4 kB / 471.3 MB, free: 4.996 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.943e-05/0.107, allocations: 91.33 kB / 471.4 MB, free: 4.906 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.107, allocations: 4 kB / 471.4 MB, free: 4.902 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000276/0.1073, allocations: 35.84 kB / 471.4 MB, free: 4.867 MB / 302.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.000614/0.1079, allocations: 0.7522 MB / 472.2 MB, free: 4.086 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003069/0.1082, allocations: 170.7 kB / 472.3 MB, free: 3.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.1082, allocations: 4 kB / 472.4 MB, free: 3.902 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001366/0.1084, allocations: 142.7 kB / 472.5 MB, free: 3.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.1087, allocations: 16.47 kB / 472.5 MB, free: 3.734 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.1103, allocations: 1.568 MB / 474.1 MB, free: 2.074 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.1107, allocations: 0.6963 MB / 474.8 MB, free: 1.352 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.381e-05/0.1107, allocations: 12.66 kB / 474.8 MB, free: 1.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.541e-05/0.1108, allocations: 19.44 kB / 474.8 MB, free: 1.32 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1108, allocations: 0 / 474.8 MB, free: 1.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02281/0.1336, allocations: 2.362 MB / 477.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.346/9.479, allocations: 3.938 kB / 477.2 MB, free: 15.03 MB / 318.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)