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.001561/0.001561, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001552/0.001552, allocations: 188.8 kB / 16.25 MB, free: 6.633 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.454/1.454, allocations: 222.9 MB / 239.9 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002601/0.002601, allocations: 282.5 kB / 290.4 MB, free: 2.16 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.104/1.104, allocations: 178.6 MB / 0.5069 GB, free: 4.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002719/0.002719, allocations: 99.84 kB / 0.6059 GB, free: 25.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1832/0.186, allocations: 89.15 MB / 0.693 GB, free: 4.754 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.5581/0.7441, allocations: 174.4 MB / 0.8633 GB, free: 8.754 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01985/0.764, allocations: 12.66 MB / 0.8757 GB, free: 14.54 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001589/0.7656, allocations: 28.25 kB / 0.8757 GB, free: 14.53 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001545/0.7672, allocations: 395 kB / 0.8761 GB, free: 14.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.003151/0.7704, allocations: 0.9302 MB / 0.877 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.004819/0.7752, allocations: 1.707 MB / 0.8786 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003194/0.7784, allocations: 2.525 MB / 0.8811 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0023/0.7807, allocations: 1.597 MB / 0.8827 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005366/0.7861, allocations: 1.423 MB / 0.884 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00144/0.7875, allocations: 0.9042 MB / 0.8849 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0002876/0.7878, allocations: 172 kB / 0.8851 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003002/0.7909, allocations: 1.443 MB / 0.8865 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0005592/0.7914, allocations: 494.5 kB / 0.887 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.00108/0.7925, allocations: 0.8747 MB / 0.8878 GB, free: 4.496 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.004063/0.7966, allocations: 2.8 MB / 0.8906 GB, free: 1.688 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.7966, allocations: 4 kB / 0.8906 GB, free: 1.684 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.402e-06/0.7966, allocations: 0 / 0.8906 GB, free: 1.684 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.502e-05/0.7967, allocations: 0 / 0.8906 GB, free: 1.684 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.00383/0.8005, allocations: 2.028 MB / 0.8925 GB, free: 15.59 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.8005, allocations: 8.031 kB / 0.8926 GB, free: 15.58 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002768/0.8033, allocations: 409.5 kB / 0.8929 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001622/0.805, allocations: 0.9916 MB / 0.8939 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.359e-05/0.8051, allocations: 102.7 kB / 0.894 GB, free: 14.04 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001938/0.8053, allocations: 128 kB / 0.8941 GB, free: 13.92 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002838/0.8081, allocations: 1.524 MB / 0.8956 GB, free: 12.32 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.881e-05/0.8081, allocations: 0 / 0.8956 GB, free: 12.32 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000144/0.8083, allocations: 60 kB / 0.8957 GB, free: 12.26 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.033e-05/0.8083, allocations: 35.94 kB / 0.8957 GB, free: 12.22 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003084/0.8114, allocations: 1.587 MB / 0.8973 GB, free: 10.63 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.008504/0.8199, allocations: 5.316 MB / 0.9025 GB, free: 4.984 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003127/0.8231, allocations: 1.524 MB / 0.9039 GB, free: 3.383 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009578/0.8241, allocations: 479.6 kB / 0.9044 GB, free: 2.914 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008769/0.825, allocations: 432.1 kB / 0.9048 GB, free: 2.422 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001443/0.8264, allocations: 0.6972 MB / 0.9055 GB, free: 1.707 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=107): time 3.016e-06/0.8264, allocations: 0 / 0.9055 GB, free: 1.707 MB / 0.6231 GB Notification: Performance of matching and sorting (n=107): time 0.004605/0.831, allocations: 1.657 MB / 0.9071 GB, free: 24 kB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001516/0.8312, allocations: 200.8 kB / 0.9073 GB, free: 15.78 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001341/0.8325, allocations: 0.8959 MB / 0.9082 GB, free: 14.86 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001189/0.8327, allocations: 49.7 kB / 0.9082 GB, free: 14.81 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006208/0.8333, allocations: 0.5936 MB / 0.9088 GB, free: 14.21 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004457/0.8338, allocations: 358.9 kB / 0.9091 GB, free: 13.85 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00037/0.8341, allocations: 214.7 kB / 0.9094 GB, free: 13.64 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0002634/0.8344, allocations: 353.9 kB / 0.9097 GB, free: 13.29 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008656/0.8353, allocations: 394.4 kB / 0.9101 GB, free: 12.9 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.8363, allocations: 0.5668 MB / 0.9106 GB, free: 12.28 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001874/0.8382, allocations: 0.9605 MB / 0.9116 GB, free: 11.28 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.8382, allocations: 4 kB / 0.9116 GB, free: 11.28 MB / 0.6387 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002994/0.8412, allocations: 1.232 MB / 0.9128 GB, free: 10.03 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.8413, allocations: 11.94 kB / 0.9128 GB, free: 10.02 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.8413, allocations: 4 kB / 0.9128 GB, free: 10.02 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006448/0.8419, allocations: 88.73 kB / 0.9129 GB, free: 9.926 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001202/0.8432, allocations: 251.7 kB / 0.9131 GB, free: 9.68 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002602/0.8458, allocations: 1.652 MB / 0.9147 GB, free: 7.887 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/0.847, allocations: 156.5 kB / 0.9149 GB, free: 7.734 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.8472, allocations: 55.91 kB / 0.9149 GB, free: 7.68 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.0007396/0.8479, allocations: 339.3 kB / 0.9152 GB, free: 7.34 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002742/0.8482, allocations: 126.5 kB / 0.9154 GB, free: 7.215 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003466/0.8517, allocations: 1.429 MB / 0.9168 GB, free: 5.773 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-05/0.8517, allocations: 19.92 kB / 0.9168 GB, free: 5.754 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.8517, allocations: 0 / 0.9168 GB, free: 5.754 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.8517, allocations: 3.984 kB / 0.9168 GB, free: 5.75 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.005316/0.857, allocations: 2.877 MB / 0.9196 GB, free: 2.789 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.8571, allocations: 0 / 0.9196 GB, free: 2.789 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.8581, allocations: 215.8 kB / 0.9198 GB, free: 2.578 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004818/0.8586, allocations: 76.78 kB / 0.9199 GB, free: 2.5 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-05/0.8587, allocations: 31.97 kB / 0.9199 GB, free: 2.469 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002184/0.8609, allocations: 1.681 MB / 0.9215 GB, free: 0.6406 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.8609, allocations: 0 / 0.9215 GB, free: 0.6406 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002964/0.8639, allocations: 1.324 MB / 0.9228 GB, free: 15.3 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005971/0.8645, allocations: 355.1 kB / 0.9232 GB, free: 14.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001803/0.8647, allocations: 28 kB / 0.9232 GB, free: 14.91 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.8657, allocations: 95.81 kB / 0.9233 GB, free: 14.81 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001961/0.8659, allocations: 92.95 kB / 0.9234 GB, free: 14.72 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001141/0.8661, allocations: 59.94 kB / 0.9234 GB, free: 14.66 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0009253/0.867, allocations: 0.615 MB / 0.924 GB, free: 14.04 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.8e-07/0.867, allocations: 0 / 0.924 GB, free: 14.04 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001291/0.8683, allocations: 498.8 kB / 0.9245 GB, free: 13.55 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.002208/0.8705, allocations: 0.711 MB / 0.9252 GB, free: 13.02 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00363/0.8742, allocations: 1.464 MB / 0.9266 GB, free: 11.55 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/0.8742, allocations: 7.906 kB / 0.9266 GB, free: 11.54 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001313/0.8755, allocations: 0.672 MB / 0.9273 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002253/0.8778, allocations: 0.535 MB / 0.9278 GB, free: 10.35 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004617/0.8824, allocations: 2.947 MB / 0.9307 GB, free: 7.375 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009819/0.8834, allocations: 1.209 MB / 0.9319 GB, free: 6.129 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001443/0.8848, allocations: 385.8 kB / 0.9323 GB, free: 5.75 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003862/0.8852, allocations: 143.4 kB / 0.9324 GB, free: 5.609 MB / 0.6544 GB Notification: Performance of SimCode: time 5.51e-07/0.8852, allocations: 0 / 0.9324 GB, free: 5.609 MB / 0.6544 GB Notification: Performance of Templates: time 0.04208/0.9273, allocations: 24.42 MB / 0.9562 GB, free: 13.54 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)