Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_y.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatPumps_Examples_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatPumps_Examples_Carnot_y",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.001374/0.001374, allocations: 99.86 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.002034/0.002034, allocations: 177.3 kB / 15.95 MB, free: 216 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.383/1.383, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.013/1.013, allocations: 143.3 MB / 434.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003418/0.0003418, allocations: 8 kB / 0.5159 GB, free: 11.24 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1826/0.183, allocations: 83.41 MB / 0.5973 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_y): time 0.3855/0.5685, allocations: 62.96 MB / 0.6588 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01864/0.5872, allocations: 13 MB / 0.6715 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00296/0.5902, allocations: 52.94 kB / 0.6716 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002811/0.593, allocations: 0.7477 MB / 0.6723 GB, free: 10.74 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.009471/0.6025, allocations: 2.412 MB / 0.6747 GB, free: 9.168 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005596/0.6081, allocations: 1.526 MB / 0.6762 GB, free: 8.453 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.006628/0.6148, allocations: 2.513 MB / 0.6786 GB, free: 7.086 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002504/0.6173, allocations: 1.047 MB / 0.6796 GB, free: 6.684 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003753/0.6211, allocations: 1.167 MB / 0.6808 GB, free: 6.105 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002537/0.6237, allocations: 0.785 MB / 0.6815 GB, free: 5.766 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002996/0.624, allocations: 54.94 kB / 0.6816 GB, free: 5.766 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003957/0.6279, allocations: 0.8321 MB / 0.6824 GB, free: 5.539 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0004167/0.6284, allocations: 264.7 kB / 0.6827 GB, free: 5.402 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0007899/0.6292, allocations: 359.7 kB / 0.683 GB, free: 5.195 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.004024/0.6332, allocations: 2.153 MB / 0.6851 GB, free: 4.703 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.6332, allocations: 0 / 0.6851 GB, free: 4.703 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.545e-06/0.6332, allocations: 0 / 0.6851 GB, free: 4.703 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.629e-05/0.6333, allocations: 0 / 0.6851 GB, free: 4.703 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.004677/0.638, allocations: 1.795 MB / 0.6869 GB, free: 3.531 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.638, allocations: 8.906 kB / 0.6869 GB, free: 3.531 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003018/0.6383, allocations: 147.6 kB / 0.687 GB, free: 3.434 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009743/0.6393, allocations: 240 kB / 0.6872 GB, free: 3.344 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00326/0.6426, allocations: 1.382 MB / 0.6886 GB, free: 2.508 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.385e-05/0.6427, allocations: 80.53 kB / 0.6887 GB, free: 2.473 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001851/0.6429, allocations: 109.3 kB / 0.6888 GB, free: 2.434 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002699/0.6456, allocations: 1.102 MB / 0.6898 GB, free: 1.941 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.911e-05/0.6456, allocations: 5.891 kB / 0.6898 GB, free: 1.938 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001536/0.6458, allocations: 44.81 kB / 0.6899 GB, free: 1.902 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-05/0.6459, allocations: 25.36 kB / 0.6899 GB, free: 1.902 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002391/0.6483, allocations: 0.9231 MB / 0.6908 GB, free: 1.594 MB / 0.5137 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.008546/0.6568, allocations: 4.968 MB / 0.6957 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001588/0.6584, allocations: 0.6388 MB / 0.6963 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000717/0.6592, allocations: 0.8183 MB / 0.6971 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/0.6592, allocations: 43.09 kB / 0.6971 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=61): time 3.126e-06/0.6592, allocations: 4 kB / 0.6971 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=61): time 0.008509/0.6678, allocations: 1.884 MB / 0.699 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.6679, allocations: 61.59 kB / 0.699 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002556/0.6704, allocations: 1.25 MB / 0.7002 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001734/0.6706, allocations: 38.45 kB / 0.7003 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006331/0.6712, allocations: 0.6015 MB / 0.7009 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002941/0.6715, allocations: 218.1 kB / 0.7011 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.073e-05/0.6716, allocations: 14.38 kB / 0.7011 GB, free: 11.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001531/0.6718, allocations: 333.7 kB / 0.7014 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007659/0.6725, allocations: 294.4 kB / 0.7017 GB, free: 10.69 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009494/0.6735, allocations: 0.5058 MB / 0.7022 GB, free: 10.33 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000807/0.6743, allocations: 361 kB / 0.7025 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.6743, allocations: 1.125 kB / 0.7025 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.005121/0.6795, allocations: 1.399 MB / 0.7039 GB, free: 9.504 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006562/0.6801, allocations: 1.42 MB / 0.7053 GB, free: 8.008 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.6802, allocations: 8.906 kB / 0.7053 GB, free: 8.004 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006322/0.6808, allocations: 157.9 kB / 0.7054 GB, free: 7.926 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006483/0.6815, allocations: 160.3 kB / 0.7056 GB, free: 7.891 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000916/0.6824, allocations: 0.7103 MB / 0.7063 GB, free: 7.273 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0015/0.6839, allocations: 169 kB / 0.7065 GB, free: 7.18 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.348e-05/0.684, allocations: 34.67 kB / 0.7065 GB, free: 7.168 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.081e-05/0.684, allocations: 12.53 kB / 0.7065 GB, free: 7.16 MB / 0.5294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004515/0.6885, allocations: 1.243 MB / 0.7077 GB, free: 6.602 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.6885, allocations: 4 kB / 0.7077 GB, free: 6.602 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004947/0.689, allocations: 150.5 kB / 0.7079 GB, free: 6.531 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006143/0.6897, allocations: 160.8 kB / 0.708 GB, free: 6.496 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008421/0.6905, allocations: 0.7181 MB / 0.7087 GB, free: 5.871 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/0.692, allocations: 163.6 kB / 0.7089 GB, free: 5.781 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.433e-05/0.6921, allocations: 34.31 kB / 0.7089 GB, free: 5.773 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (78): * Single equations (assignments): 77 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0009551/0.693, allocations: 419.3 kB / 0.7093 GB, free: 5.441 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002749/0.6933, allocations: 138.4 kB / 0.7094 GB, free: 5.367 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004892/0.6982, allocations: 1.403 MB / 0.7108 GB, free: 4.652 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.183e-05/0.6983, allocations: 11 kB / 0.7108 GB, free: 4.648 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.6983, allocations: 0 / 0.7108 GB, free: 4.648 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004333/0.7026, allocations: 1.232 MB / 0.712 GB, free: 4.004 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007538/0.7102, allocations: 2.769 MB / 0.7147 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.7102, allocations: 4.656 kB / 0.7147 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004996/0.7107, allocations: 122.1 kB / 0.7148 GB, free: 2.129 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005196/0.7113, allocations: 149.1 kB / 0.715 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.703e-05/0.7113, allocations: 16.25 kB / 0.715 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005061/0.7164, allocations: 2.545 MB / 0.7175 GB, free: 15.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/0.7164, allocations: 8 kB / 0.7175 GB, free: 15.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005789/0.7222, allocations: 2.054 MB / 0.7195 GB, free: 13.53 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001078/0.7233, allocations: 355 kB / 0.7198 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001928/0.7235, allocations: 16 kB / 0.7199 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009407/0.7245, allocations: 91.91 kB / 0.7199 GB, free: 13.05 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.7246, allocations: 56.27 kB / 0.72 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.558e-05/0.7247, allocations: 35.97 kB / 0.72 GB, free: 12.96 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001498/0.7262, allocations: 0.8975 MB / 0.7209 GB, free: 12.07 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7262, allocations: 7.938 kB / 0.7209 GB, free: 12.06 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002307/0.7285, allocations: 0.7174 MB / 0.7216 GB, free: 11.34 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * 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 (55): * Single equations (assignments): 50 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.006764/0.7353, allocations: 3.872 MB / 0.7254 GB, free: 7.352 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002776/0.7381, allocations: 1.167 MB / 0.7265 GB, free: 6.191 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/0.7382, allocations: 0 / 0.7265 GB, free: 6.191 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.7397, allocations: 0.5956 MB / 0.7271 GB, free: 5.586 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00404/0.7437, allocations: 0.7487 MB / 0.7278 GB, free: 4.844 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007708/0.7515, allocations: 5.924 MB / 0.7336 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008491/0.7524, allocations: 1.214 MB / 0.7348 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001625/0.754, allocations: 309 kB / 0.7351 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007547/0.7548, allocations: 0.5071 MB / 0.7356 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of SimCode: time 2.505e-06/0.7548, allocations: 0 / 0.7356 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09578/0.8506, allocations: 42.37 MB / 0.777 GB, free: 2.949 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002768/0.8509, allocations: 265.8 kB / 0.7772 GB, free: 2.605 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.913/3.764, allocations: 0 / 0.7772 GB, free: 2.605 MB / 0.5919 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_y.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatPumps_Examples_Carnot_y_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatPumps_Examples_Carnot_y.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1) Environment - environmentSimulation: