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.001493/0.001493, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001602/0.001603, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.316/1.316, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0022/0.0022, allocations: 292.1 kB / 291.3 MB, free: 14.55 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9806/0.9806, allocations: 169.3 MB / 0.4988 GB, free: 4.504 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 93.73 kB / 0.5959 GB, free: 15.16 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1693/0.1713, allocations: 86.98 MB / 0.6808 GB, free: 8.18 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.4888/0.6602, allocations: 176 MB / 0.8527 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01657/0.6768, allocations: 12.73 MB / 0.8652 GB, free: 2.117 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001244/0.6781, allocations: 31.81 kB / 0.8652 GB, free: 2.086 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001522/0.6797, allocations: 440.6 kB / 0.8656 GB, free: 1.652 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.003262/0.683, allocations: 0.9682 MB / 0.8666 GB, free: 0.6836 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.004721/0.6877, allocations: 1.851 MB / 0.8684 GB, free: 14.84 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.003113/0.6908, allocations: 2.396 MB / 0.8707 GB, free: 12.44 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002562/0.6934, allocations: 1.627 MB / 0.8723 GB, free: 10.76 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003808/0.6972, allocations: 1.409 MB / 0.8737 GB, free: 9.383 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001315/0.6986, allocations: 0.8596 MB / 0.8745 GB, free: 8.52 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0004432/0.699, allocations: 172 kB / 0.8747 GB, free: 8.352 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002988/0.702, allocations: 1.404 MB / 0.8761 GB, free: 6.945 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0006402/0.7027, allocations: 486.6 kB / 0.8765 GB, free: 6.469 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.00125/0.7039, allocations: 0.8513 MB / 0.8774 GB, free: 5.613 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.004256/0.7082, allocations: 2.711 MB / 0.88 GB, free: 2.895 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.7082, allocations: 0 / 0.88 GB, free: 2.895 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.713e-06/0.7082, allocations: 0 / 0.88 GB, free: 2.895 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 7.603e-05/0.7083, allocations: 0 / 0.88 GB, free: 2.895 MB / 0.6387 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.004405/0.7127, allocations: 2.006 MB / 0.882 GB, free: 0.8281 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.7128, allocations: 8.031 kB / 0.882 GB, free: 0.8203 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002866/0.7157, allocations: 405.5 kB / 0.8824 GB, free: 432 kB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001746/0.7174, allocations: 0.9956 MB / 0.8833 GB, free: 15.38 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.335e-05/0.7175, allocations: 102.7 kB / 0.8834 GB, free: 15.28 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002346/0.7178, allocations: 128 kB / 0.8835 GB, free: 15.16 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002936/0.7207, allocations: 1.524 MB / 0.885 GB, free: 13.55 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.787e-05/0.7208, allocations: 3.938 kB / 0.885 GB, free: 13.55 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000149/0.7209, allocations: 60 kB / 0.8851 GB, free: 13.49 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.889e-05/0.721, allocations: 35.98 kB / 0.8851 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002802/0.7238, allocations: 1.583 MB / 0.8867 GB, free: 11.87 MB / 0.6544 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.007536/0.7313, allocations: 5.091 MB / 0.8916 GB, free: 6.516 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002728/0.7341, allocations: 1.519 MB / 0.8931 GB, free: 4.922 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008655/0.735, allocations: 475.6 kB / 0.8936 GB, free: 4.453 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007443/0.7357, allocations: 432.1 kB / 0.894 GB, free: 3.961 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001275/0.737, allocations: 0.6919 MB / 0.8947 GB, free: 3.254 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=107): time 4.679e-06/0.737, allocations: 3.984 kB / 0.8947 GB, free: 3.25 MB / 0.6544 GB Notification: Performance of matching and sorting (n=107): time 0.004523/0.7416, allocations: 1.668 MB / 0.8963 GB, free: 1.551 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.7417, allocations: 200.9 kB / 0.8965 GB, free: 1.312 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001429/0.7431, allocations: 0.892 MB / 0.8974 GB, free: 408 kB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.7433, allocations: 49.7 kB / 0.8974 GB, free: 352 kB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005493/0.7438, allocations: 0.5937 MB / 0.898 GB, free: 15.74 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003089/0.7441, allocations: 347 kB / 0.8983 GB, free: 15.39 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000366/0.7445, allocations: 218.8 kB / 0.8985 GB, free: 15.18 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.7446, allocations: 349.9 kB / 0.8989 GB, free: 14.83 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007996/0.7454, allocations: 394.4 kB / 0.8992 GB, free: 14.44 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009579/0.7464, allocations: 0.5695 MB / 0.8998 GB, free: 13.83 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00178/0.7482, allocations: 0.9604 MB / 0.9007 GB, free: 12.82 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/0.7482, allocations: 7.984 kB / 0.9007 GB, free: 12.82 MB / 0.67 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00291/0.7511, allocations: 1.227 MB / 0.9019 GB, free: 11.58 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.7512, allocations: 8.344 kB / 0.902 GB, free: 11.57 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.7512, allocations: 8 kB / 0.902 GB, free: 11.56 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006264/0.7518, allocations: 88.77 kB / 0.902 GB, free: 11.47 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/0.753, allocations: 255.6 kB / 0.9023 GB, free: 11.22 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002321/0.7553, allocations: 1.65 MB / 0.9039 GB, free: 9.426 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/0.7565, allocations: 134.8 kB / 0.904 GB, free: 9.293 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.7566, allocations: 55.97 kB / 0.9041 GB, free: 9.238 MB / 0.67 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.0007013/0.7573, allocations: 351.4 kB / 0.9044 GB, free: 8.887 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000341/0.7577, allocations: 118.6 kB / 0.9045 GB, free: 8.77 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003336/0.761, allocations: 1.433 MB / 0.9059 GB, free: 7.328 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.761, allocations: 12 kB / 0.9059 GB, free: 7.316 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.7611, allocations: 0 / 0.9059 GB, free: 7.316 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.7611, allocations: 11.97 kB / 0.906 GB, free: 7.305 MB / 0.67 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.004985/0.7661, allocations: 2.87 MB / 0.9088 GB, free: 4.352 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.7661, allocations: 0 / 0.9088 GB, free: 4.352 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000998/0.7671, allocations: 227.6 kB / 0.909 GB, free: 4.129 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004527/0.7676, allocations: 68.78 kB / 0.909 GB, free: 4.059 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.365e-05/0.7677, allocations: 31.97 kB / 0.9091 GB, free: 4.027 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001887/0.7695, allocations: 1.674 MB / 0.9107 GB, free: 2.199 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.7696, allocations: 0 / 0.9107 GB, free: 2.199 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002772/0.7723, allocations: 1.324 MB / 0.912 GB, free: 0.8555 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005848/0.7729, allocations: 351.2 kB / 0.9123 GB, free: 0.4922 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002315/0.7732, allocations: 27.98 kB / 0.9124 GB, free: 476 kB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009913/0.7742, allocations: 76.94 kB / 0.9124 GB, free: 400 kB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001784/0.7744, allocations: 92.81 kB / 0.9125 GB, free: 308 kB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001112/0.7745, allocations: 51.97 kB / 0.9126 GB, free: 256 kB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0008698/0.7754, allocations: 0.615 MB / 0.9132 GB, free: 15.62 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.443e-06/0.7754, allocations: 7.938 kB / 0.9132 GB, free: 15.62 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001255/0.7766, allocations: 490.7 kB / 0.9136 GB, free: 15.14 MB / 0.6856 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.001636/0.7783, allocations: 0.7048 MB / 0.9143 GB, free: 14.62 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003514/0.7818, allocations: 1.464 MB / 0.9158 GB, free: 13.14 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.7818, allocations: 4 kB / 0.9158 GB, free: 13.14 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.7831, allocations: 0.6758 MB / 0.9164 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002525/0.7857, allocations: 0.5164 MB / 0.9169 GB, free: 11.96 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00547/0.7911, allocations: 2.523 MB / 0.9194 GB, free: 9.402 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008669/0.792, allocations: 1.216 MB / 0.9206 GB, free: 8.156 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005335/0.7926, allocations: 155.3 kB / 0.9207 GB, free: 8.008 MB / 0.6856 GB Notification: Performance of SimCode: time 7.31e-07/0.7926, allocations: 0 / 0.9207 GB, free: 8.008 MB / 0.6856 GB Notification: Performance of Templates: time 0.03985/0.8324, allocations: 28.19 MB / 0.9483 GB, free: 11.97 MB / 0.7169 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)