Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.232/2.232, allocations: 390.3 MB / 402.8 MB, free: 6.684 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 168.9 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.655/1.655, allocations: 221.3 MB / 0.7915 GB, free: 5.43 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009081/0.0009082, allocations: 95.89 kB / 0.9317 GB, free: 5.75 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.621e-05/4.624e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3277, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.306/1.634, allocations: 437.7 MB / 1.646 GB, free: 12.65 MB / 1.104 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/1.634, allocations: 92.48 kB / 1.646 GB, free: 12.56 MB / 1.104 GB Notification: Performance of FrontEnd - DAE generated: time 4.339/5.973, allocations: 1.067 GB / 2.713 GB, free: 168.6 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.364e-06/5.973, allocations: 0 / 2.713 GB, free: 168.6 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0005382/5.974, allocations: 86.94 kB / 2.713 GB, free: 168.6 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 579 * Number of variables: 579 Notification: Performance of Generate backend data structure: time 0.01068/5.985, allocations: 3.194 MB / 2.716 GB, free: 167.2 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/5.985, allocations: 7.5 kB / 2.716 GB, free: 167.2 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001149/5.986, allocations: 318.3 kB / 2.717 GB, free: 167.2 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01037/5.996, allocations: 1.32 MB / 2.718 GB, free: 167 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009003/6.005, allocations: 3.31 MB / 2.721 GB, free: 166.4 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00038/6.006, allocations: 252.7 kB / 2.721 GB, free: 166.4 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009966/6.007, allocations: 232.7 kB / 2.722 GB, free: 166.4 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007934/6.015, allocations: 2.83 MB / 2.724 GB, free: 165.9 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.302e-05/6.015, allocations: 11.94 kB / 2.724 GB, free: 165.9 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006321/6.016, allocations: 108.7 kB / 2.724 GB, free: 165.9 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001097/6.016, allocations: 66.47 kB / 2.725 GB, free: 165.9 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004882/6.021, allocations: 2.168 MB / 2.727 GB, free: 165.8 MB / 1.167 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.02247/6.043, allocations: 13.5 MB / 2.74 GB, free: 159.9 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002195/6.045, allocations: 1.23 MB / 2.741 GB, free: 159.7 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/6.046, allocations: 0.6345 MB / 2.742 GB, free: 159.7 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001651/6.048, allocations: 1.78 MB / 2.743 GB, free: 157.7 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001724/6.05, allocations: 0.9799 MB / 2.744 GB, free: 157.4 MB / 1.167 GB Notification: Performance of pre-optimization done (n=118): time 6.652e-06/6.05, allocations: 0 / 2.744 GB, free: 157.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=122): time 0.01829/6.068, allocations: 10.11 MB / 2.754 GB, free: 151.4 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002254/6.068, allocations: 0.94 MB / 2.755 GB, free: 150.3 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003714/6.072, allocations: 2.342 MB / 2.757 GB, free: 150 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0004983/6.073, allocations: 56.83 kB / 2.757 GB, free: 150 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001192/6.074, allocations: 1.359 MB / 2.759 GB, free: 149.5 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005401/6.074, allocations: 427.5 kB / 2.759 GB, free: 149.3 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/6.075, allocations: 31.41 kB / 2.759 GB, free: 149.3 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001087/6.075, allocations: 371.6 kB / 2.76 GB, free: 149 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/6.076, allocations: 0.6307 MB / 2.76 GB, free: 148.9 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/6.077, allocations: 1.272 MB / 2.761 GB, free: 148.3 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/6.078, allocations: 0.7755 MB / 2.762 GB, free: 148.2 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/6.078, allocations: 3.875 kB / 2.762 GB, free: 148.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.004616/6.083, allocations: 2.367 MB / 2.765 GB, free: 148 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001075/6.084, allocations: 5.257 MB / 2.77 GB, free: 142.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.36e-05/6.084, allocations: 15 kB / 2.77 GB, free: 142.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002997/6.087, allocations: 1.049 MB / 2.771 GB, free: 142.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002597/6.09, allocations: 450.8 kB / 2.771 GB, free: 142.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002537/6.092, allocations: 2.206 MB / 2.773 GB, free: 141.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005487/6.098, allocations: 437.5 kB / 2.774 GB, free: 141.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003497/6.098, allocations: 109.3 kB / 2.774 GB, free: 141.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/6.098, allocations: 8.703 kB / 2.774 GB, free: 141.4 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003696/6.102, allocations: 2.095 MB / 2.776 GB, free: 141.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.984e-05/6.102, allocations: 13.69 kB / 2.776 GB, free: 141.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002833/6.105, allocations: 1.052 MB / 2.777 GB, free: 141.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002323/6.107, allocations: 433.8 kB / 2.777 GB, free: 141.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002512/6.11, allocations: 2.204 MB / 2.779 GB, free: 140.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005012/6.115, allocations: 373.6 kB / 2.78 GB, free: 140.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002715/6.115, allocations: 107.3 kB / 2.78 GB, free: 140.2 MB / 1.167 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 (148): * Single equations (assignments): 145 * 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 24,4 27} Notification: Performance of prepare postOptimizeDAE: time 0.0005813/6.116, allocations: 216 kB / 2.78 GB, free: 140 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006516/6.116, allocations: 286.6 kB / 2.78 GB, free: 139.9 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004943/6.121, allocations: 1.771 MB / 2.782 GB, free: 139.8 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-05/6.121, allocations: 16.06 kB / 2.782 GB, free: 139.8 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/6.121, allocations: 3.062 kB / 2.782 GB, free: 139.8 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003695/6.125, allocations: 1.538 MB / 2.784 GB, free: 139.5 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009746/6.135, allocations: 6.427 MB / 2.79 GB, free: 137.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/6.135, allocations: 6.094 kB / 2.79 GB, free: 137.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001627/6.137, allocations: 270.5 kB / 2.79 GB, free: 137.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002455/6.139, allocations: 0.8864 MB / 2.791 GB, free: 137.5 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001503/6.139, allocations: 54.69 kB / 2.791 GB, free: 137.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001882/6.141, allocations: 1.977 MB / 2.793 GB, free: 136.4 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/6.141, allocations: 15.17 kB / 2.793 GB, free: 136.4 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006386/6.147, allocations: 3.427 MB / 2.796 GB, free: 135 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002307/6.15, allocations: 0.6538 MB / 2.797 GB, free: 134.8 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007499/6.151, allocations: 38.78 kB / 2.797 GB, free: 134.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00372/6.154, allocations: 296 kB / 2.797 GB, free: 134.8 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002147/6.155, allocations: 109.2 kB / 2.797 GB, free: 134.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001815/6.155, allocations: 74.72 kB / 2.798 GB, free: 134.8 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.002875/6.158, allocations: 1.819 MB / 2.799 GB, free: 134.6 MB / 1.167 GB Notification: Performance of sort global known variables: time 2.4e-07/6.158, allocations: 0 / 2.799 GB, free: 134.6 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.006292/6.164, allocations: 1.65 MB / 2.801 GB, free: 134.5 MB / 1.167 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 (76): * Single equations (assignments): 70 * 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 19,4 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.01027/6.174, allocations: 6.833 MB / 2.808 GB, free: 130.9 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.005703/6.18, allocations: 2.851 MB / 2.81 GB, free: 130.7 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.899e-05/6.18, allocations: 12.34 kB / 2.81 GB, free: 130.7 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001554/6.182, allocations: 0.8013 MB / 2.811 GB, free: 130.7 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007696/6.189, allocations: 1.482 MB / 2.813 GB, free: 130.7 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01012/6.199, allocations: 4.372 MB / 2.817 GB, free: 129.1 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/6.201, allocations: 1.772 MB / 2.819 GB, free: 128.3 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.004155/6.205, allocations: 0.8359 MB / 2.819 GB, free: 128.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00124/6.206, allocations: 1.13 MB / 2.821 GB, free: 127.4 MB / 1.167 GB Notification: Performance of SimCode: time 8.32e-07/6.206, allocations: 0 / 2.821 GB, free: 127.4 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.16/6.366, allocations: 110.5 MB / 2.928 GB, free: 62.49 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000178/6.366, allocations: 240.5 kB / 2.929 GB, free: 62.18 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.507/12.87, allocations: 0 / 2.929 GB, free: 62.18 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic_res.mat does not exist to compare? outputFormat=mat