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.00719/0.00719, allocations: 99.64 kB / 15.73 MB, free: 6.035 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.001632/0.001632, allocations: 186.2 kB / 16.67 MB, free: 5.973 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002158/0.002158, allocations: 282.6 kB / 290.8 MB, free: 1.766 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.005/1.005, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 96.27 kB / 0.6814 GB, free: 15.51 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.157/0.1587, allocations: 86.97 MB / 0.7664 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.5591/0.7179, allocations: 176 MB / 0.9383 GB, free: 2.719 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.01608/0.734, allocations: 12.73 MB / 0.9507 GB, free: 5.945 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001176/0.7353, allocations: 31.88 kB / 0.9507 GB, free: 5.914 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.001257/0.7366, allocations: 452.6 kB / 0.9512 GB, free: 5.469 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.002693/0.7393, allocations: 0.9685 MB / 0.9521 GB, free: 4.5 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.004332/0.7436, allocations: 1.859 MB / 0.9539 GB, free: 2.652 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.003034/0.7467, allocations: 2.415 MB / 0.9563 GB, free: 232 kB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002287/0.749, allocations: 1.628 MB / 0.9579 GB, free: 14.56 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003972/0.753, allocations: 1.427 MB / 0.9593 GB, free: 13.16 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001341/0.7543, allocations: 0.8596 MB / 0.9601 GB, free: 12.3 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0002753/0.7546, allocations: 172 kB / 0.9603 GB, free: 12.13 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003136/0.7578, allocations: 1.419 MB / 0.9617 GB, free: 10.71 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0006304/0.7584, allocations: 498.5 kB / 0.9621 GB, free: 10.22 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.001267/0.7597, allocations: 0.8473 MB / 0.963 GB, free: 9.371 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.005864/0.7656, allocations: 2.768 MB / 0.9657 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/0.7656, allocations: 4 kB / 0.9657 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.393e-06/0.7656, allocations: 0 / 0.9657 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.583e-05/0.7656, allocations: 0 / 0.9657 GB, free: 6.594 MB / 0.7169 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.004079/0.7697, allocations: 1.997 MB / 0.9676 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.7698, allocations: 16.03 kB / 0.9676 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002553/0.7723, allocations: 397.6 kB / 0.968 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001799/0.7741, allocations: 1.035 MB / 0.969 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.31e-05/0.7743, allocations: 106.7 kB / 0.9691 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001687/0.7744, allocations: 128 kB / 0.9693 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002659/0.7771, allocations: 1.524 MB / 0.9707 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.76e-05/0.7771, allocations: 3.938 kB / 0.9708 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001294/0.7773, allocations: 60 kB / 0.9708 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.409e-05/0.7773, allocations: 32 kB / 0.9708 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002609/0.7799, allocations: 1.587 MB / 0.9724 GB, free: 15.53 MB / 0.7325 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.007785/0.7877, allocations: 5.017 MB / 0.9773 GB, free: 10.25 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002663/0.7904, allocations: 1.539 MB / 0.9788 GB, free: 8.641 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008626/0.7913, allocations: 476.1 kB / 0.9792 GB, free: 8.176 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000754/0.7921, allocations: 428.1 kB / 0.9797 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001263/0.7933, allocations: 0.6879 MB / 0.9803 GB, free: 6.98 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=107): time 3.086e-06/0.7934, allocations: 4 kB / 0.9803 GB, free: 6.977 MB / 0.7325 GB Notification: Performance of matching and sorting (n=107): time 0.004511/0.7979, allocations: 1.661 MB / 0.982 GB, free: 5.285 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.798, allocations: 204.8 kB / 0.9821 GB, free: 5.043 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001363/0.7994, allocations: 0.892 MB / 0.983 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001517/0.7996, allocations: 53.7 kB / 0.9831 GB, free: 4.07 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005271/0.8001, allocations: 0.5896 MB / 0.9836 GB, free: 3.473 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003351/0.8005, allocations: 354.9 kB / 0.984 GB, free: 3.121 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003425/0.8008, allocations: 218.7 kB / 0.9842 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.8009, allocations: 345.9 kB / 0.9845 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008011/0.8018, allocations: 406.3 kB / 0.9849 GB, free: 2.16 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009774/0.8027, allocations: 0.5629 MB / 0.9855 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00177/0.8045, allocations: 0.9605 MB / 0.9864 GB, free: 0.5469 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.8045, allocations: 3.938 kB / 0.9864 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002847/0.8074, allocations: 1.231 MB / 0.9876 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.8074, allocations: 7.938 kB / 0.9876 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.8074, allocations: 4 kB / 0.9876 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006177/0.8081, allocations: 85.19 kB / 0.9877 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.8092, allocations: 259.6 kB / 0.9879 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002103/0.8113, allocations: 1.65 MB / 0.9896 GB, free: 13.15 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001115/0.8124, allocations: 131 kB / 0.9897 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.677e-05/0.8125, allocations: 51.91 kB / 0.9897 GB, free: 12.97 MB / 0.7481 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.0006424/0.8132, allocations: 347.9 kB / 0.9901 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002462/0.8134, allocations: 126.5 kB / 0.9902 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003123/0.8166, allocations: 1.429 MB / 0.9916 GB, free: 11.06 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/0.8166, allocations: 15.98 kB / 0.9916 GB, free: 11.05 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.8166, allocations: 0 / 0.9916 GB, free: 11.05 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.8166, allocations: 3.984 kB / 0.9916 GB, free: 11.04 MB / 0.7481 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.004768/0.8214, allocations: 2.872 MB / 0.9944 GB, free: 8.086 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.8214, allocations: 4 kB / 0.9944 GB, free: 8.082 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009796/0.8224, allocations: 223.7 kB / 0.9946 GB, free: 7.863 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004561/0.8229, allocations: 68.78 kB / 0.9947 GB, free: 7.793 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.842e-05/0.8229, allocations: 35.97 kB / 0.9947 GB, free: 7.758 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001882/0.8248, allocations: 1.666 MB / 0.9963 GB, free: 5.945 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.8249, allocations: 3.938 kB / 0.9963 GB, free: 5.941 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002814/0.8277, allocations: 1.322 MB / 0.9976 GB, free: 4.598 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006608/0.8283, allocations: 359.1 kB / 0.998 GB, free: 4.227 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/0.8285, allocations: 24 kB / 0.998 GB, free: 4.203 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000879/0.8294, allocations: 79.33 kB / 0.9981 GB, free: 4.129 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001867/0.8296, allocations: 96.75 kB / 0.9982 GB, free: 4.035 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.8297, allocations: 55.95 kB / 0.9982 GB, free: 3.98 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0008269/0.8305, allocations: 0.6111 MB / 0.9988 GB, free: 3.359 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8305, allocations: 4 kB / 0.9988 GB, free: 3.355 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001201/0.8317, allocations: 482.8 kB / 0.9993 GB, free: 2.883 MB / 0.7481 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.001658/0.8334, allocations: 0.7172 MB / 1 GB, free: 2.352 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002644/0.8361, allocations: 1.147 MB / 1.001 GB, free: 1.191 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/0.8361, allocations: 0.8125 kB / 1.001 GB, free: 1.191 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001358/0.8375, allocations: 0.6758 MB / 1.002 GB, free: 0.5039 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002506/0.84, allocations: 0.512 MB / 1.002 GB, free: 16 kB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005144/0.8451, allocations: 2.443 MB / 1.005 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000779/0.8459, allocations: 1.208 MB / 1.006 GB, free: 12.3 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001286/0.8472, allocations: 389.7 kB / 1.006 GB, free: 11.92 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003759/0.8476, allocations: 143.4 kB / 1.006 GB, free: 11.78 MB / 0.7637 GB Notification: Performance of SimCode: time 7.51e-07/0.8476, allocations: 0 / 1.006 GB, free: 11.78 MB / 0.7637 GB Notification: Performance of Templates: time 0.04347/0.8911, allocations: 24.62 MB / 1.03 GB, free: 3.48 MB / 0.7794 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)