Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.conf.json 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/IDEAS 3.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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) Running command: "" <> buildModelFMU(IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001931/0.001931, allocations: 180.9 kB / 7.65 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7976/0.7976, allocations: 133.6 MB / 141.6 MB, free: 2.82 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 221.5 MB / 395.5 MB, free: 10.79 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009497/0.0009496, allocations: 91.3 kB / 478.2 MB, free: 1.316 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.796e-05/3.814e-05, allocations: 4 kB / 0.5535 GB, free: 8.949 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6787/0.6787, allocations: 82.3 MB / 0.6339 GB, free: 40.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.839/1.518, allocations: 397.7 MB / 1.022 GB, free: 3.344 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/1.518, allocations: 91.02 kB / 1.022 GB, free: 3.301 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 3.813/5.331, allocations: 1.058 GB / 2.08 GB, free: 38.14 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.663e-06/5.331, allocations: 0 / 2.08 GB, free: 38.14 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0004595/5.332, allocations: 83.91 kB / 2.08 GB, free: 38.06 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 583 * Number of variables: 583 Notification: Performance of Generate backend data structure: time 0.009204/5.341, allocations: 3.212 MB / 2.084 GB, free: 34.75 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/5.341, allocations: 8.031 kB / 2.084 GB, free: 34.74 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009229/5.35, allocations: 1.213 MB / 2.085 GB, free: 33.52 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008534/5.359, allocations: 3.321 MB / 2.088 GB, free: 30.14 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002785/5.359, allocations: 171.9 kB / 2.088 GB, free: 29.96 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008123/5.36, allocations: 136 kB / 2.088 GB, free: 29.82 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004745/5.365, allocations: 1.989 MB / 2.09 GB, free: 27.83 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006036/5.371, allocations: 2.511 MB / 2.093 GB, free: 25.12 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.876e-05/5.371, allocations: 7.844 kB / 2.093 GB, free: 25.11 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00045/5.371, allocations: 8 kB / 2.093 GB, free: 25.11 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001062/5.372, allocations: 95.27 kB / 2.093 GB, free: 25.01 MB / 0.698 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01827/5.39, allocations: 12.82 MB / 2.105 GB, free: 11.67 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/5.391, allocations: 1.146 MB / 2.106 GB, free: 10.48 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007409/5.392, allocations: 0.5724 MB / 2.107 GB, free: 9.906 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001512/5.394, allocations: 1.778 MB / 2.109 GB, free: 7.738 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001165/5.395, allocations: 0.9064 MB / 2.11 GB, free: 6.734 MB / 0.698 GB Notification: Performance of pre-optimization done (n=118): time 3.276e-06/5.395, allocations: 1.203 kB / 2.11 GB, free: 6.734 MB / 0.698 GB Notification: Performance of matching and sorting (n=122): time 0.02303/5.418, allocations: 10.51 MB / 2.12 GB, free: 12.04 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004317/5.418, allocations: 0.936 MB / 2.121 GB, free: 10.88 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003305/5.422, allocations: 1.841 MB / 2.123 GB, free: 9.023 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0004354/5.422, allocations: 37.69 kB / 2.123 GB, free: 8.98 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.001387/5.424, allocations: 1.392 MB / 2.124 GB, free: 7.566 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005775/5.424, allocations: 410 kB / 2.124 GB, free: 7.16 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/5.424, allocations: 0 / 2.124 GB, free: 7.16 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001746/5.424, allocations: 369.9 kB / 2.125 GB, free: 6.793 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001067/5.426, allocations: 0.5741 MB / 2.125 GB, free: 6.219 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001505/5.427, allocations: 1.196 MB / 2.126 GB, free: 4.762 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00381/5.431, allocations: 0.9489 MB / 2.127 GB, free: 3.816 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.718e-06/5.431, allocations: 3.953 kB / 2.127 GB, free: 3.812 MB / 0.7136 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.006992/5.438, allocations: 2.334 MB / 2.13 GB, free: 1.465 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.5241/5.962, allocations: 5.128 MB / 2.135 GB, free: 65.51 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.508e-05/5.962, allocations: 12.52 kB / 2.135 GB, free: 65.51 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002126/5.964, allocations: 0.7132 MB / 2.135 GB, free: 65.49 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002885/5.967, allocations: 457.9 kB / 2.136 GB, free: 65.49 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004065/5.971, allocations: 2.274 MB / 2.138 GB, free: 64.43 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005138/5.976, allocations: 362.1 kB / 2.138 GB, free: 64.43 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004186/5.977, allocations: 109.9 kB / 2.139 GB, free: 64.43 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/5.977, allocations: 5.406 kB / 2.139 GB, free: 64.43 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006241/5.983, allocations: 2.056 MB / 2.141 GB, free: 64.4 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.936e-05/5.983, allocations: 11.72 kB / 2.141 GB, free: 64.4 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001593/5.985, allocations: 0.7052 MB / 2.141 GB, free: 64.38 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002307/5.987, allocations: 439.6 kB / 2.142 GB, free: 64.38 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003296/5.99, allocations: 2.286 MB / 2.144 GB, free: 63.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00424/5.995, allocations: 309.2 kB / 2.144 GB, free: 63.32 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002631/5.995, allocations: 107.3 kB / 2.144 GB, free: 63.32 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.heaPum.com.isOn,heaPum.com.isOn,heaPum.stage,$PRE.heaPum1.com.isOn,heaPum1.com.isOn,$PRE.N.T_start,N.T_start,$PRE.N.count,N.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 149 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 22,4 25} Notification: Performance of prepare postOptimizeDAE: time 0.0006602/5.996, allocations: 155.6 kB / 2.144 GB, free: 63.21 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005304/6.001, allocations: 1.748 MB / 2.146 GB, free: 63.13 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00048/6.001, allocations: 247.9 kB / 2.146 GB, free: 63.13 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005905/6.007, allocations: 1.83 MB / 2.148 GB, free: 63.02 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.036e-05/6.007, allocations: 17.34 kB / 2.148 GB, free: 63.02 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/6.007, allocations: 6.938 kB / 2.148 GB, free: 63.02 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004889/6.012, allocations: 1.662 MB / 2.15 GB, free: 62.72 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01408/6.026, allocations: 6.15 MB / 2.156 GB, free: 60.85 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/6.026, allocations: 10.48 kB / 2.156 GB, free: 60.85 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001642/6.028, allocations: 279.4 kB / 2.156 GB, free: 60.85 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001311/6.029, allocations: 0.5989 MB / 2.157 GB, free: 60.83 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001193/6.03, allocations: 43.17 kB / 2.157 GB, free: 60.83 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002801/6.032, allocations: 2.029 MB / 2.159 GB, free: 59.78 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.597e-06/6.032, allocations: 9.344 kB / 2.159 GB, free: 59.78 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006893/6.039, allocations: 3.305 MB / 2.162 GB, free: 58.65 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001841/6.041, allocations: 0.6085 MB / 2.163 GB, free: 58.43 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005199/6.042, allocations: 14.38 kB / 2.163 GB, free: 58.43 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003227/6.045, allocations: 252 kB / 2.163 GB, free: 58.43 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002456/6.045, allocations: 111.9 kB / 2.163 GB, free: 58.42 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001823/6.045, allocations: 73.45 kB / 2.163 GB, free: 58.42 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.002331/6.048, allocations: 1.375 MB / 2.164 GB, free: 58.28 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.8e-07/6.048, allocations: 0 / 2.164 GB, free: 58.28 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.006446/6.054, allocations: 1.567 MB / 2.166 GB, free: 58.28 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (heaPum1.port_b1.h_outflow,heaPum1.port_b2.h_outflow) * Number of discrete variables: 6 ($whenCondition1,heaPum.com.isOn,heaPum.stage,heaPum1.com.isOn,N.T_start,N.count) * Number of discrete states: 3 (N.count,heaPum1.com.isOn,heaPum.com.isOn) * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 17,5 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.01046/6.065, allocations: 6.824 MB / 2.172 GB, free: 54.88 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.005935/6.071, allocations: 2.785 MB / 2.175 GB, free: 54.7 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/6.071, allocations: 4.594 kB / 2.175 GB, free: 54.7 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.002046/6.073, allocations: 0.8351 MB / 2.176 GB, free: 54.69 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006114/6.079, allocations: 1.071 MB / 2.177 GB, free: 54.67 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01358/6.092, allocations: 4.381 MB / 2.181 GB, free: 53.51 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001359/6.094, allocations: 1.775 MB / 2.183 GB, free: 52.77 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.004134/6.098, allocations: 0.7147 MB / 2.184 GB, free: 52.75 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001451/6.1, allocations: 1.123 MB / 2.185 GB, free: 52.75 MB / 0.7136 GB Notification: Performance of SimCode: time 9.42e-07/6.1, allocations: 0 / 2.185 GB, free: 52.75 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1654/6.265, allocations: 86.26 MB / 2.269 GB, free: 47.74 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001447/6.265, allocations: 182.2 kB / 2.269 GB, free: 47.55 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.618/11.88, allocations: 0 / 2.269 GB, free: 47.55 MB / 0.7136 GB (rm -f IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic.fmu > IDEAS_dev_IDEAS.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe 2>&1)