Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData",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.001282/0.001282, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 198.8 kB / 16.54 MB, free: 6.664 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.379/1.379, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002434/0.002434, allocations: 278.5 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.057/1.057, allocations: 178.6 MB / 0.5073 GB, free: 4.578 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002606/0.002606, allocations: 102.8 kB / 0.6065 GB, free: 24.84 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1608/0.1634, allocations: 89.13 MB / 0.6936 GB, free: 4.238 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.4952/0.6587, allocations: 176.8 MB / 0.8662 GB, free: 6.211 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01661/0.6753, allocations: 12.82 MB / 0.8787 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00124/0.6766, allocations: 31.53 kB / 0.8788 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001271/0.6779, allocations: 472 kB / 0.8792 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.002951/0.6809, allocations: 1.03 MB / 0.8802 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.00442/0.6853, allocations: 1.869 MB / 0.8821 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003012/0.6883, allocations: 2.52 MB / 0.8845 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002205/0.6905, allocations: 1.608 MB / 0.8861 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00415/0.6947, allocations: 1.4 MB / 0.8875 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001394/0.6961, allocations: 0.8792 MB / 0.8883 GB, free: 4.137 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0002683/0.6964, allocations: 172 kB / 0.8885 GB, free: 3.969 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002933/0.6993, allocations: 1.396 MB / 0.8898 GB, free: 2.57 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0004898/0.6998, allocations: 490.5 kB / 0.8903 GB, free: 2.09 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001063/0.7009, allocations: 0.8786 MB / 0.8912 GB, free: 1.207 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.004088/0.705, allocations: 2.754 MB / 0.8939 GB, free: 14.45 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.705, allocations: 0 / 0.8939 GB, free: 14.45 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.663e-06/0.705, allocations: 4 kB / 0.8939 GB, free: 14.44 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.298e-05/0.7051, allocations: 0 / 0.8939 GB, free: 14.44 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 346 * Number of variables: 346 Notification: Performance of Generate backend data structure: time 0.003798/0.7089, allocations: 2.036 MB / 0.8958 GB, free: 12.34 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.7089, allocations: 12.03 kB / 0.8959 GB, free: 12.33 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002373/0.7092, allocations: 202.7 kB / 0.896 GB, free: 12.12 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002551/0.7117, allocations: 401.6 kB / 0.8964 GB, free: 11.73 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001678/0.7134, allocations: 0.9994 MB / 0.8974 GB, free: 10.69 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.338e-05/0.7135, allocations: 114.6 kB / 0.8975 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000181/0.7137, allocations: 132 kB / 0.8976 GB, free: 10.45 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002682/0.7164, allocations: 1.513 MB / 0.8991 GB, free: 8.855 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.913e-05/0.7164, allocations: 3.938 kB / 0.8991 GB, free: 8.852 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001389/0.7166, allocations: 68 kB / 0.8992 GB, free: 8.785 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.828e-05/0.7166, allocations: 32 kB / 0.8992 GB, free: 8.754 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002795/0.7194, allocations: 1.575 MB / 0.9008 GB, free: 7.168 MB / 0.6231 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.007693/0.7271, allocations: 5.354 MB / 0.906 GB, free: 1.488 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002708/0.7299, allocations: 1.518 MB / 0.9075 GB, free: 15.89 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008919/0.7308, allocations: 492.6 kB / 0.9079 GB, free: 15.42 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007514/0.7315, allocations: 417.3 kB / 0.9083 GB, free: 14.94 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001244/0.7328, allocations: 0.6996 MB / 0.909 GB, free: 14.21 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=107): time 2.665e-06/0.7328, allocations: 0 / 0.909 GB, free: 14.21 MB / 0.6387 GB Notification: Performance of matching and sorting (n=107): time 0.004457/0.7373, allocations: 1.664 MB / 0.9106 GB, free: 12.53 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.7374, allocations: 200.9 kB / 0.9108 GB, free: 12.29 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001311/0.7387, allocations: 0.8883 MB / 0.9117 GB, free: 11.38 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.000107/0.7388, allocations: 45.7 kB / 0.9117 GB, free: 11.32 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005375/0.7394, allocations: 0.5974 MB / 0.9123 GB, free: 10.72 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003286/0.7397, allocations: 354.9 kB / 0.9127 GB, free: 10.37 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003191/0.74, allocations: 198.5 kB / 0.9129 GB, free: 10.17 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001578/0.7402, allocations: 341.9 kB / 0.9132 GB, free: 9.828 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007948/0.741, allocations: 381.7 kB / 0.9135 GB, free: 9.457 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009901/0.742, allocations: 0.5601 MB / 0.9141 GB, free: 8.828 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001781/0.7438, allocations: 0.9332 MB / 0.915 GB, free: 7.855 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.7438, allocations: 0 / 0.915 GB, free: 7.855 MB / 0.6387 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002849/0.7467, allocations: 1.188 MB / 0.9162 GB, free: 6.656 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.7467, allocations: 4 kB / 0.9162 GB, free: 6.652 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.7467, allocations: 8 kB / 0.9162 GB, free: 6.645 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006083/0.7473, allocations: 89.12 kB / 0.9163 GB, free: 6.555 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.7485, allocations: 247.6 kB / 0.9165 GB, free: 6.312 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002508/0.751, allocations: 1.656 MB / 0.9181 GB, free: 4.516 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001194/0.7522, allocations: 136.6 kB / 0.9182 GB, free: 4.383 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/0.7523, allocations: 43.97 kB / 0.9183 GB, free: 4.34 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 15 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0007552/0.7531, allocations: 345.5 kB / 0.9186 GB, free: 3.992 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003662/0.7535, allocations: 118.6 kB / 0.9187 GB, free: 3.875 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003541/0.757, allocations: 1.437 MB / 0.9201 GB, free: 2.426 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/0.7571, allocations: 12 kB / 0.9201 GB, free: 2.414 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.7571, allocations: 0 / 0.9201 GB, free: 2.414 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.7571, allocations: 3.984 kB / 0.9202 GB, free: 2.41 MB / 0.6387 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 postOpt removeSimpleEquations (simulation): time 0.005563/0.7627, allocations: 2.874 MB / 0.923 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.7627, allocations: 0 / 0.923 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.7637, allocations: 219.7 kB / 0.9232 GB, free: 15.23 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004863/0.7642, allocations: 76.78 kB / 0.9232 GB, free: 15.16 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-05/0.7643, allocations: 31.92 kB / 0.9233 GB, free: 15.12 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002187/0.7665, allocations: 1.67 MB / 0.9249 GB, free: 13.31 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.7665, allocations: 0 / 0.9249 GB, free: 13.31 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003019/0.7696, allocations: 1.328 MB / 0.9262 GB, free: 11.97 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008015/0.7704, allocations: 359.2 kB / 0.9265 GB, free: 11.6 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00027/0.7707, allocations: 27.98 kB / 0.9266 GB, free: 11.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.7717, allocations: 83.92 kB / 0.9266 GB, free: 11.49 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/0.7719, allocations: 84.88 kB / 0.9267 GB, free: 11.41 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000127/0.7721, allocations: 47.97 kB / 0.9268 GB, free: 11.36 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.00108/0.7732, allocations: 0.6305 MB / 0.9274 GB, free: 10.72 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.51e-07/0.7732, allocations: 0 / 0.9274 GB, free: 10.72 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001509/0.7747, allocations: 490.8 kB / 0.9279 GB, free: 10.24 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005481/0.7802, allocations: 2.481 MB / 0.9303 GB, free: 7.914 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.003695/0.7839, allocations: 1.433 MB / 0.9317 GB, free: 6.473 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.7839, allocations: 0 / 0.9317 GB, free: 6.473 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001439/0.7854, allocations: 0.6797 MB / 0.9323 GB, free: 5.777 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002829/0.7882, allocations: 0.5388 MB / 0.9329 GB, free: 5.27 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01756/0.8058, allocations: 9.427 MB / 0.9421 GB, free: 11.46 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001112/0.8069, allocations: 1.209 MB / 0.9433 GB, free: 10.22 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001598/0.8086, allocations: 381.9 kB / 0.9436 GB, free: 9.844 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009217/0.8095, allocations: 0.5809 MB / 0.9442 GB, free: 9.266 MB / 0.67 GB Notification: Performance of SimCode: time 8.11e-07/0.8095, allocations: 0 / 0.9442 GB, free: 9.266 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08027/0.8898, allocations: 33.72 MB / 0.9771 GB, free: 8.094 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.71, allocations: 12 kB / 0.9771 GB, free: 8.082 MB / 0.7012 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData.fmu > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)