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.006011/0.006011, allocations: 99.8 kB / 15.73 MB, free: 6.004 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.375/1.375, allocations: 222.9 MB / 239.4 MB, free: 4.562 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.001568/0.001568, allocations: 196.4 kB / 289.7 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03566/0.03566, allocations: 8.796 MB / 348.7 MB, free: 4.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002311/0.002311, allocations: 87.8 kB / 463.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09519/0.09752, allocations: 51.55 MB / 0.5029 GB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Network): time 0.003071/0.1006, allocations: 1.727 MB / 0.5046 GB, free: 8.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003286/0.101, allocations: 95.67 kB / 0.5047 GB, free: 8.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.521e-05/0.1011, allocations: 0 / 0.5047 GB, free: 8.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.085e-05/0.1012, allocations: 19.8 kB / 0.5047 GB, free: 8.227 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001059/0.1013, allocations: 35.64 kB / 0.5047 GB, free: 8.191 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001475/0.1014, allocations: 23.97 kB / 0.5047 GB, free: 8.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001628/0.1016, allocations: 111.4 kB / 0.5048 GB, free: 8.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.1018, allocations: 59.88 kB / 0.5049 GB, free: 8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.692e-05/0.1019, allocations: 35.88 kB / 0.5049 GB, free: 7.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.102, allocations: 43.84 kB / 0.505 GB, free: 7.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.31e-05/0.102, allocations: 12 kB / 0.505 GB, free: 7.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.317e-05/0.102, allocations: 12 kB / 0.505 GB, free: 7.898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.462e-05/0.1021, allocations: 15.92 kB / 0.505 GB, free: 7.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.339e-05/0.1021, allocations: 55.73 kB / 0.5051 GB, free: 7.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001839/0.1023, allocations: 111.6 kB / 0.5052 GB, free: 7.719 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.1023, allocations: 0 / 0.5052 GB, free: 7.719 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1024, allocations: 0 / 0.5052 GB, free: 7.719 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.1024, allocations: 0 / 0.5052 GB, free: 7.719 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.0005718/0.1029, allocations: 399.1 kB / 0.5056 GB, free: 7.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.103, allocations: 8.031 kB / 0.5056 GB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.061e-05/0.103, allocations: 46.73 kB / 0.5056 GB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.474e-05/0.1031, allocations: 8.891 kB / 0.5056 GB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.1033, allocations: 176.2 kB / 0.5058 GB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.1033, allocations: 12.36 kB / 0.5058 GB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.174e-05/0.1033, allocations: 12.33 kB / 0.5058 GB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.1035, allocations: 90.23 kB / 0.5059 GB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.1035, allocations: 3.938 kB / 0.5059 GB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.1036, allocations: 4 kB / 0.5059 GB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.1036, allocations: 8 kB / 0.5059 GB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001259/0.1037, allocations: 55.91 kB / 0.506 GB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007765/0.1045, allocations: 0.5013 MB / 0.5065 GB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002347/0.1047, allocations: 82.55 kB / 0.5065 GB, free: 6.148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.002e-05/0.1048, allocations: 40.98 kB / 0.5066 GB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/0.1048, allocations: 8 kB / 0.5066 GB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.1049, allocations: 34.56 kB / 0.5066 GB, free: 6.055 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.1049, allocations: 0 / 0.5066 GB, free: 6.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005453/0.1054, allocations: 219.4 kB / 0.5068 GB, free: 5.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.1055, allocations: 59.39 kB / 0.5069 GB, free: 5.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.947e-05/0.1056, allocations: 121.8 kB / 0.507 GB, free: 5.613 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.1056, allocations: 25.7 kB / 0.507 GB, free: 5.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.675e-05/0.1057, allocations: 108 kB / 0.5071 GB, free: 5.473 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.881e-05/0.1057, allocations: 27.75 kB / 0.5072 GB, free: 5.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.104e-05/0.1058, allocations: 21.7 kB / 0.5072 GB, free: 5.418 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.1059, allocations: 318.8 kB / 0.5075 GB, free: 5.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.685e-05/0.106, allocations: 19.92 kB / 0.5075 GB, free: 5.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.489e-05/0.106, allocations: 33.72 kB / 0.5075 GB, free: 5.039 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.762e-05/0.1061, allocations: 57.7 kB / 0.5076 GB, free: 4.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.1061, allocations: 3.938 kB / 0.5076 GB, free: 4.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002148/0.1063, allocations: 114.4 kB / 0.5077 GB, free: 4.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.1064, allocations: 4 kB / 0.5077 GB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.1064, allocations: 0 / 0.5077 GB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001678/0.1066, allocations: 36.88 kB / 0.5077 GB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.017e-05/0.1066, allocations: 16 kB / 0.5077 GB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001176/0.1078, allocations: 1.423 MB / 0.5091 GB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.738e-05/0.1079, allocations: 4.031 kB / 0.5091 GB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.021e-06/0.1079, allocations: 0.6562 kB / 0.5091 GB, free: 3.219 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.94e-05/0.108, allocations: 129.7 kB / 0.5093 GB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.001e-05/0.108, allocations: 15.88 kB / 0.5093 GB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.201e-05/0.108, allocations: 8.438 kB / 0.5093 GB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1081, allocations: 8 kB / 0.5093 GB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.1081, allocations: 0 / 0.5093 GB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.1081, allocations: 0 / 0.5093 GB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00022/0.1083, allocations: 205.5 kB / 0.5095 GB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1083, allocations: 0 / 0.5095 GB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.062e-05/0.1084, allocations: 19.94 kB / 0.5095 GB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.1e-05/0.1085, allocations: 28.78 kB / 0.5095 GB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.1085, allocations: 0 / 0.5095 GB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/0.1096, allocations: 1.418 MB / 0.5109 GB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1096, allocations: 8.172 kB / 0.5109 GB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000278/0.1099, allocations: 232.2 kB / 0.5112 GB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.567e-05/0.1099, allocations: 81.14 kB / 0.5112 GB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.11, allocations: 3.938 kB / 0.5112 GB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.056e-05/0.11, allocations: 4 kB / 0.5112 GB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.398e-05/0.1101, allocations: 7.984 kB / 0.5112 GB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.1101, allocations: 0 / 0.5112 GB, free: 0.8242 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.142e-05/0.1101, allocations: 99.33 kB / 0.5113 GB, free: 0.7266 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1101, allocations: 0 / 0.5113 GB, free: 0.7266 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002583/0.1104, allocations: 35.89 kB / 0.5114 GB, free: 0.6914 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.0005954/0.111, allocations: 0.7562 MB / 0.5121 GB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002952/0.1113, allocations: 166.6 kB / 0.5123 GB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1113, allocations: 0 / 0.5123 GB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.1115, allocations: 142.7 kB / 0.5124 GB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/0.1118, allocations: 16.41 kB / 0.5124 GB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001714/0.1135, allocations: 1.587 MB / 0.514 GB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.1139, allocations: 0.6963 MB / 0.5147 GB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.813e-05/0.1139, allocations: 4.672 kB / 0.5147 GB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.267e-05/0.1139, allocations: 23.44 kB / 0.5147 GB, free: 13.13 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1139, allocations: 0 / 0.5147 GB, free: 13.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02712/0.1411, allocations: 2.424 MB / 0.517 GB, free: 10.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.324/9.465, allocations: 6.969 kB / 0.5171 GB, free: 10.79 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Thermal_Network_fmu --startTime=0 --stopTime=400 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Thermal_Network.fmu > HanserModelica_HanserModelica.Thermal.Network.pipe 2>&1)