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: translateModel(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData") translateModel(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001826/0.001826, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001533/0.001533, allocations: 196 kB / 16.14 MB, free: 6.715 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.559/1.559, allocations: 222.9 MB / 239.8 MB, free: 4.656 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002573/0.002572, allocations: 293.7 kB / 290.2 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.125/1.125, allocations: 178.6 MB / 0.5068 GB, free: 4.766 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004214/0.004214, allocations: 104.5 kB / 0.6057 GB, free: 25.26 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.2189, allocations: 89.15 MB / 0.6928 GB, free: 4.84 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.5072/0.7262, allocations: 174.5 MB / 0.8632 GB, free: 8.52 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0215/0.7477, allocations: 12.84 MB / 0.8757 GB, free: 14.23 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001992/0.7497, allocations: 31.91 kB / 0.8757 GB, free: 14.22 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001662/0.7515, allocations: 386.9 kB / 0.8761 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.003925/0.7554, allocations: 0.9236 MB / 0.877 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005579/0.761, allocations: 1.671 MB / 0.8786 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.004515/0.7656, allocations: 2.867 MB / 0.8814 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003057/0.7686, allocations: 1.459 MB / 0.8829 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00594/0.7746, allocations: 1.262 MB / 0.8841 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002026/0.7766, allocations: 0.8673 MB / 0.8849 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0003203/0.777, allocations: 92 kB / 0.885 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003825/0.7808, allocations: 1.466 MB / 0.8865 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0005481/0.7814, allocations: 414.5 kB / 0.8869 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001271/0.7826, allocations: 0.7966 MB / 0.8876 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.004854/0.7875, allocations: 2.734 MB / 0.8903 GB, free: 1.859 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.7875, allocations: 3.984 kB / 0.8903 GB, free: 1.855 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.352e-06/0.7875, allocations: 4 kB / 0.8903 GB, free: 1.852 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.859e-05/0.7876, allocations: 0 / 0.8903 GB, free: 1.852 MB / 0.6075 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.004186/0.7918, allocations: 2.024 MB / 0.8923 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.7918, allocations: 12.03 kB / 0.8923 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002831/0.7947, allocations: 405.5 kB / 0.8927 GB, free: 15.35 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001713/0.7964, allocations: 0.9876 MB / 0.8937 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.715e-05/0.7965, allocations: 102.7 kB / 0.8938 GB, free: 14.22 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001933/0.7967, allocations: 132 kB / 0.8939 GB, free: 14.09 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002928/0.7997, allocations: 1.524 MB / 0.8954 GB, free: 12.49 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.642e-05/0.7997, allocations: 4 kB / 0.8954 GB, free: 12.49 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001432/0.7998, allocations: 56 kB / 0.8954 GB, free: 12.43 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.341e-05/0.7999, allocations: 36 kB / 0.8955 GB, free: 12.4 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002999/0.8029, allocations: 1.583 MB / 0.897 GB, free: 10.81 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.008484/0.8114, allocations: 5.32 MB / 0.9022 GB, free: 5.164 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002916/0.8143, allocations: 1.523 MB / 0.9037 GB, free: 3.559 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009286/0.8153, allocations: 483.6 kB / 0.9042 GB, free: 3.086 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008568/0.8161, allocations: 432.1 kB / 0.9046 GB, free: 2.594 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001418/0.8176, allocations: 0.6995 MB / 0.9052 GB, free: 1.875 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=107): time 3.085e-06/0.8176, allocations: 0 / 0.9052 GB, free: 1.875 MB / 0.6231 GB Notification: Performance of matching and sorting (n=107): time 0.004901/0.8225, allocations: 1.664 MB / 0.9069 GB, free: 188 kB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000172/0.8227, allocations: 200.8 kB / 0.9071 GB, free: 15.94 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001402/0.8241, allocations: 0.892 MB / 0.9079 GB, free: 15.03 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001192/0.8242, allocations: 49.7 kB / 0.908 GB, free: 14.97 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006746/0.8249, allocations: 0.5858 MB / 0.9086 GB, free: 14.38 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003559/0.8253, allocations: 354.9 kB / 0.9089 GB, free: 14.03 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003758/0.8256, allocations: 218.7 kB / 0.9091 GB, free: 13.81 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0002014/0.8259, allocations: 345.9 kB / 0.9094 GB, free: 13.46 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008665/0.8267, allocations: 402.4 kB / 0.9098 GB, free: 13.07 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001045/0.8278, allocations: 0.5668 MB / 0.9104 GB, free: 12.45 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00192/0.8297, allocations: 0.9566 MB / 0.9113 GB, free: 11.46 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.8297, allocations: 4 kB / 0.9113 GB, free: 11.45 MB / 0.6387 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003092/0.8328, allocations: 1.231 MB / 0.9125 GB, free: 10.21 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.8329, allocations: 12.28 kB / 0.9125 GB, free: 10.2 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.8329, allocations: 8 kB / 0.9125 GB, free: 10.19 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006723/0.8336, allocations: 80.78 kB / 0.9126 GB, free: 10.11 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/0.8348, allocations: 259.6 kB / 0.9129 GB, free: 9.852 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002386/0.8372, allocations: 1.542 MB / 0.9144 GB, free: 8.176 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/0.8385, allocations: 162.8 kB / 0.9145 GB, free: 8.016 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001247/0.8387, allocations: 51.97 kB / 0.9146 GB, free: 7.965 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: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,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 (131): * Single equations (assignments): 130 * 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.0007814/0.8394, allocations: 339.3 kB / 0.9149 GB, free: 7.625 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002788/0.8397, allocations: 122.5 kB / 0.915 GB, free: 7.504 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003453/0.8432, allocations: 1.437 MB / 0.9164 GB, free: 6.055 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.8432, allocations: 16 kB / 0.9164 GB, free: 6.039 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.8432, allocations: 3.938 kB / 0.9164 GB, free: 6.035 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.8432, allocations: 3.984 kB / 0.9164 GB, free: 6.031 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.005664/0.8489, allocations: 2.866 MB / 0.9192 GB, free: 3.082 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.8489, allocations: 0 / 0.9192 GB, free: 3.082 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.85, allocations: 223.7 kB / 0.9194 GB, free: 2.863 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005404/0.8505, allocations: 84.72 kB / 0.9195 GB, free: 2.777 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/0.8507, allocations: 35.97 kB / 0.9196 GB, free: 2.742 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/0.8527, allocations: 1.559 MB / 0.9211 GB, free: 1.043 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.8528, allocations: 0 / 0.9211 GB, free: 1.043 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003009/0.8558, allocations: 1.324 MB / 0.9224 GB, free: 15.7 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006662/0.8564, allocations: 359.1 kB / 0.9227 GB, free: 15.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001841/0.8566, allocations: 27.94 kB / 0.9227 GB, free: 15.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.8577, allocations: 107.6 kB / 0.9228 GB, free: 15.2 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002232/0.8579, allocations: 85.02 kB / 0.9229 GB, free: 15.11 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/0.8581, allocations: 55.94 kB / 0.923 GB, free: 15.05 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001052/0.8591, allocations: 0.6189 MB / 0.9236 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8591, allocations: 0 / 0.9236 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001487/0.8606, allocations: 0.491 MB / 0.9241 GB, free: 13.93 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.002265/0.8629, allocations: 0.6997 MB / 0.9247 GB, free: 13.42 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002677/0.8656, allocations: 1.144 MB / 0.9259 GB, free: 12.27 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.8656, allocations: 0 / 0.9259 GB, free: 12.27 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001375/0.867, allocations: 0.6835 MB / 0.9265 GB, free: 11.57 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002425/0.8694, allocations: 0.4974 MB / 0.927 GB, free: 11.09 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005225/0.8747, allocations: 2.94 MB / 0.9299 GB, free: 8.117 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001078/0.8758, allocations: 1.213 MB / 0.9311 GB, free: 6.867 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001677/0.8775, allocations: 389.8 kB / 0.9314 GB, free: 6.484 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004688/0.8779, allocations: 139.4 kB / 0.9316 GB, free: 6.348 MB / 0.6544 GB Notification: Performance of SimCode: time 6.51e-07/0.878, allocations: 0 / 0.9316 GB, free: 6.348 MB / 0.6544 GB Notification: Performance of Templates: time 0.04778/0.9257, allocations: 23.57 MB / 0.9546 GB, free: 15.11 MB / 0.6856 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)