Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.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/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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",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.0008358/0.0008359, allocations: 100.2 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008392/0.0008393, allocations: 177.3 kB / 15.94 MB, free: 228 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.339/1.339, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.347/2.347, allocations: 409.2 MB / 0.6838 GB, free: 0.9844 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003589/0.0003589, allocations: 12 kB / 0.8375 GB, free: 6.551 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7987/0.7991, allocations: 146.8 MB / 0.9809 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.0516/0.8508, allocations: 52.39 MB / 1.032 GB, free: 1.785 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01776/0.8686, allocations: 11.67 MB / 1.043 GB, free: 6.094 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002656/0.8713, allocations: 51.69 kB / 1.043 GB, free: 6.043 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.003393/0.8747, allocations: 0.8396 MB / 1.044 GB, free: 5.199 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.007977/0.8827, allocations: 2.17 MB / 1.046 GB, free: 3.023 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.005394/0.8881, allocations: 1.623 MB / 1.048 GB, free: 1.426 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.005715/0.8939, allocations: 2.546 MB / 1.05 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002434/0.8963, allocations: 1.084 MB / 1.052 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003661/0.9, allocations: 1.222 MB / 1.053 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001844/0.9019, allocations: 0.8714 MB / 1.054 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0002446/0.9021, allocations: 68 kB / 1.054 GB, free: 11.6 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003103/0.9053, allocations: 0.8543 MB / 1.054 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0004702/0.9057, allocations: 354.7 kB / 1.055 GB, free: 10.4 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0006694/0.9064, allocations: 380.8 kB / 1.055 GB, free: 10.02 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.00302/0.9094, allocations: 2.159 MB / 1.057 GB, free: 7.855 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.9095, allocations: 0 / 1.057 GB, free: 7.855 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.995e-06/0.9095, allocations: 0 / 1.057 GB, free: 7.855 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.739e-05/0.9095, allocations: 4 kB / 1.057 GB, free: 7.852 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.005014/0.9145, allocations: 2.014 MB / 1.059 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/0.9146, allocations: 8.031 kB / 1.059 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003642/0.915, allocations: 168.6 kB / 1.059 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001488/0.9165, allocations: 357.3 kB / 1.06 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002894/0.9194, allocations: 1.415 MB / 1.061 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001814/0.9196, allocations: 153.5 kB / 1.061 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000166/0.9198, allocations: 112 kB / 1.061 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002954/0.9227, allocations: 1.422 MB / 1.063 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.283e-05/0.9228, allocations: 7.906 kB / 1.063 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/0.9229, allocations: 55.94 kB / 1.063 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.912e-05/0.9229, allocations: 31.94 kB / 1.063 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003302/0.9263, allocations: 1.327 MB / 1.064 GB, free: 0.5742 MB / 0.8106 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.01009/0.9364, allocations: 6.398 MB / 1.07 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002241/0.9386, allocations: 1.145 MB / 1.072 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001015/0.9397, allocations: 1.152 MB / 1.073 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.898e-05/0.9397, allocations: 47.88 kB / 1.073 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=77): time 6.022e-06/0.9398, allocations: 0 / 1.073 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of matching and sorting (n=77): time 0.004334/0.9441, allocations: 1.581 MB / 1.074 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.741e-05/0.9442, allocations: 111.5 kB / 1.074 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00194/0.9461, allocations: 1.311 MB / 1.076 GB, free: 4 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001482/0.9463, allocations: 45.7 kB / 1.076 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007777/0.9471, allocations: 0.7163 MB / 1.076 GB, free: 3.223 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003682/0.9475, allocations: 264.2 kB / 1.077 GB, free: 2.961 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.313e-05/0.9475, allocations: 16 kB / 1.077 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000174/0.9477, allocations: 341.9 kB / 1.077 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.9489, allocations: 489.7 kB / 1.077 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001423/0.9504, allocations: 0.7074 MB / 1.078 GB, free: 1.328 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.9517, allocations: 0.526 MB / 1.079 GB, free: 0.8047 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.9517, allocations: 4 kB / 1.079 GB, free: 0.8008 MB / 0.8262 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003195/0.9549, allocations: 1.339 MB / 1.08 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.00101/0.9559, allocations: 1.878 MB / 1.082 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/0.9559, allocations: 4 kB / 1.082 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.79e-05/0.956, allocations: 12 kB / 1.082 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.9572, allocations: 299.6 kB / 1.082 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.291e-05/0.9573, allocations: 11.94 kB / 1.082 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/0.9589, allocations: 219 kB / 1.082 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.817e-05/0.959, allocations: 43.98 kB / 1.082 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.959, allocations: 5.562 kB / 1.082 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002779/0.9618, allocations: 1.175 MB / 1.084 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.9619, allocations: 11.89 kB / 1.084 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.9619, allocations: 8 kB / 1.084 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/0.9631, allocations: 296.2 kB / 1.084 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/0.9631, allocations: 12 kB / 1.084 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/0.9646, allocations: 211 kB / 1.084 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.9e-05/0.9647, allocations: 36 kB / 1.084 GB, free: 11.07 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 2 (reaToInt.y,intGreThr.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008998/0.9656, allocations: 468.8 kB / 1.085 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002515/0.9659, allocations: 146.2 kB / 1.085 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003204/0.9691, allocations: 1.478 MB / 1.086 GB, free: 8.945 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.978e-05/0.9691, allocations: 8 kB / 1.086 GB, free: 8.938 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.9691, allocations: 0 / 1.086 GB, free: 8.938 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002416/0.9716, allocations: 1.109 MB / 1.087 GB, free: 7.797 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005768/0.9773, allocations: 2.911 MB / 1.09 GB, free: 4.773 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/0.9774, allocations: 4 kB / 1.09 GB, free: 4.77 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009564/0.9783, allocations: 216.2 kB / 1.09 GB, free: 4.559 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.666e-05/0.9784, allocations: 15.95 kB / 1.09 GB, free: 4.543 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.705e-05/0.9784, allocations: 27.98 kB / 1.09 GB, free: 4.516 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.216e-05/0.9784, allocations: 11.94 kB / 1.09 GB, free: 4.504 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.9785, allocations: 4 kB / 1.09 GB, free: 4.5 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004489/0.983, allocations: 2.3 MB / 1.093 GB, free: 1.953 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009078/0.9839, allocations: 382.8 kB / 1.093 GB, free: 1.559 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002115/0.9841, allocations: 20.06 kB / 1.093 GB, free: 1.539 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001229/0.9853, allocations: 163.7 kB / 1.093 GB, free: 1.379 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001791/0.9855, allocations: 84.34 kB / 1.093 GB, free: 1.297 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.502e-05/0.9856, allocations: 43.97 kB / 1.093 GB, free: 1.254 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001361/0.987, allocations: 0.9364 MB / 1.094 GB, free: 328 kB / 0.8419 GB Notification: Performance of sort global known variables: time 4.01e-07/0.987, allocations: 0 / 1.094 GB, free: 328 kB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002084/0.9891, allocations: 0.799 MB / 1.095 GB, free: 15.52 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (heaPum.vol1.dynBal.U,heaPum.vol2.dynBal.U) * Number of discrete variables: 2 (reaToInt.y,intGreThr.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005968/0.9951, allocations: 4.357 MB / 1.099 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.004275/0.9994, allocations: 1.787 MB / 1.101 GB, free: 9.23 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/0.9994, allocations: 8.125 kB / 1.101 GB, free: 9.223 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001513/1.001, allocations: 0.6326 MB / 1.102 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003489/1.004, allocations: 0.6618 MB / 1.102 GB, free: 7.938 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007974/1.012, allocations: 7.408 MB / 1.109 GB, free: 248 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001043/1.013, allocations: 1.315 MB / 1.111 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.002129/1.016, allocations: 378.7 kB / 1.111 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009845/1.017, allocations: 0.6164 MB / 1.112 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of SimCode: time 8.71e-07/1.017, allocations: 0 / 1.112 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09336/1.11, allocations: 40.46 MB / 1.151 GB, free: 5.969 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000198/1.11, allocations: 236.1 kB / 1.151 GB, free: 5.727 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.392/4.502, allocations: 0 / 1.151 GB, free: 5.727 MB / 0.9044 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat does not exist to compare? outputFormat=mat