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.0007758/0.0007758, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005086/0.005086, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.404/1.404, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001659/0.001659, allocations: 271.1 kB / 291.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9842/0.9842, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003861/0.0003861, allocations: 11.72 kB / 0.5986 GB, free: 28.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1732, allocations: 88.55 MB / 0.6851 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.4914/0.6646, allocations: 171.4 MB / 0.8525 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01546/0.6802, allocations: 12.57 MB / 0.8648 GB, free: 2.457 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001212/0.6814, allocations: 31.41 kB / 0.8648 GB, free: 2.445 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001338/0.6828, allocations: 366.2 kB / 0.8652 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00305/0.6858, allocations: 0.8683 MB / 0.866 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004204/0.69, allocations: 1.657 MB / 0.8677 GB, free: 280 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002715/0.6928, allocations: 2.744 MB / 0.8703 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001861/0.6946, allocations: 1.397 MB / 0.8717 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004074/0.6987, allocations: 1.149 MB / 0.8728 GB, free: 13.24 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009344/0.6997, allocations: 0.7168 MB / 0.8735 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001167/0.6998, allocations: 44.53 kB / 0.8736 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002457/0.7023, allocations: 1.424 MB / 0.875 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002942/0.7026, allocations: 337.9 kB / 0.8753 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000633/0.7032, allocations: 0.7088 MB / 0.876 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002721/0.7059, allocations: 2.618 MB / 0.8785 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.706, allocations: 0 / 0.8785 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.252e-06/0.706, allocations: 0 / 0.8785 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2e-05/0.706, allocations: 2.562 kB / 0.8785 GB, free: 9.527 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.002865/0.7089, allocations: 1.681 MB / 0.8802 GB, free: 8.125 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.7089, allocations: 8.031 kB / 0.8802 GB, free: 8.117 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002552/0.7115, allocations: 421.5 kB / 0.8806 GB, free: 7.703 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001458/0.7129, allocations: 0.9955 MB / 0.8816 GB, free: 6.66 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.864e-05/0.713, allocations: 98.72 kB / 0.8817 GB, free: 6.562 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000177/0.7132, allocations: 136 kB / 0.8818 GB, free: 6.43 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002476/0.7157, allocations: 1.526 MB / 0.8833 GB, free: 4.828 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.7157, allocations: 0 / 0.8833 GB, free: 4.828 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001329/0.7159, allocations: 63.98 kB / 0.8833 GB, free: 4.766 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.515e-05/0.7159, allocations: 32 kB / 0.8834 GB, free: 4.734 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002587/0.7185, allocations: 1.591 MB / 0.8849 GB, free: 3.137 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.007076/0.7256, allocations: 5.099 MB / 0.8899 GB, free: 13.78 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002756/0.7284, allocations: 1.522 MB / 0.8914 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008808/0.7293, allocations: 488.9 kB / 0.8918 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007818/0.7301, allocations: 444.1 kB / 0.8923 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001258/0.7313, allocations: 0.6957 MB / 0.893 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=107): time 2.855e-06/0.7313, allocations: 0 / 0.893 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of matching and sorting (n=107): time 0.004478/0.7358, allocations: 1.688 MB / 0.8946 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001378/0.736, allocations: 192.9 kB / 0.8948 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001433/0.7374, allocations: 0.8998 MB / 0.8957 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001126/0.7376, allocations: 41.7 kB / 0.8957 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004708/0.738, allocations: 0.6052 MB / 0.8963 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000313/0.7384, allocations: 350.9 kB / 0.8966 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.7385, allocations: 89.66 kB / 0.8967 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.7386, allocations: 345.9 kB / 0.897 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008097/0.7395, allocations: 398.4 kB / 0.8974 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009657/0.7404, allocations: 0.5746 MB / 0.898 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001728/0.7422, allocations: 0.9605 MB / 0.8989 GB, free: 4.152 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.7422, allocations: 8 kB / 0.8989 GB, free: 4.145 MB / 0.6075 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002751/0.7449, allocations: 1.235 MB / 0.9001 GB, free: 2.898 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.745, allocations: 11.94 kB / 0.9001 GB, free: 2.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.745, allocations: 7.984 kB / 0.9002 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006222/0.7456, allocations: 88.84 kB / 0.9002 GB, free: 2.789 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/0.7468, allocations: 251.7 kB / 0.9005 GB, free: 2.543 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002008/0.7488, allocations: 1.55 MB / 0.902 GB, free: 0.8594 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00124/0.75, allocations: 162.9 kB / 0.9022 GB, free: 0.6992 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.586e-05/0.7501, allocations: 51.97 kB / 0.9022 GB, free: 0.6484 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: 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.0007159/0.7509, allocations: 349.3 kB / 0.9025 GB, free: 308 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002044/0.7511, allocations: 122.5 kB / 0.9026 GB, free: 184 kB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003158/0.7542, allocations: 1.437 MB / 0.9041 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.7543, allocations: 12 kB / 0.9041 GB, free: 14.71 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.7543, allocations: 3.938 kB / 0.9041 GB, free: 14.71 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.7543, allocations: 3.984 kB / 0.9041 GB, free: 14.7 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.004624/0.7589, allocations: 2.889 MB / 0.9069 GB, free: 11.73 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.7589, allocations: 0 / 0.9069 GB, free: 11.73 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/0.76, allocations: 231.7 kB / 0.9071 GB, free: 11.5 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005392/0.7605, allocations: 80.78 kB / 0.9072 GB, free: 11.42 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-05/0.7606, allocations: 35.97 kB / 0.9072 GB, free: 11.39 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001763/0.7624, allocations: 1.555 MB / 0.9087 GB, free: 9.695 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.724e-06/0.7624, allocations: 3.984 kB / 0.9087 GB, free: 9.691 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002628/0.765, allocations: 1.332 MB / 0.91 GB, free: 8.344 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005303/0.7656, allocations: 367.1 kB / 0.9104 GB, free: 7.965 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001542/0.7657, allocations: 24 kB / 0.9104 GB, free: 7.941 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.7668, allocations: 125.3 kB / 0.9105 GB, free: 7.82 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.7669, allocations: 84.88 kB / 0.9106 GB, free: 7.738 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.993e-05/0.767, allocations: 51.95 kB / 0.9107 GB, free: 7.688 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0008192/0.7679, allocations: 0.615 MB / 0.9113 GB, free: 7.062 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7679, allocations: 4 kB / 0.9113 GB, free: 7.059 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001196/0.7691, allocations: 482.9 kB / 0.9117 GB, free: 6.586 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.001534/0.7706, allocations: 0.7062 MB / 0.9124 GB, free: 6.062 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002239/0.7729, allocations: 1.156 MB / 0.9136 GB, free: 4.891 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.7729, allocations: 0 / 0.9136 GB, free: 4.891 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.00118/0.7741, allocations: 0.6837 MB / 0.9142 GB, free: 4.195 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002208/0.7763, allocations: 495.8 kB / 0.9147 GB, free: 3.719 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005319/0.7816, allocations: 3.133 MB / 0.9178 GB, free: 0.5586 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007679/0.7824, allocations: 1.217 MB / 0.9189 GB, free: 15.31 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001478/0.7839, allocations: 385.8 kB / 0.9193 GB, free: 14.93 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000368/0.7843, allocations: 147.3 kB / 0.9195 GB, free: 14.79 MB / 0.6387 GB Notification: Performance of SimCode: time 6.21e-07/0.7843, allocations: 0 / 0.9195 GB, free: 14.79 MB / 0.6387 GB Notification: Performance of Templates: time 0.04066/0.8249, allocations: 22.89 MB / 0.9418 GB, free: 8.195 MB / 0.6544 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)