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.005111/0.005111, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.359/1.359, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001357/0.001357, allocations: 188.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03401/0.03401, allocations: 8.801 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 79.88 kB / 463.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09888/0.1004, allocations: 51.56 MB / 0.5029 GB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Network): time 0.002984/0.1034, allocations: 1.719 MB / 0.5046 GB, free: 8.391 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003144/0.1038, allocations: 91.62 kB / 0.5047 GB, free: 8.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.383e-05/0.1039, allocations: 4 kB / 0.5047 GB, free: 8.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.223e-05/0.1039, allocations: 11.86 kB / 0.5047 GB, free: 8.285 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.478e-05/0.104, allocations: 35.69 kB / 0.5047 GB, free: 8.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000149/0.1042, allocations: 23.97 kB / 0.5047 GB, free: 8.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001588/0.1044, allocations: 119.4 kB / 0.5048 GB, free: 8.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000144/0.1045, allocations: 43.97 kB / 0.5049 GB, free: 8.066 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.109e-05/0.1046, allocations: 47.86 kB / 0.5049 GB, free: 8.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.348e-05/0.1047, allocations: 43.83 kB / 0.505 GB, free: 7.977 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.098e-05/0.1047, allocations: 12 kB / 0.505 GB, free: 7.965 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.914e-05/0.1047, allocations: 8 kB / 0.505 GB, free: 7.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.484e-05/0.1048, allocations: 19.92 kB / 0.505 GB, free: 7.938 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7e-05/0.1048, allocations: 55.73 kB / 0.5051 GB, free: 7.883 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001419/0.105, allocations: 107.9 kB / 0.5052 GB, free: 7.777 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.105, allocations: 4 kB / 0.5052 GB, free: 7.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.105, allocations: 0 / 0.5052 GB, free: 7.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.105, allocations: 0 / 0.5052 GB, free: 7.773 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.000501/0.1055, allocations: 399.1 kB / 0.5056 GB, free: 7.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.1056, allocations: 12.03 kB / 0.5056 GB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.557e-05/0.1056, allocations: 38.75 kB / 0.5056 GB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.549e-05/0.1057, allocations: 16.83 kB / 0.5056 GB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001241/0.1058, allocations: 176.2 kB / 0.5058 GB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.1058, allocations: 8.375 kB / 0.5058 GB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.551e-05/0.1059, allocations: 8.375 kB / 0.5058 GB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001995/0.1061, allocations: 94.16 kB / 0.5059 GB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.1061, allocations: 7.938 kB / 0.5059 GB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.1061, allocations: 4 kB / 0.5059 GB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.1061, allocations: 4 kB / 0.5059 GB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001232/0.1063, allocations: 55.97 kB / 0.506 GB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006994/0.107, allocations: 0.4935 MB / 0.5064 GB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002389/0.1072, allocations: 86.5 kB / 0.5065 GB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.752e-05/0.1073, allocations: 48.83 kB / 0.5066 GB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.1073, allocations: 0 / 0.5066 GB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.245e-05/0.1073, allocations: 34.56 kB / 0.5066 GB, free: 6.113 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.1073, allocations: 0 / 0.5066 GB, free: 6.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005636/0.1079, allocations: 227.5 kB / 0.5068 GB, free: 5.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.108, allocations: 59.39 kB / 0.5069 GB, free: 5.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.002e-05/0.1081, allocations: 117.8 kB / 0.507 GB, free: 5.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.1081, allocations: 25.7 kB / 0.507 GB, free: 5.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.883e-05/0.1082, allocations: 107.9 kB / 0.5071 GB, free: 5.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.828e-05/0.1082, allocations: 31.55 kB / 0.5071 GB, free: 5.496 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.064e-05/0.1082, allocations: 17.72 kB / 0.5072 GB, free: 5.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1084, allocations: 322.8 kB / 0.5075 GB, free: 5.148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.625e-05/0.1084, allocations: 16 kB / 0.5075 GB, free: 5.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.842e-05/0.1085, allocations: 33.7 kB / 0.5075 GB, free: 5.094 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.551e-05/0.1086, allocations: 57.66 kB / 0.5076 GB, free: 5.031 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1086, allocations: 3.938 kB / 0.5076 GB, free: 5.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002143/0.1088, allocations: 114.9 kB / 0.5077 GB, free: 4.906 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.1088, allocations: 12.03 kB / 0.5077 GB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.1088, allocations: 0 / 0.5077 GB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001893/0.109, allocations: 28.78 kB / 0.5077 GB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.477e-05/0.1091, allocations: 15.98 kB / 0.5077 GB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/0.1103, allocations: 1.414 MB / 0.5091 GB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.088e-05/0.1103, allocations: 4.125 kB / 0.5091 GB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.431e-06/0.1104, allocations: 3.938 kB / 0.5091 GB, free: 3.277 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.0001056/0.1105, allocations: 133.7 kB / 0.5093 GB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.9e-05/0.1105, allocations: 11.91 kB / 0.5093 GB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.591e-05/0.1105, allocations: 12.38 kB / 0.5093 GB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1105, allocations: 144 / 0.5093 GB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.1106, allocations: 0 / 0.5093 GB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1106, allocations: 3.984 kB / 0.5093 GB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002178/0.1108, allocations: 197.6 kB / 0.5095 GB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.1108, allocations: 4 kB / 0.5095 GB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.426e-05/0.1109, allocations: 15.92 kB / 0.5095 GB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.802e-05/0.111, allocations: 32.78 kB / 0.5095 GB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.111, allocations: 4 kB / 0.5095 GB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001018/0.112, allocations: 1.414 MB / 0.5109 GB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1121, allocations: 0 / 0.5109 GB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002764/0.1123, allocations: 232.2 kB / 0.5111 GB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.3e-05/0.1124, allocations: 77.11 kB / 0.5112 GB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.361e-05/0.1124, allocations: 3.938 kB / 0.5112 GB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.62e-05/0.1125, allocations: 8.031 kB / 0.5112 GB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.898e-05/0.1125, allocations: 4.109 kB / 0.5112 GB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-06/0.1125, allocations: 8 kB / 0.5112 GB, free: 0.8906 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.901e-05/0.1126, allocations: 95.2 kB / 0.5113 GB, free: 0.7969 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1126, allocations: 0 / 0.5113 GB, free: 0.7969 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002656/0.1129, allocations: 35.84 kB / 0.5114 GB, free: 0.7617 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.0005574/0.1134, allocations: 0.7522 MB / 0.5121 GB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003082/0.1137, allocations: 171 kB / 0.5122 GB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1138, allocations: 0 / 0.5122 GB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001725/0.1139, allocations: 146.6 kB / 0.5124 GB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.1143, allocations: 20.86 kB / 0.5124 GB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.1159, allocations: 1.577 MB / 0.5139 GB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.1162, allocations: 0.7002 MB / 0.5146 GB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.056e-05/0.1162, allocations: 0.6719 kB / 0.5146 GB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.247e-05/0.1163, allocations: 27.42 kB / 0.5147 GB, free: 13.2 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1163, allocations: 7.938 kB / 0.5147 GB, free: 13.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02196/0.1383, allocations: 2.448 MB / 0.5171 GB, free: 10.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.881/9.019, allocations: 2.25 kB / 0.5171 GB, free: 10.84 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)