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.001123/0.001123, 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.001138/0.001139, allocations: 195 kB / 16.53 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.348/1.348, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002109/0.002109, allocations: 286.9 kB / 290.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9697/0.9697, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001709/0.001709, allocations: 104 kB / 0.5953 GB, free: 27.83 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1641/0.1658, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.4944/0.6602, allocations: 176 MB / 0.8522 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01598/0.6763, allocations: 12.73 MB / 0.8646 GB, free: 1.367 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001534/0.6778, allocations: 32.59 kB / 0.8646 GB, free: 1.355 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001454/0.6794, allocations: 444.4 kB / 0.8651 GB, free: 0.9766 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003626/0.683, allocations: 0.9691 MB / 0.866 GB, free: 236 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004513/0.6875, allocations: 1.842 MB / 0.8678 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0027/0.6903, allocations: 2.396 MB / 0.8702 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002225/0.6925, allocations: 1.63 MB / 0.8718 GB, free: 12.37 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003717/0.6962, allocations: 1.405 MB / 0.8731 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001355/0.6976, allocations: 0.867 MB / 0.874 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003996/0.698, allocations: 170.1 kB / 0.8741 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002971/0.701, allocations: 1.402 MB / 0.8755 GB, free: 10.28 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005867/0.7016, allocations: 489.8 kB / 0.876 GB, free: 9.914 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001244/0.7028, allocations: 0.852 MB / 0.8768 GB, free: 9.301 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004228/0.7071, allocations: 2.711 MB / 0.8794 GB, free: 7.43 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.7071, allocations: 0 / 0.8794 GB, free: 7.43 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.763e-06/0.7071, allocations: 0 / 0.8794 GB, free: 7.43 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.115e-05/0.7072, allocations: 0 / 0.8794 GB, free: 7.43 MB / 0.5919 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.00445/0.7116, allocations: 2.019 MB / 0.8814 GB, free: 5.902 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.734e-05/0.7117, allocations: 7.969 kB / 0.8814 GB, free: 5.902 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004528/0.7122, allocations: 208.3 kB / 0.8816 GB, free: 5.738 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002727/0.7149, allocations: 411.1 kB / 0.882 GB, free: 5.551 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001541/0.7165, allocations: 0.9859 MB / 0.883 GB, free: 4.77 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.554e-05/0.7166, allocations: 101.5 kB / 0.8831 GB, free: 4.723 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001506/0.7167, allocations: 132.3 kB / 0.8832 GB, free: 4.68 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00241/0.7191, allocations: 1.521 MB / 0.8847 GB, free: 3.707 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.7192, allocations: 0 / 0.8847 GB, free: 3.707 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001283/0.7193, allocations: 63 kB / 0.8847 GB, free: 3.66 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.792e-05/0.7193, allocations: 32.78 kB / 0.8848 GB, free: 3.66 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002639/0.722, allocations: 1.587 MB / 0.8863 GB, free: 2.895 MB / 0.5919 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.007166/0.7292, allocations: 5.087 MB / 0.8913 GB, free: 14.7 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002722/0.7319, allocations: 1.516 MB / 0.8928 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008849/0.7328, allocations: 486.4 kB / 0.8932 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007138/0.7336, allocations: 429.3 kB / 0.8937 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001211/0.7348, allocations: 0.6917 MB / 0.8943 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=107): time 3.296e-06/0.7348, allocations: 0 / 0.8943 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of matching and sorting (n=107): time 0.00432/0.7391, allocations: 1.668 MB / 0.896 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.679e-05/0.7392, allocations: 196.9 kB / 0.8961 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001257/0.7405, allocations: 0.8882 MB / 0.897 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.7406, allocations: 49.7 kB / 0.8971 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004556/0.7411, allocations: 0.5936 MB / 0.8976 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003099/0.7414, allocations: 358.8 kB / 0.898 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003134/0.7417, allocations: 194.5 kB / 0.8982 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001261/0.7419, allocations: 349.9 kB / 0.8985 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007773/0.7426, allocations: 374.8 kB / 0.8989 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000953/0.7436, allocations: 0.5632 MB / 0.8994 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001748/0.7454, allocations: 0.9371 MB / 0.9003 GB, free: 5.199 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.7454, allocations: 0 / 0.9003 GB, free: 5.199 MB / 0.6075 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002695/0.7481, allocations: 1.188 MB / 0.9015 GB, free: 4 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.7481, allocations: 4 kB / 0.9015 GB, free: 3.996 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.7481, allocations: 4 kB / 0.9015 GB, free: 3.992 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006698/0.7488, allocations: 88.86 kB / 0.9016 GB, free: 3.902 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.7499, allocations: 243.7 kB / 0.9018 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002164/0.7521, allocations: 1.66 MB / 0.9034 GB, free: 1.859 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.7532, allocations: 127 kB / 0.9035 GB, free: 1.734 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.45e-05/0.7533, allocations: 51.91 kB / 0.9036 GB, free: 1.684 MB / 0.6075 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.0006587/0.7539, allocations: 338.8 kB / 0.9039 GB, free: 1.344 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003486/0.7543, allocations: 126.5 kB / 0.904 GB, free: 1.219 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003295/0.7576, allocations: 1.437 MB / 0.9054 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.7576, allocations: 16 kB / 0.9055 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.7576, allocations: 0 / 0.9055 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.7577, allocations: 7.969 kB / 0.9055 GB, free: 15.75 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 postOpt removeSimpleEquations (simulation): time 0.005003/0.7627, allocations: 2.87 MB / 0.9083 GB, free: 12.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.7627, allocations: 0 / 0.9083 GB, free: 12.8 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009933/0.7637, allocations: 227.7 kB / 0.9085 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000451/0.7641, allocations: 72.77 kB / 0.9086 GB, free: 12.5 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.469e-05/0.7642, allocations: 43.91 kB / 0.9086 GB, free: 12.46 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001833/0.7661, allocations: 1.67 MB / 0.9102 GB, free: 10.64 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.7661, allocations: 144 / 0.9102 GB, free: 10.64 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00268/0.7688, allocations: 1.32 MB / 0.9115 GB, free: 9.297 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005955/0.7694, allocations: 363.1 kB / 0.9119 GB, free: 8.922 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002163/0.7696, allocations: 23.94 kB / 0.9119 GB, free: 8.898 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009841/0.7706, allocations: 85.48 kB / 0.912 GB, free: 8.816 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.7708, allocations: 84.88 kB / 0.9121 GB, free: 8.734 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/0.7709, allocations: 51.95 kB / 0.9121 GB, free: 8.684 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0008472/0.7717, allocations: 0.615 MB / 0.9127 GB, free: 8.059 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.61e-07/0.7718, allocations: 4 kB / 0.9127 GB, free: 8.055 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001208/0.773, allocations: 486.8 kB / 0.9132 GB, free: 7.578 MB / 0.6231 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.004251/0.7772, allocations: 2.473 MB / 0.9156 GB, free: 5.266 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003359/0.7806, allocations: 1.432 MB / 0.917 GB, free: 3.82 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.7806, allocations: 4.75 kB / 0.917 GB, free: 3.816 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001194/0.7818, allocations: 0.6875 MB / 0.9177 GB, free: 3.117 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002184/0.784, allocations: 0.5161 MB / 0.9182 GB, free: 2.633 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0156/0.7996, allocations: 9.539 MB / 0.9275 GB, free: 8.719 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007992/0.8005, allocations: 1.205 MB / 0.9287 GB, free: 7.484 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001489/0.802, allocations: 393.8 kB / 0.929 GB, free: 7.098 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007828/0.8028, allocations: 0.5656 MB / 0.9296 GB, free: 6.531 MB / 0.6387 GB Notification: Performance of SimCode: time 5.81e-07/0.8028, allocations: 0 / 0.9296 GB, free: 6.531 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08161/0.8844, allocations: 33.16 MB / 0.962 GB, free: 5.91 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/12.28, allocations: 7.125 kB / 0.962 GB, free: 5.906 MB / 0.67 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)